如何看DLL文件里需要那些导入函数和dll等,导出了什么

命令提示符
=========
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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值