Click to See Complete Forum and Search --> : How to get the File Name by Handle


Revolution
November 15th, 2005, 07:20 AM
Dear Gurus,

I want to get the File Name from a Handle. I had used the FindFirstChangeNotification (), it returns the handle correctly, Now I want to get the File Name from the Handle.

Is it Possible to get the File Name from the Handle. If Possible how to get it.

Pls guide me

Marc G
November 15th, 2005, 07:40 AM
I think you understand FindFirstChangeNotification the wrong way.
FindFirstChangeNotification returns a handle to a find change notification object it doesn't return a handle to a file.
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/obtaining_directory_change_notifications.asp for an example on how to use that function.

mrnt
November 15th, 2005, 01:52 PM
hi, maybe this can help you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/obtaining_a_file_name_from_a_file_handle.asp?frame=true
cheers :)

davidhowe2
November 15th, 2005, 08:35 PM
hi, maybe this can help you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/obtaining_a_file_name_from_a_file_handle.asp?frame=true
cheers :)

Thanks for the post! I was wondering about it too.

Marc G
November 16th, 2005, 02:54 AM
Just remember that FindFirstChangeNotification does not return a file handle.