开发者

How to view DLL functions?

I have a DLL开发者_开发知识库 file. How can I view the functions in that DLL?


For native code it's probably best to use Dependency Walker. It also possible to use dumpbin command line utility that comes with Visual Studio.


Use the free DLL Export Viewer, it is very easy to use.


You may try the Object Browser in 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.


Use dumpbin command-line.

  • dumpbin /IMPORTS <path-to-file> should provide the function imported into that DLL.
  • dumpbin /EXPORTS <path-to-file> should provide the functions it exports.


Use dotPeek by JetBrains.

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.


For .NET DLLs you can use ildasm


Without telling us what language this DLL/assembly is from, we can only guess.

So how about .NET Reflector.


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.

Then doubleclick the DLL in the references folder and then you will see what functions it has in the OBJECT EXPLORER window.

If you would like to view the source code of that DLL file you can use a decompiler application such as .NET reflector.


For non .NET dlls, installing binutils on a Linux system presents the objdump command that can be used to display information of a dll.

objdump --private-headers <file.dll>

Look for the Export Address Table section in the output.


.NET ildasm

ildasm helped and even dumped methods body, but to edit .DLL you also need any hex editor.

ildasm example to fix Help Viewer v2.x issue:
error: "An error occurred while updating content: File '???.cab' was not signed by Microsoft"

here could be image
more example files

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜