views:

219

answers:

1

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.

A: 

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

Remy Lebeau - TeamB
Thank you. I was aware of that technique (I guess I should have mentioned that - I apologize for the omission) and was hoping for something a little cleaner, but I guess there isn't such a thing. At least now I know that.However, I appreciate you taking the time.
Wilson Fowlie