Determining if processor/OS is 64bits
Posted: Thu Jan 15, 2009 9:04 pm
Hi all:
I'm wondering what's the best way to determine if the OS
running is 64bit or not. The need is basically to determine
if will install the 64 or 32 bit version of ADS 9x in our
installer.
I wonder if a simple GetEnv( "PROCESSOR_ARCHITECTURE" )
should be enough or is there a WinAPI call that's better
suited.
I know PROCESSOR_ARCHITECTURE returns x86 for 32 bit systems.
Since I don't have any 64bit system handy don't know if that
value is x64 or something else for 64bit systems.
Regards,
I'm wondering what's the best way to determine if the OS
running is 64bit or not. The need is basically to determine
if will install the 64 or 32 bit version of ADS 9x in our
installer.
I wonder if a simple GetEnv( "PROCESSOR_ARCHITECTURE" )
should be enough or is there a WinAPI call that's better
suited.
I know PROCESSOR_ARCHITECTURE returns x86 for 32 bit systems.
Since I don't have any 64bit system handy don't know if that
value is x64 or something else for 64bit systems.
Regards,