This test returns 1 if the core DLL is Win64 (X64) or 0 if Win32:
int n = General.IsWin64();
n = General.IsWin64()
Dim nRet As Long nRet = API_LicenceType(API_GEN_PLATFORM)
long nRet; nRet = API_LicenceType(API_GEN_PLATFORM);
To get the platform as a string, either "Win32" or "X64", do this:
string s = General.Platform();
s = General.Platform()
Dim nLen As Long
Dim strPlatform As String
nLen = API_ModuleName("", 0, API_GEN_PLATFORM)
strPlatform = String(nLen, " ")
nLen = API_ModuleName(strPlatform, Len(strPlatform), API_GEN_PLATFORM)
char buf[6]; nRet = API_ModuleName(buf, sizeof(buf)-1, API_GEN_PLATFORM);
Remember, the "platform" these tests show is the platform of the core DLL that the system is using. WoW64 (Windows-on-Windows 64-bit) manages 64-bit and 32-bit applications transparently on a Windows 64-bit operating system.