Is am using this:
SetWindowsHookEx(WH_CALLWNDPROC, ...);
I can see the messages I want to process, but I want to prevent those message from reaching the target window. So I tried this:
SetWindowsHookEx(WH_GETMESSAGE, ...);
When I do this I can modify the message, and prevent the target window from processing it, but this hook doesn't see the messages I need to process. I presume this is because it is being posted to the target window's queue, not sent? Is there a way around this issue? I have heard that window sub-classing might be able to accomplish this, but can I subclass a window in a different process? Is there a way to do this using hooks?