Getting a file path from a file handle in Windows

Wilson F picture Wilson F · Oct 8, 2009 · Viewed 7.6k times · Source

In Windows, is there a straightforward way to get the full path of a file, given only the file's handle?

I can't use GetFinalPathNameByHandle() because that's Vista+ only and our product has to work on XP. However, something that simple, or close to it, would be best.

Answer