title: C#: How to use SHOpenFolderAndSelectItems
body: <p>Could someone give an example on how to use the shell function <a href="http://msdn.microsoft.com/en-us/library/bb762232(VS.85).aspx" rel="noreferrer">SHOpenFolderAndSelectItems</a> from C#? I don't quite get how to use these kind of functions and couldn't find it on <a href="http://www.pinvoke.net/" rel="noreferrer">pinvoke.net</a>... =/</p>
  
  <p>Say I have three files called</p>
  
  <ul>
  <li><code>X:\Pictures\a.jpg</code></li>
  <li><code>X:\Pictures\s.jpg</code></li>
  <li><code>X:\Pictures\d.jpg</code></li>
  </ul>
  
  <p>I then want to open up the <code>X:\Pictures</code> folder with <code>a.jpg</code>, <code>s.jpg</code> and <code>d.jpg</code> selected.</p>