Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting a file path from a file handle in Windows

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.

like image 856
Wilson F Avatar asked Oct 07 '09 23:10

Wilson F


1 Answers

Here you go: Obtaining a File Name From a File Handle

like image 126
Remy Lebeau Avatar answered Oct 01 '22 22:10

Remy Lebeau