FWIW, I was able to perform the discovery using the following code (found here ):
if (!isWow64()) { BOOL b3GBSwitch = FALSE; SYSTEM_INFO siSysInfo; GetSystemInfo(&siSysInfo); b3GBSwitch = ((DWORD)siSysInfo.lpMaximumApplicationAddress & 0x80000000) != 0; printf("3GB Switch Enabled: %d\n", b3GBSwitch ); }
Code is executed in a process that is not LARGEADESSESSAWARE.
So far, I have been able to test Xp x86, Vista x86, and Seven x64.
source share