查找与C ++ dll中的方法一致的参数 [英] Finding arguments that go with methods in C++ dll's

查看:159
本文介绍了查找与C ++ dll中的方法一致的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我可以使用dumpbin.exe / exports library.dll来查找dll中的所有方法。

Ok, so I can use dumpbin.exe /exports library.dll to find all methods in the dll.

...但是如何找出要传递给哪些参数?没有头文件当然。

...but how do I find out which arguments to pass into them? Without a header file of course.

推荐答案

对于通常的C风格的导出(例如Windows API DLL):你可以'吨。此信息不存储在DLL中,编译后不可避免地丢失(除非您有标题或调试符号)。

For the usual C-style exports (e.g., Windows API DLLs): You can't. This information is not stored in the DLL and is inevitably lost after compilation (unless you have the headers or debuging symbols).

另一方面,C ++出口存储签名作为被破坏的函数名称的一部分,您可以使用Dependency Walker或类似工具查看它们,或使用 UNDNAME工具 DUMPBIN的 / SYMBOLS 选项

C++ exports, on the other hand, store their signature as part of the mangled function name and you can view them using Dependency Walker or similar tools, or demangle them manually using the UNDNAME tool or DUMPBIN's /SYMBOLS option.

这篇关于查找与C ++ dll中的方法一致的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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