title: Get a list of all open windows using AutoIt
body: <p>I'm trying to get rid of my minimize, maximize and close buttons on all windows. Googling around I found this:</p>
  
  <pre><code>$h = WinGetHandle("[CLASS:Notepad]")
  
  $iOldStyle = _WinAPI_GetWindowLong($h, $GWL_STYLE)
  $iNewStyle = BitXOr($iOldStyle, $WS_SYSMENU)
  _WinAPI_SetWindowLong($h, $GWL_STYLE, $iNewStyle)
  _WinAPI_ShowWindow($h, @SW_SHOW)
  </code></pre>
  
  <p>This works fine, so now I only need to iterate over all windows with this code, and I'm done. How do I get a list of all <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751%28v=vs.85%29.aspx" rel="noreferrer">HWNDs</a> in the system?</p>