简体   繁体   中英

Retrieving GUI Objects from another process

I want to retrieve a GUI Object so that I can read and modify they Object. Right now the only way I can think of to do this is via injection (where the injection does a lot of the retrieving of the data and sends back what I want). My problem with injection is that I cannot easily debug it and it takes a long time to figure out what to do.

I can find the handle of the GUI object so is there a way i can use ReadProcessMemory() or something like this so that I can read the memory in another process and from this build it up into the GUI object that I want?

Assuming you have the proper permissions and have some way to obtain the window handle ( HWND ) of a specific GUI object (see FindWindow() ), you can call regular Win32 API functions such as SetWindowText() to modify the contents of those GUI objects.

However, doing this can break the other process' logic! If the process that owns the GUI object has cached some information and you modify the source behind its back, you might not get the desired effect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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