title: Returning all desktop windows with PyWinAuto
body: <p>I am trying to return all windows from my machine using PyAutoWin. The ultimate goal is to later narrow down this list to a subset of windows to automate (resize and perform scraping actions) using a mixture of methods.</p>
  
  <p>However I am failing at the most basic task: returning all windows. My code is:</p>
  
  <pre class="lang-py prettyprint-override"><code>import pywinauto
  
  print(pywinauto.findwindows.enum_windows())
  </code></pre>
  
  <p>and getting this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "app.py", line 4, in &lt;module&gt;
      print(pywinauto.findwindows.enum_windows())
    File "C:\Users\*\.virtualenvs\scraper-j58Iv-wO\lib\site-packages\pywinauto\findwindows.py", line 368, in enum_windows
      win32functions.EnumWindows(proc, 0)
  ctypes.ArgumentError: argument 1: &lt;class 'TypeError'&gt;: expected WinFunctionType instance instead of WinFunctionType
  </code></pre>
  
  <p>I tried instantiating a Desktop() object and passing it to the enum_windows() method but it does not take in argument.</p>
  
  <p>Any help is greatly appreciated!</p>
  
  <p>Best regards</p>