简体   繁体   English

通过外部包装程序在exe程序中访问ListView的数据

[英]Accessing ListView's data in exe program by external wrapper program

I have a c++ exe program I do not own the source and I want to access some data which is in the ListView. 我有一个c ++ exe程序,我不拥有源代码,我想访问ListView中的某些数据。 Is there any way to do this? 有什么办法吗? (My best guess is using memory address but how to know the format of ListView) (我最好的猜测是使用内存地址,但如何知道ListView的格式)

Image of the program 程序图片

You can access ListView data by sending LVM_ messages to it if it owns data. 如果ListView拥有数据,则可以通过向其发送LVM_消息来访问它。 Or if ListView is virtual, data is provided by LVN_ notifications by its parent window. 或者,如果ListView是虚拟的,则数据由其父窗口的LVN_通知提供。 Either way, you need to be in exe's address space, so you would have to inject own code (which can be achived by making that exe load your DLL, can be done by windows hooks or by CreateRemoteThread). 无论哪种方式,您都需要位于exe的地址空间中,因此您必须注入自己的代码(可以通过使该exe加载您的DLL来实现,可以通过Windows钩子或CreateRemoteThread来实现)。 So, generally it is possible, but cumbersome. 因此,通常是可能的,但麻烦。

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

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