Query file id in win2k?

If I can’t use ZwQueryDirectoryFile in Win2k, then how is it possible to
find out things like file id for a file?

Mark:

You can use FltQueryInformationFile() requesting FileInternalInformation

However, a large number of people on the list indicate that
ZwQueryDirectoryFile is available on Win2K – you might try it.

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Thursday, March 24, 2005 3:33 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Query file id in win2k?

If I can’t use ZwQueryDirectoryFile in Win2k, then how is it possible to
find out things like file id for a file?


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

You really can use ZwQueryDirectoryFile in W2K. You can alse query for
FileInternalInformation using ZwQueryFile if you have a handle and you can
also roll your own IRP_MJ_QUERY_INFORMATION if you have a file object.

“Mark Hahn” wrote in message news:xxxxx@ntfsd…
> If I can’t use ZwQueryDirectoryFile in Win2k, then how is it possible to
> find out things like file id for a file?
>
>

> You really can use ZwQueryDirectoryFile in W2K. You can alse query for

FileInternalInformation using ZwQueryFile if you have a handle and you can
also roll your own IRP_MJ_QUERY_INFORMATION if you have a file object.

Or you may see the file ID using the “FileTest” tool,
available for download from OSR. It is able to show
the file ID. The package contains full source, so you’ll see
how to do it.

L.