检查EXE、DLL、SYS等文件是32位还是64位的

非.NET文件用:dumpbin.exe /headers file.exe(C:Program Files (x86)Microsoft Visual Studio 12.0VCin)

.NET文件用:corflags.exe file.exe(C:Program Files (x86)Microsoft Visual Studio 12.0VCin)

Any CPU                     PE32 with 32BIT = 0
x86                             PE32 with 32BIT = 1
x64/Itanium (IA-64)      PE32+ with 32BIT = 0

最简单的办法是用任意文本编辑器如:记事本程序打开要检查的文件看到 PE  L为x86、PE  d†为x64

推荐软件:

EXE 64bit Detector v1.0(http://securityxploded.com/exe-64bit-detector.php)

Here is the screenshot of EXE 64bit Detector检测EXE文件是32-bit或64-bit.

一些参考网站:

http://www.it165.net/pro/html/201403/10417.html

http://blog.csdn.net/wangwenjing90/article/details/8737279

http://stackoverflow.com/questions/1001404/check-if-unmanaged-dll-is-32-bit-or-64-bit

http://stackoverflow.com/questions/495244/how-can-i-test-a-windows-dll-to-determine-if-it-is-32bit-or-64bit

http://stackoverflow.com/questions/480696/how-to-find-if-a-native-dll-file-is-compiled-as-x64-or-x86

http://superuser.com/questions/358434/how-to-check-if-a-binary-is-32-or-64-bit-on-windows

https://msdn.microsoft.com/en-us/windows/hardware/gg463119.aspx  微软PE和COFF规范8.3  更新:2013年2月6日

原文地址:https://www.cnblogs.com/chinalantian/p/4903252.html