简体   繁体   English

如何知道dll中的结构定义?

[英]How to know defination of a struct in dll?

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: 我需要使用第三方DLL,而我本身没有DLL的标头,lib或目标文件,我在codeguru中遵循了这篇文章“明确链接到DLL中的类”,并能够使用该函数来使用c ++类DLL,但是有一些函数调用需要传递或返回从PE资源管理器中获得的未经修饰的函数,例如:

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 ? 所以我怎么知道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). 还是我必须反汇编这个dll?,如果是,请告诉我该怎么做,我对这些东西只有很少的经验(在学校里只破解了几个简单的crame)。 Thanks 谢谢

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... 我认为最好的方法是让DLL作者向您发送标头,或向Google发送标头。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM