如何知道dll中结构体的定义?
我需要使用第三方 DLL,我没有头文件、lib 或目标文件,它只是 DLL,我遵循 codeguru 中的这篇文章“显式链接到 DLL 中的类”,并且能够使用其中的函数、c++ 类DLL 但有一些函数调用需要传递或返回一个结构,就像我从 PE Explorer 获得的未修饰的函数一样:
Undecorated C++ Function:
public: struct SCRIPT_SET_RESULT __thiscall ScriptSet::LoadScriptInPackFile(char const *,int)
那么我如何知道 struct SCRIPT_SET_RESULT 的结构? 或者我必须反汇编这个dll?,如果是这样,请告诉我如何做到这一点,我对这些东西只有很少的经验(只在学校破解了一些简单的crackme)。谢谢
I need to use a third party DLL which I don't have header , lib or object file of it just DLL alone, I follow this article "Explicitly Linking to Classes in DLL's" in codeguru and able to user function, c++ class from that DLL but there some function call that need to pass or return a struct like this undecorated function I get from PE Explorer:
Undecorated C++ Function:
public: struct SCRIPT_SET_RESULT __thiscall ScriptSet::LoadScriptInPackFile(char const *,int)
so how can I know the structure of struct SCRIPT_SET_RESULT ?
or I have to disassemble this dll ?, if so please show me how to do that, I only have a very litle experience with that stuff (only cracked few simple crackme in school). Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
恐怕没有办法解决你的问题。反汇编可以为您提供如何使用此结构的示例,但仅限于提供成员偏移的方式,这不是很有帮助。我认为最好的方法是要求 DLL 作者向您发送标头,或者通过 google 搜索它......
I'm afraid there is no way to solve your problem. Disassembling can give you examples of how this structure is used but only in the way providing offsets of members which is not very helpful. I think the best is to ask DLL author to send you header, or to google for it...