<分区>
Possible Duplicate:
How to know a process is 32-bit or 64-bit programmatically
我正在编写一个将 dll 注入(inject)其他应用程序的应用程序。为了使其正常工作,我需要知道其他应用程序是在 32 位还是 64 位模式下运行。有什么方法可以在不尝试解析应用程序的 PE header 的情况下检测到这一点?
请不要建议IsWow64Process .这不符合我的要求,特别是这一点使它变得无用:
If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE.