开发者

C++ DLL Injection get Struct values

开发者 https://www.devze.com 2022-12-25 01:21 出处:网络
I am trying inject into a dll that sends a void ** for one of the parameters. The void ** can contain structs 开发者_开发问答that are created in the application.

I am trying inject into a dll that sends a void ** for one of the parameters.

The void ** can contain structs 开发者_开发问答that are created in the application.

Is there any way of getting data out of the structs.


If I understand you correcly you want to create a function in a DLL that accepts a void** and then be able to figure out what structs the caller has passed through the void** parameter.

In that case the answer is that no, you cannot do that. The function accepting the void** needs to know what is inside it. There is no such thing as reflection in pure C++ that can handle that situation.

0

精彩评论

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

关注公众号