Page 1 of 1

I have a question regarding Is64bitOS() API

Posted: Thu Dec 09, 2010 3:10 am
by devroid
If I try to input the above function based on 32bit process, it returns FALSE.
And, if I input the above fuction based on 64bit process, it return TRUE.

Our object is to define whether it is running based on 32bit or 64bit OS. However, if it is accpeted only on 64bit process, we can not get the result we are looking for.
Therefore, we are using Is64bitModule( L"c:\\windows\\explorer.exe") to clarify wether it's 64bit OS or 32bit OS.
Please advice us that Is64bitOS() API is actually to run this way or whether I'm using it wrong.

Re: I have a question regarding Is64bitOS() API

Posted: Thu Dec 23, 2010 7:59 am
by madshi
Sorry for the late reply.

The API is supposed to work just fine. My best guess is that you didn't call InitializeMadCHook(). The API depends on that you initialize madCodeHook properly.