列出非托管dll的所有函数名称 [英] List all the function names of unmanaged dll

查看:218
本文介绍了列出非托管dll的所有函数名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请任何人帮助我从C#.net加载并列出所有功能和属性名称.

Please any body help me to load and list all the function and property names from C#.net.

推荐答案

使用可移植可执行(PE)文件格式规范为自己编写PE文件阅读器.遍历文件PE标头的导出表,以从非托管dll获取函数名称.如果没有调试符号,将无法找到未从dll导出的任何函数的名称(即出现在导出表中).

您可以在此处找到最新版本的PE文件格式规范的副本: http://www .microsoft.com/whdc/system/platform/firmware/pecoff.mspx [ ^ ]

其他可以用作参考的包含PE文件读取代码的项目包括 Mono Cecil [ PERWAPI [^ ].
Use the Portable Executable (PE) file format specification to code yourself a PE file reader. Iterate through the export table of the file''s PE header to get the function names from an unmanaged dll. You will not be able to find the names of any functions not exported from the dll (i.e. appearing in the export table) without debug symbols.

You can find a copy of the latest version of the PE file format specification here: http://www.microsoft.com/whdc/system/platform/firmware/pecoff.mspx[^]

Other projects that include PE file reading code that you can use as references include Mono Cecil[^] and the PERWAPI[^] on Codeplex.


http://wiki.sharpdevelop.net/Default.aspx?Page= NRefactory& NS =& AspxAutoDetectCookieSupport = 1 [ ^ ]


这篇关于列出非托管dll的所有函数名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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