title: How to execute some code everytime an application window (other processes) is opening?
body: <p>I am trying to track visible windows from all currently running processes. My program interacts with these windows and the faster it can detect them the better.  My goal is to move visible windows to a certain location on screen before they even draw in the default position if that is possible.  If not I want to move them as quickly as possible after they are created.</p>
  
  <p>Right now I enumerate through the visble windows using EnumWindows (p/invoked from user32.dll)  in a loop with as small a delay in between iterations as I can justify.</p>
  
  <p>I am looking for a method to hook into 'something' which will allow me to wait for a 'window opening up' event to fire instead of constantly polling.</p>
  
  <p>Are there any methods to achieve this?</p>