如何获取DLL中的函数列表(托管和非托管)?

myW*_*SON 7 c++ windows dll unmanaged

所以我玩一个DLL(UnityEditor.dll)我想得到这个托管DLL内部所有非托管函数的列表(dll可能是由本机C++(如果使用静态编译的库)组成的核心和托管C++包装器全部包装成一个dll.)我想获得该Dll内部所有非托管函数的列表,例如创建我自己的托管\非托管包装器?

hmj*_*mjd 11

dumpbin.exeVisual Studio附带的实用程序可用于显示导出列表.例如:

dumpbin.exe/EXPORTS C:\ WINDOWS\System32\Kernel32.dll

示例输出:

Microsoft (R) COFF/PE Dumper Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file C:\Windows\System32\kernel32.dll

File Type: DLL

  Section contains the following exports for KERNEL32.dll

    00000000 characteristics
    4E20FBA0 time date stamp Sat Jul 16 03:46:56 2011
        0.00 version
           1 ordinal base
        1390 number of functions
        1390 number of names

    ordinal hint RVA      name

          1    0          AcquireSRWLockExclusive (forwarded to NTDLL.RtlAcquireSRWLockExclusive)
          2    1          AcquireSRWLockShared (forwarded to NTDLL.RtlAcquireSRWLockShared)
          3    2 00004440 ActivateActCtx
          4    3 00066B80 AddAtomA
          5    4 00066B20 AddAtomW
          6    5 0006ADF0 AddConsoleAliasA
          7    6 0006AE60 AddConsoleAliasW