title: How to get list of selected files when using GetOpenFileName() with multiselect flag?
body: <p>I have tried googling, but people seem to have the same problem: we can't get a list of the selected files.</p>
  
  <p>This is a simple piece of working code that is similar to what I use:</p>
  
  <pre><code>OPENFILENAME ofn = { sizeof ofn };
  wchar_t file[1024];
  file[0] = '\0';
  ofn.lpstrFile = file;
  ofn.nMaxFile = 1024;
  ofn.Flags = OFN_ALLOWMULTISELECT | OFN_EXPLORER;
  GetOpenFileName(&amp;ofn);
  </code></pre>
  
  <p>How do I actually get the filenames I selected? Currently I can only get it to work without OFN_ALLOWMULTISELECT flag, so it returns the one selected filename into <code>ofn.lpstrFile</code>. I tried to print out all the string variables inside that struct, but found nothing. It only shows the main folder of the selected files.</p>