How do I find if the target system is running x64 build of OS?

Hi,

From within my windbg extension code, how do I find whether the target
system is running
x86 or x64 OS build?

Is IsPointer64Bit() the right way to determine this?

Thanks,
-Praveen

I’m exactly sure, but I believe that for a kd sesssion, this will work fine. In the case of a um session, then I think it depends
on whether the process you are debugging is running under WOW or not, but I am not really sure about this, as this is not something
that ever crosses my path.

Good luck,

mm

Praveen Kumar A wrote:

Hi,

From within my windbg extension code, how do I find whether the target
system is running
x86 or x64 OS build?

Is IsPointer64Bit() the right way to determine this?

Thanks,
-Praveen