Possible Duplicate:
How to know a process is 32-bit or 64-bit programmatically
I'm writing an app that injects a dll into other applications. In order for this to work properly, I need to know if the other application is running in 32 or 64 bit mode. Is there any way to detect this, without attempting to parse the PE header of the application?
Please do not suggest IsWow64Process. This does not do what I want, specifically this bit makes it useless:
If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE.