title: WIN32_FIND_DATA - Get the absolute path
body: <p>I'm using something like this:</p>
  
  <pre><code>std::string tempDirectory = "./test/*";
  
  WIN32_FIND_DATA directoryHandle;
  memset(&amp;directoryHandle, 0, sizeof(WIN32_FIND_DATA));//perhaps redundant???
  
  std::wstring wideString = std::wstring(tempDirectory.begin(), tempDirectory.end());
  LPCWSTR directoryPath = wideString.c_str();
  
  //iterate over all files
  HANDLE handle = FindFirstFile(directoryPath, &amp;directoryHandle);
  while(INVALID_HANDLE_VALUE != handle)
  {
      //skip non-files
      if (!(directoryHandle.dwFileAttributes &amp; FILE_ATTRIBUTE_DIRECTORY))
      {
          //convert from WCHAR to std::string
          size_t size = wcslen(directoryHandle.cFileName);
          char * buffer = new char [2 * size + 2];
          wcstombs(buffer, directoryHandle.cFileName, 2 * size + 2);
          std::string file(buffer);
          delete [] buffer;
  
          std::cout &lt;&lt; file;
      }
  
      if(FALSE == FindNextFile(handle, &amp;directoryHandle)) break;
  }
  
  //close the handle
  FindClose(handle);
  </code></pre>
  
  <p>which prints the names of each file in the relative directory <code>./test/*</code>.</p>
  
  <p>Is there any way to determine the absolute path of this directory, just like <code>realpath()</code> does on Linux without involving any 3rd party libraries like BOOST? I'd like to print the absolute path to each file.</p>