title: Checking if a window is active
body: <p>I have a console application that uses <code>GetAsyncKeyState();</code>, but if the user is on looking at another window and pressed a button, <code>GetAsyncKeyState();</code> picked it up (I already knew that).</p>
  
  <p>Without having to do <code>GetActiveWindow();</code>, how else could I check if my window is the one on top?</p>
  
  <p>EDIT: <code>GetConsoleWindow() == GetForegroundWindow()</code> worked.</p>