命令提示符
=========
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:/Documents and Settings/Master>h:
H:/>cd H:/MyGame/myATL/Debug //myATL.dll文件所在的目录
H:/MyGame/myATL/Debug>path=%path%;C:/Program Files/Microsoft Visual Studio .NET
2003/Vc7/bin //需要添加两个路径,这个是dumpbin.exe所在的路径
H:/MyGame/myATL/Debug>path=%path%;C:/Program Files/Microsoft Visual Studio .NET
2003/Common7/IDE
H:/MyGame/myATL/Debug>path //显示环境变量里的路径
PATH=C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;F:/3dsmax5/backburn
er2/;C:/Program Files/Common Files/Autodesk Shared/;C:/Program Files/Microsoft V
isual Studio .NET 2003/Vc7/bin;C:/Program Files/Microsoft Visual Studio .NET 200
3/Common7/IDE
H:/MyGame/myATL/Debug>dumpbin //查看dumpbin的参数
Microsoft (R) COFF/PE Dumper Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
usage: DUMPBIN [options] [files]
options:
/ALL
/ARCHIVEMEMBERS
/CLRHEADER
/DEPENDENTS
/DIRECTIVES
/DISASM[:{BYTES|NOBYTES}]
/EXPORTS
/FPO
/HEADERS
/IMPORTS[:filename]
/LINENUMBERS
/LINKERMEMBER[:{1|2}]
/LOADCONFIG
/OUT:filename
/PDATA
/PDBPATH[:VERBOSE]
/RAWDATA[:{NONE|1|2|4|8}[,#]]
/RELOCATIONS
/SECTION:name
/SUMMARY
(press <return> to continue) //按回车返回命令提示符
H:/MyGame/myATL/Debug>dumpbin myATL.dll /exports //看myATL.dll导出了那些函数,输入my后按SHIFT+tab可以自动补全文件名,类似VC中的CTRL+SPACE
Microsoft (R) COFF/PE Dumper Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file myATL.dll
File Type: DLL
Section contains the following exports for myATL.dll
00000000 characteristics
426D828E time date stamp Mon Apr 25 16:51:42 2005
0.00 version
1 ordinal base
5 number of functions
5 number of names
ordinal hint RVA name
1 0 000AECA8 DllCanUnloadNow
2 1 000B0274 DllGetClassObject
3 2 000B0AB2 DllMain
4 3 000B2FA6 DllRegisterServer
5 4 000B0341 DllUnregisterServer
Summary
11000 .data
3000 .idata
28000 .rdata
9000 .reloc
2000 .rsrc
168000 .text
AD000 .textbss
H:/MyGame/myATL/Debug>dumpbin myATL.dll /imports |more //看导入了那些东西(dll文件和函数等),参数|more分屏显示
Microsoft (R) COFF/PE Dumper Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file myATL.dll
File Type: DLL
Section contains the following imports:
d3d9.dll
1024FF5C Import Address Table
1024F7CC Import Name Table
0 time date stamp
0 Index of first forwarder reference
0 Direct3DCreate9
WINMM.dll
1024FF2C Import Address Table
1024F79C Import Name Table
0 time date stamp
0 Index of first forwarder reference
-- More --
//按任意键继续
…………………………………………
//略
…………………………………………
29 PathFindExtensionA
Summary
11000 .data
3000 .idata
28000 .rdata
9000 .reloc
2000 .rsrc
168000 .text
AD000 .textbss
H:/MyGame/myATL/Debug>
完