1
vote
Vote UpVote

More GetFinalPathNameByHandle

Chris Bensen – Yesterday I posted about how GetFinalPathNameByHandle is less than ideal. It doesn't work. Well it works in some situations, but it is unusable in a real world situation. The work around is to create a file map to get the file name but that only works if the handle is to a file that is not zero bytes and is not a directory. So for those cases one must use an undesirable function: NTQueryObject. So it works, for now. Microsoft, please fix GetFinalPathNameByHandle. Note: I did all my testing on Windows 7. Your milage on Vista may be different.
Favorite? Off-Topic? noreply@blogger.com @ 2010-06-17 16:00

Statistics

Visits: 390
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

stukelly
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)