What do you mean “FALSE”? The question to ask is for the attributes of the
file. Those attributes will indicate the FILE_ATTRIBUTE_DIRECTORY bit if it
is a directory. Not a directory does not mean it is a file, however, as
that depends upon the file system (it could be a volume, or a stream, or
some other file system object).
Are you suggesting that you query using a file object that you KNOW is a
directory but this attribute bit is not set? If so, it suggests that your
code is incorrect - many people on this list have implemented this technique
quite successfully.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: zhj [mailto:xxxxx@hotmail.com]
Sent: Saturday, April 27, 2002 5:47 AM
To: File Systems Developers
Subject: [ntfsd] How to determine the FILE_OBJECT represents a fiel or a
directory?
Hi.
How to determine the FILE_OBJECT represents a fiel or a directory?
I has build a IRP to query file system,but It return FALSE.
What wrong?
What the best way I would do?
Thanks in advance
Zhj
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to %%email.unsub%%