我想知道什么功能都可以从Win32.DLL我想、功能、DLL

2023-09-03 07:20:38 作者:无关风月

我有了一些有用的功能,我想在我的应用程序调用的DLL文件。不幸的是我没有为它的文档不再。

I have a DLL file that has some helpful functions I want to call in my application. Unfortunately I don't have the documentation for it any longer.

有没有什么办法可以发现哪些是由DLL导出的函数和它们的方法签名?

Is there any way I can discover what are the functions exported by the DLL and their method signature?

也许有一个实用工具,列出的功能和它们的参数。

Maybe there's a utility that lists the functions and their arguments.

知道有什么?

推荐答案

用于包括Windows SDK中的依赖学步车的,可用于探索DLL内容的GUI工具:

The windows SDK used to include the dependency walker GUI utility that can be used to explore DLL content:

的Dependency Walker是一个免费的实用工具,它可以扫描任何32位或64位Windows模块(EXE,DLL,OCX,SYS等),并建立所有相关模块的分层树形图。对于找到的每一个模块,它会列出所有由该模块输出,并且这些功能实际上被调用其它模块的功能。另一种观点显示了最低限度所需的文件,以及每个文件包括一个完整的文件路径,基地址,版本号,机器类型,调试信息等。

Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules. For each module found, it lists all the functions that are exported by that module, and which of those functions are actually being called by other modules. Another view displays the minimum set of required files, along with detailed information about each file including a full path to the file, base address, version numbers, machine type, debug information, and more.

目前,它可以在这里找到

有关方法签名的细节,创造相互连接 .NET code,在的的PInvoke网站。您也可以尝试自己加载到Visual Studio 2003和2005。

For method signature detail and creating inter-connection .NET code, look for your DLL in the pinvoke site. You can also try their add-in to Visual Studio 2003 and 2005.