Just query it - call IoGetInformationFile or send
IRP_MJ_QUERY_INFORMATION to the underlying file system. Do keep in mind
that to obtain this information you must either have SeChangeNotify
privilege or TRAVERSE access to the path of the file and directory.
Finally, keep in mind that the path returned is just *a* particular path
and need not be the path used to find the file originally - this is
particularly true in the case of files with multiple links (multiple
directory entries pointing to the same file).
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com http:</http:>
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of jackzdk
Sent: Wednesday, March 09, 2005 8:12 PM
To: ntfsd redirect
Subject: [ntfsd] file open by id
hi,
I am writing a file filter driver,and I meet a problem.if file is open
by ID,how can I get its name.
thanks!
zhou