kakalake
December 19th, 2002, 10:40 AM
Hello!
I need to catch the messages from another application. Is there a possibility that my apllication notice when a WM_PAINT message would be send to a specific window. I need a solution without hooks!
Thanks!
galathaea
December 19th, 2002, 12:53 PM
You will need to do this in the memory context of the application you wish to intercept the message queue for. Often, the easy way (and less platform specific way) is to inject a DLL into that process (which is basically the way of hooks) though you can accomplish this by writing a subclassing procedure to the remote process (WriteProcessMemory) and executing it (either CreateRemoteThread or hijacking the CONTEXT of an existing thread in that process). Another possibility is to make your process a debugger for the remote process and placing a breakpoint on the message loop. However, I am curious as to why you would desire to do this without hooks...