用dumpbin.exe工具查看DLL,dumpbin.exe是VS自带的工具。我装的是VS2010,所以路径是:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\下就可以看到dumpbin.exe了。
怎么使用dumpbin.exe呢?因为dumpbin.exe有可能会使用很多工具,所以你单单把它拿出来使用,那是不行的,dumpbin.exe依赖好的东西呢,你可以试试。
正确使用VS里的工具的方法如下:
开始 > 所有应用程序 > Microsoft Visual Studio 2010 > Visual Studio Tools >VisualStudio 命令提示(2010)。[单击]打开CMD界面,单击会执行很多东西,然后进入了VS工具所在路径下,如下图:
C:\Program Files (x86)\Microsoft VisualStudio 10.0\VC下。
比如我查看路径D:\c\dll\EvolisDualys3\iomem.dll。
命令是:CMD:dumpbin –exports D:\c\dll\EvolisDualys3\iomem.dll
从中可以看到:iomem.dll的信息,有:
文件编码:00000000 characteristics
文件创建时间:4B559249 time date stamp Tue Jan 19 19:06:49 2010
版本:0.00 version
对外提供的函数数量:12 number of functions
函数名数量:12 number of names
函数列表:
序号ordinal | 十六进制序号hint | 程序入口地址RVA | 函数名name |
1 | 0 | 00001D80 | ClosePebble |
2 | 1 | 00001E30 | GetIomemVersion |
3 | 2 | 00001F20 | GetStatusEvo |
4 | 3 | 00001F00 | GetTimeout |
5 | 4 | 000025E0 | OpenPebble |
6 | 5 | 00002B70 | ReadPebble |
7 | 6 | 00001000 | SetFullSync |
8 | 7 | 00001010 | SetOldSync |
9 | 8 | 00001F10 | SetTimeout |
10 | 9 | 00010008 | WaitBusy |
11 | A | 00002F10 | WriteOnly |
12 | B | 00002C90 | WritePebble |
|
以下提供文本信息:
File Type: DLL
Section contains the following exports for iomem.dll
00000000 characteristics
4B559249 time date stamp Tue Jan 19 19:06:49 2010
0.00 version
1 ordinal base
12 number of functions
12 number of names
ordinal hint RVA name
1 0 00001D80 ClosePebble
2 1 00001E30 GetIomemVersion
3 2 00001F20 GetStatusEvo
4 3 00001F00 GetTimeout
5 4 000025E0 OpenPebble
6 5 00002B70 ReadPebble
7 6 00001000 SetFullSync
8 7 00001010 SetOldSync
9 8 00001F10 SetTimeout
10 9 00010008 WaitBusy
11 A 00002F10 WriteOnly
12 B 00002C90 WritePebble
Summary
4000 .data
1000 .pdata
4000 .rdata
1000 .reloc
1000 .rsrc
B000 .text