title: Window Hooking Questions
body: <p>Is am using this:</p>
  
  <pre><code>SetWindowsHookEx(WH_CALLWNDPROC, ...);
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>SetWindowsHookEx(WH_GETMESSAGE, ...);
  </code></pre>
  
  <p>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?</p>