title: Window Not Receiving WM_KEYDOWN/WM_KEYUP Events
body: <p>I am hooking onto another processes main window via SetWindowHookExA (injected from a DLL) and attaching to the WH_KEYBOARD event. However, my callback is never called but the hooking succeeds and I do get the original value in return. </p>
  
  <p>Upon investigating with Spy++, it seems the window never receives any WM_KEYUP / WM_KEYDOWN etc. messages at all. Digging further with a debugger I can confirm the window messages are being handled by PeekMessage / TranslateMessage / DispatchMessage so the events should occur as normal according to MSDN based on PeekMessage. Yet they never seem to happen. </p>
  
  <p>Is there something that allows a created window to block these messages from ever happening to their window? (I've tried hooking onto the WNDPROC as well via SetWindowLongPtr, and still no go, my callback receives all messages fine, but the WM_KEY* messages never happen.)</p>
  
  <p>The application does use DirectInput, however in other previous projects that have used DirectInput, the keyboard messages still happen as normal.</p>
  
  <p>Just a quick recap of what I've tried and such:</p>
  
  <ul>
  <li>SetWindowsHookExA with WH_KEYBOARD; callback never called.</li>
  <li>SetWindowLongPtr with GWL_WNDPROC; call is hit, never sees keyboard messages.</li>
  <li>Confirmed window does use PeekMessage to process its messages, so keyboard messages should happen fine.</li>
  </ul>