This test returns 1 if the core DLL is Win64 (X64) or 0 if Win32:
int n = General.IsWin64();
n = General.IsWin64()
long nRet; nRet = PKI_LicenceType(PKI_GEN_PLATFORM);
To get the platform as a string, either "Win32"
or "X64"
, do this:
string s = General.Platform();
s = General.Platform()
char buf[6]; nRet = PKI_ModuleName(buf, sizeof(buf)-1, PKI_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.