有什么工具可以查看dll文件中存在哪些函数,及其声明原型?

解决方案 »

  1.   

    VC的\Microsoft Visual Studio\Common\Tools下有个DEPENDS.EXE~
    可以看……
      

  2.   

    看导出函数有许多工具,如
    X:\Program Files\Microsoft Visual Studio\VC98\Bin\dumpbin.exe
    看其原型是不可能地
      

  3.   

    函数原型就够呛了~
    Microsoft Visual Studio\VC98\Bin
    这里还有个DUMPBIN.exe~
    也可以查看~
      

  4.   

    各位大哥,具体是怎样用的,我双击出现“找不到mspdb60.dll"提示重装的提示
    还有没有其它工具,最后不是控制台的
      

  5.   

    mspdb60.dll
    在你的安装盘里找!其实Program Files\Microsoft Visual Studio\VC98\Bin
    Microsoft Visual Studio\VC98\Bin
    目录下都找得到!
    祝你好运!!!!!!!!!!!!!!!
      

  6.   

    DUMPBIN.exe是一个dos程序,在dos模式下运行
      

  7.   

    depends可以在google中搜索下载 是个WINDOWS程序 很好用的
      

  8.   

    有人回答过这问题,我转载一下,不属侵权吧,哈哈
    先使用DUMPBIN 将DLL的导出函数表导出到一.def文件dumpbin xxx.dll /EXPORTS > xxx.def
    编辑XXX.def去掉所有的部分只留下函数表修改成以下示例LIBRARY "xxx.dll"  这是DLL的文件名
    EXPORTS
           函数表进行对比一下示例
    dlltls.def修改前
    Microsoft (R) COFF Binary File Dumper Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
    Dump of file DLLTLS.DLLFile Type: DLL  Section contains the following exports for dlltls.dll           0 characteristics
        3DAF64E4 time date stamp Fri Oct 18 09:33:24 2002
            0.00 version
               1 ordinal base
               3 number of functions
               3 number of names    ordinal hint RVA      name          1    0 00001000 GetVar
              2    1 0000100A SetVar
              3    2 00001060 SetVarThread  Summary        1000 .data
            1000 .rdata
            1000 .reloc
            1000 .text
    修改后LIBRARY "DLLTLS"EXPORTS
              GetVar @1
              SetVar @2
              SetVarThread @3
    然后使用LIB工具
    LIB /DEF:dlltls.def /MACHINE:IX86 /OUT:DLLTLS.LIB
    生成LIB文件即可
    注意我这里使用的是__cdecl的调用方式
    如果是__stdcll 调用方式
    dumpbin 出来的def文件是
    Microsoft (R) COFF Binary File Dumper Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
    Dump of file dlltls.dllFile Type: DLL  Section contains the following exports for dlltls.dll           0 characteristics
        3DAF6ADC time date stamp Fri Oct 18 09:58:52 2002
            0.00 version
               1 ordinal base
               3 number of functions
               3 number of names    ordinal hint RVA      name          1    0 00001000 _GetVar@0
              2    1 0000100A _SetVar@4
              3    2 00001062 _SetVarThread@4  Summary        1000 .data
            1000 .rdata
            1000 .reloc
            1000 .text
    修改为
    LIBRARY DLLTLSEXPORTS
    GetVar@0 @1
            SetVar@4 @2
            SetVarThread@4 @3
      

  9.   

    在下这里提供一个工具,觉得比以上的都好,
    W32DASM   这是一个WINDOWS下的查看,修改,替换,DLL的工具。
    实在很不错!至于如何看函数的参数,我们知道许多函数没有名字,只有所谓的编号,当然有名字的函数也有唯一的编号与之相对!
    那些只有编号函数是没有参考资料的,只有去看汇编才可能了解其参数情况,如果想知道,说一下,一会儿在下贴一片别人的帖子上来。
      

  10.   

    norsd(norsd)大哥,
    哪儿有W32DASM的使用说明书能不能告诉小弟一下?
    多谢!!!
      

  11.   

    你用google搜索一下W32DASM,注意,选择搜索中文的网址。
    然后出来的搜索内容不是下载地址 ,就是使用心得。
      

  12.   

    http://www.driverdevelop.com/forum/viewthread.php?tid=22736
    看了就知道了!