title: win32gui.SetActiveWindow() ERROR : The specified procedure could not be found
body: <p>I get the active window like so:</p>
  
  <pre><code>window = win32gui.GetForegroundWindow()
  </code></pre>
  
  <p>which is an Int, say 1053634.
  And afterwards I try to set the foreground window back to the specified window:</p>
  
  <pre><code>win32gui.SetForegroundWindow(window)
  </code></pre>
  
  <p>And I get this error: 
      win32gui.SetForegroundWindow(window)
      error: (127, 'SetForegroundWindow', 'The specified procedure could not be found.')</p>
  
  <p>Sometimes when I do this in the interpreter, I get this error:</p>
  
  <pre><code>win32gui.SetForegroundWindow(1053634)
  error: (0, 'SetForegroundWindow', 'No error message is available')
  </code></pre>
  
  <p>What do you think is the problem?</p>
  
  <p>Thanks!</p>