如何列出Win32.DLL中的可用方法 [英] How to list available methods in a Win32.DLL

查看:77
本文介绍了如何列出Win32.DLL中的可用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个DLL文件,该文件具有一些我想在应用程序中调用的有用功能。我再也没有文档了。

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

我如何发现DLL导出的函数及其方法签名是什么?

How can I discover which are the functions exported by the DLL and their method signature?

是否有任何实用程序列出了函数及其参数?

Is there any utility that lists the functions and their arguments?

推荐答案

使用的Windows SDK包括 Dependency Walker GUI实用程序,可用于浏览DLL内容:

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 代码的信息,请在 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.

这篇关于如何列出Win32.DLL中的可用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆