打开cmd:
cd C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
运行vcvars32.bat
再次输入以下命令:
dumpbin /headers D:\ap8ae8.dll
将会看到以下结果:
Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file D:\ap8ae8.dll
PE signature found
File Type: DLL
FILE HEADER VALUES
8664 machine (x64)
7 number of sections
5D554991 time date stamp Thu Aug 15 20:01:21 2019
0 file pointer to symbol table
0 number of symbols
F0 size of optional header
2022 characteristics
Executable
Application can handle large (>2GB) addresses
DLL
OPTIONAL HEADER VALUES
20B magic # (PE32+)
10.00 linker version
16000 size of code
5A00 size of initialized data
0 size of uninitialized data
15350 entry point (0000000180015350) _DllMainCRTStartup
1000 base of code
180000000 image base (0000000180000000 to 0000000180037FFF)
1000 section alignment
200 file alignment
5.02 operating system version
0.00 image version
5.02 subsystem version
0 Win32 version
38000 size of image
400 size of headers
289F8 checksum
2 subsystem (Windows GUI)
140 DLL characteristics
Dynamic base
NX compatible
100000 size of stack reserve
1000 size of stack commit
100000 size of heap reserve
1000 size of heap commit
0 loader flags
10 number of directories
1AEA0 [ 44] RVA [size] of Export Directory
1A72C [ 64] RVA [size] of Import Directory
36000 [ 1B4] RVA [size] of Resource Directory
34000 [ 3C0] RVA [size] of Exception Directory
0 [ 0] RVA [size] of Certificates Directory
37000 [ 154] RVA [size] of Base Relocation Directory
17260 [ 1C] RVA [size] of Debug Directory
0 [ 0] RVA [size] of Architecture Directory
0 [ 0] RVA [size] of Global Pointer Directory
0 [ 0] RVA [size] of Thread Storage Directory
0 [ 0] RVA [size] of Load Configuration Directory
0 [ 0] RVA [size] of Bound Import Directory
17000 [ 238] RVA [size] of Import Address Table Directory
0 [ 0] RVA [size] of Delay Import Directory
0 [ 0] RVA [size] of COM Descriptor Directory
0 [ 0] RVA [size] of Reserved Directory
SECTION HEADER #1
.text name
15E7D virtual size
1000 virtual address (0000000180001000 to 0000000180016E7C)
16000 size of raw data
400 file pointer to raw data (00000400 to 000163FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
60000020 flags
Code
Execute Read
SECTION HEADER #2
.rdata name
3EE4 virtual size
17000 virtual address (0000000180017000 to 000000018001AEE3)
4000 size of raw data
16400 file pointer to raw data (00016400 to 0001A3FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40000040 flags
Initialized Data
Read Only
Debug Directories
Time Type Size RVA Pointer
-------- ------ -------- -------- --------
5D554991 cv 49 0001A160 19560 Format: RSDS, {464A59BA-4E3C-4E94-9144-69E59B6AF5E1}, 1, D:\Project\vs\ap8ae8\ap8ae8\x64\Debug\ap8ae8.pdb
SECTION HEADER #3
.data name
18888 virtual size
1B000 virtual address (000000018001B000 to 0000000180033887)
600 size of raw data
1A400 file pointer to raw data (0001A400 to 0001A9FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0000040 flags
Initialized Data
Read Write
SECTION HEADER #4
.pdata name
3C0 virtual size
34000 virtual address (0000000180034000 to 00000001800343BF)
400 size of raw data
1AA00 file pointer to raw data (0001AA00 to 0001ADFF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40000040 flags
Initialized Data
Read Only
SECTION HEADER #5
.trace name
8C0 virtual size
35000 virtual address (0000000180035000 to 00000001800358BF)
A00 size of raw data
1AE00 file pointer to raw data (0001AE00 to 0001B7FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40000040 flags
Initialized Data
Read Only
SECTION HEADER #6
.rsrc name
1B4 virtual size
36000 virtual address (0000000180036000 to 00000001800361B3)
200 size of raw data
1B800 file pointer to raw data (0001B800 to 0001B9FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40000040 flags
Initialized Data
Read Only
SECTION HEADER #7
.reloc name
338 virtual size
37000 virtual address (0000000180037000 to 0000000180037337)
400 size of raw data
1BA00 file pointer to raw data (0001BA00 to 0001BDFF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42000040 flags
Initialized Data
Discardable
Read Only
Summary
19000 .data
1000 .pdata
4000 .rdata
1000 .reloc
1000 .rsrc
16000 .text
1000 .trace
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin>dumpbin /headers D:\ap8ae8.dll
Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.