title: Is it possible to redirect raw input to a specific window?
body: <p>I have a Windows Media Center remote that windows recognizes as a keyboard. When I run a multi-monitor setup with Windows Media Center playing a video on one screen, the remote's input is directed to the active window along with the regular keyboard. So when I'm doing something on the other screen, Windows Media Center doesn't respond to the remote. I thought I'd write a simple low level keyboard hook that traps all key events, determines which presses came from the remote, and redirects those to the open Media Center window.</p>
  
  <p>I found out in <a href="https://stackoverflow.com/questions/10149796/is-it-possible-to-determine-which-keyboard-sent-a-keypress">Is it possible to determine which keyboard sent a keypress?</a> that I need to use raw input functions to determine which keyboard sent each key event.  Now that I have this, I was going to add a low level keyboard hook which checked the information from the raw input, but Windows apparently does not allow you to run both a low level hook and receive raw input simultaneously.</p>
  
  <p>I happen to fit into the one case they excluded: I need raw input to determine the keyboard, and I could really use a hook in order to block and resend the key events that need to be redirected.</p>
  
  <p>So, short of running two processes to get both abilities, is there a way to block/redirect input from raw input to a specific open window?</p>
  
  <p>EDIT: I've tried separate threads.  No go.</p>