I got the HANDLE to a file, and I need to find the filename associated.


  • GetFileInformationByHandle returns other information about file, but not filename.
  • I don't want to use NtQueryInformationFile
  • Cannot use CFile(HANDLE), CFile::GetFileName, since it needs open file-handle. I just have file-handle (no open file).
  • This is not appealing me:
    http://msdn.microsoft.com/en-us/libr...89(VS.85).aspx
For now, I cannot disclose "how" I am getting this HANDLE.