title: FindFirstFile and Junctions
body: <p>I use this go get the content of directory <em>foo</em>: <code>FindFirstFile(L"foo\\*", &amp;findData)</code>. It works great when <em>foo</em> is a regular directory. However when <em>foo</em> is a junction pointing to another directory (created with <code>mklink /j foo C:\gah</code>) FindFirstFile fails. </p>
  
  <p>The docs have this to say: "If the path points to a symbolic link, the WIN32_FIND_DATA buffer contains information about the symbolic link, not the target." But when I run it the debugger I just get an <code>INVALID_HANDLE_VALUE</code> and findData remains untouched.</p>
  
  <p>So, how do I work around this?</p>