I have a question regarding Is64bitOS() API

contains all delphi packages mentioned below
Post Reply
devroid
Posts: 1
Joined: Thu Dec 09, 2010 2:57 am

I have a question regarding Is64bitOS() API

Post 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.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: I have a question regarding Is64bitOS() API

Post 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.
Post Reply