Tech Support > Microsoft Windows > Development Resources > how to get a file handle given a file index and volume serial number?
how to get a file handle given a file index and volume serial number?
Posted by Stefaan Nachtergaele on July 5th, 2004


What I need is the inverse of GetFileInformationByHandle function.

I have the following information:
dwVolumeSerialNumber As Long
nFileIndexHigh As Long
nFileIndexLow As Long

How do I retrieve the a file handle or file path, given this information?

Thanks,
Stefaan Nachtergaele

Posted by babak on July 8th, 2004


Look at VolumeManagement in msdn.
You need to iterate through volumes to find a match to your serial
number.
Then look at Master File Table of the volume, you might be able to
find the file you want there.



http://msdn.microsoft.com/library/de...unt_points.asp

doemaar@nachtergaele.net (Stefaan Nachtergaele) wrote in message news:<4c2f31ab.0407050255.7eec4c1d@posting.google. com>...