How can we recognize the Vista we execute now is 32bit or 64bit. I need to load different driver when excuting different Vista(32bit or 64bit). Is there any API in masm32 I can use to distinguish the OS?
Have a look at IsWow64Process and GetNativeSystemInfo - they were the only 2 things I found in the SDK.
Not having either Vista or a 64-bit processor, I can't test them... :sad:
Not having either Vista or a 64-bit processor, I can't test them... :sad:
IsWow64Process is the one to use.. its simple, if export doesnt exist, then its not 64 bit