title: How do I get the window handle of the desktop?
body: <p>The Windows API provides an API <a href="http://msdn.microsoft.com/en-us/library/ms633504%28VS.85%29.aspx" rel="noreferrer">GetDesktopWindow( )</a> which returns the window handle </p>
  
  <p>But I tested with Spy++ and I find that the window handle of the desktop and the window handle of the "Windows Desktop" is not the same. </p>
  
  <p>As the "Windows Desktop" is a list view, do I need to do the following </p>
  
  <pre><code>1) HANDLE hWnd = GetDesktopWindow() ;
  2) FindWindow(hWnd, ..... ) with the SyslistView32 as the Window class.
  </code></pre>
  
  <p>Once I get the Window handle, I want to use SendMessage() for operations like getting selected file name, the number of files selected , etc.</p>
  
  <p>Please give your opinions. I am doing this using the Windows SDk</p>