title: Checking if the front window is a Game\ using DirectX
body: <p>I'm  working on an app that acts as a controller that connect to your PC through sockets, and allows the user to play the PC game with the app. I need to check on the server side if the app running in front is a game. If it is then app will work like a regular XBOX\PS remote, otherwise, the remote won't do anything.</p>
  
  <p>How do I check if the front window of the PC is an installed game and that this game is using DirectX? Basically the app will work only with DirectX games because of the way I'm "faking the keypress". I know that it won't be compatible with other games but its fine.</p>