windows 如何查看DLL函数?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4438900/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to view DLL functions?
提问by sumit
I have a DLL file. How can I view the functions in that DLL?
我有一个 DLL 文件。如何查看该 DLL 中的函数?
回答by detunized
For native code it's probably best to use Dependency Walker. It also possible to use dumpbincommand line utility that comes with Visual Studio.
对于本机代码,最好使用Dependency Walker。也可以使用Visual Studio 附带的dumpbin命令行实用程序。
回答by Ken D
Use the free DLL Export Viewer, it is very easy to use.
使用免费的DLL 导出查看器,它非常易于使用。
回答by cslewy
You may try the Object Browserin Visual Studio.
您可以尝试Visual Studio 中的对象浏览器。
Select Edit Custom Component Set. From there, you can choose from a variety of .NET, COM or project libraries or just import external dlls via Browse.
选择编辑自定义组件集。从那里,您可以从各种 .NET、COM 或项目库中进行选择,或者仅通过浏览导入外部 dll。
回答by jmcarter9t
Use dumpbin
command-line.
使用dumpbin
命令行。
dumpbin /IMPORTS <path-to-file>
should provide the function imported into that DLL.dumpbin /EXPORTS <path-to-file>
should provide the functions it exports.
dumpbin /IMPORTS <path-to-file>
应提供导入该 DLL 的函数。dumpbin /EXPORTS <path-to-file>
应该提供它导出的功能。
回答by Shayan
Use dotPeek by JetBrains.
使用 JetBrains 的 dotPeek。
https://www.jetbrains.com/decompiler/
https://www.jetbrains.com/decompiler/
dotPeek is a free tool based on ReSharper. It can reliably decompile any .NET assembly into C# or IL code.
dotPeek 是一个基于 ReSharper 的免费工具。它可以可靠地将任何 .NET 程序集反编译为 C# 或 IL 代码。
回答by Adriaan Stander
Without telling us what language this dll/assembly is from, we can only guess.
在不告诉我们这个 dll/程序集来自什么语言的情况下,我们只能猜测。
So how about .NET Reflector
那么.NET 反射器怎么样
回答by Karamafrooz
If a DLL is written in one of the .NET languages and if you only want to view what functions, there is a reference to this DLL in the project.
如果 DLL 是用其中一种 .NET 语言编写的,并且如果您只想查看哪些函数,则项目中存在对该 DLL 的引用。
Then doubleclick the DLL in the references folder and then you will see what functions it has in the OBJECT EXPLORER window
然后双击references文件夹中的DLL,然后您将在OBJECT EXPLORER窗口中看到它具有哪些功能
If you would like to view the source code of that DLL file you can use a decompiler application such as .NET reflector. hope this helps you.
如果您想查看该 DLL 文件的源代码,您可以使用反编译器应用程序,例如 .NET 反射器。希望这对你有帮助。