X86: FILE HEADER VALUES 14C machine (x86) 3 number of sections 4D0F3992 time date stamp Mon Dec 20 19:10:10 2010 0 file pointer to symbol table 0 number of symbols E0 size of optional header 210E characteristics Executable Line numbers stripped Symbols stripped 32 bit word machine DLLX64: FILE HEADER VALUES 8664 machine (x64) 2 number of sections 4D0F4E8A time date stamp Mon Dec 20 20:39:38 2010 0 file pointer to symbol table 0 number of symbols F0 size of optional header 212E characteristics Executable Line numbers stripped Symbols stripped Application can handle large (>2GB) addresses 32 bit word machine DLLANYCPU: FILE HEADER VALUES 14C machine (x86) 3 number of sections 4D0F4F3F time date stamp Mon Dec 20 20:42:39 2010 0 file pointer to symbol table 0 number of symbols E0 size of optional header 210E characteristics Executable Line numbers stripped Symbols stripped 32 bit word machine DLL 这里可以区分X86和X64, 但是ANYCPU显示的是X86, 不知如何区分, 文件总归是不一样的?
any cpu不过是同时生成x86和amd64而已。可以用windows sdk里面的dumpbin查看。
http://stackoverflow.com/questions/495244/how-can-i-test-a-windows-dll-to-determine-if-it-is-32bit-or-64bit
FILE HEADER VALUES
14C machine (x86)
3 number of sections
4D0F3992 time date stamp Mon Dec 20 19:10:10 2010
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
210E characteristics
Executable
Line numbers stripped
Symbols stripped
32 bit word machine
DLLX64:
FILE HEADER VALUES
8664 machine (x64)
2 number of sections
4D0F4E8A time date stamp Mon Dec 20 20:39:38 2010
0 file pointer to symbol table
0 number of symbols
F0 size of optional header
212E characteristics
Executable
Line numbers stripped
Symbols stripped
Application can handle large (>2GB) addresses
32 bit word machine
DLLANYCPU:
FILE HEADER VALUES
14C machine (x86)
3 number of sections
4D0F4F3F time date stamp Mon Dec 20 20:42:39 2010
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
210E characteristics
Executable
Line numbers stripped
Symbols stripped
32 bit word machine
DLL
这里可以区分X86和X64, 但是ANYCPU显示的是X86, 不知如何区分, 文件总归是不一样的?