ZwQueryDirectoryFile failed with error STATUS_INVALID_DEVICE_REQUEST

Hello,

I’m having troubles using ZwQueryDirectoryFile in my minifilter driver.

It seems that calls to ZwQueryDirectoryFile failed when trying to enumerate the root directory (e.g., “\Device\HarddiskVolume1”). But there is *NO* problem with queries on non-root directories.

The error returned is “STATUS_INVALID_DEVICE_REQUEST”, which sounds to me like the root directory (or the volume) cannot be queried in this way.
I’m wondering if I should use a different kernel routine to enumerate the content of a root directory?

Thanks!

As per my knowledge \Device\HarddiskVolume1 is NOT the root directory. I
suppose things should work if you use \Device\HarddiskVolume1\

Regards,
Ayush Gupta
AI Consulting

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gatech.edu
Sent: Sunday, November 08, 2009 8:59 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] ZwQueryDirectoryFile failed with error
STATUS_INVALID_DEVICE_REQUEST

Hello,

I’m having troubles using ZwQueryDirectoryFile in my minifilter driver.

It seems that calls to ZwQueryDirectoryFile failed when trying to enumerate
the root directory (e.g., “\Device\HarddiskVolume1”). But there is *NO*
problem with queries on non-root directories.

The error returned is “STATUS_INVALID_DEVICE_REQUEST”, which sounds to me
like the root directory (or the volume) cannot be queried in this way.
I’m wondering if I should use a different kernel routine to enumerate the
content of a root directory?

Thanks!


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer