lolslothy
30th November 2005, 01:28 PM
Hi folks,
I'm trying to subclass windows in another process (basically, I'm looking to capture keyboard and mouse events for a text prediction application). I've injected a dll in the process with keyboard focus (using PerformCallBack4), but have been unable to actually subclass a window in the target process.
My DLL performs the SetWindowLong(...), which appears to work (returns the previous window proc handle), but my wndproc is never getting called.
If anyone has any suggestions as to what I might be missing (or doing wrong) I'd be extremely grateful!
Thanks,
Mark
PS I've already succeeded in getting hardware keyboard input using a low-level keyboard hook... The problem is getting SIP activity and, ideally, mouse down & drag events.
I'm trying to subclass windows in another process (basically, I'm looking to capture keyboard and mouse events for a text prediction application). I've injected a dll in the process with keyboard focus (using PerformCallBack4), but have been unable to actually subclass a window in the target process.
My DLL performs the SetWindowLong(...), which appears to work (returns the previous window proc handle), but my wndproc is never getting called.
If anyone has any suggestions as to what I might be missing (or doing wrong) I'd be extremely grateful!
Thanks,
Mark
PS I've already succeeded in getting hardware keyboard input using a low-level keyboard hook... The problem is getting SIP activity and, ideally, mouse down & drag events.