ZwQueryDirectoryFile

What’s the correct way to synchronously call ZwQueryDirectoryFile in respect
of the Event parameter? The IFS documentation doesn’t say much. I pass
FILE_SYNCHRONOUS_IO_NONALERT to ZwOpenFile, and NULL as the event handle to
ZwQueryDirectoryFile. Will ZwQueryDirectoryFile be synchronous, or will I
need to check for STATUS_PENDING and then wait on the file handle? Thanks

John

ZwQueryDirectoryFile will be synchronous.

Since the file was opened SYNCHRONOUSLY, the IO manager will handle the
synchronization for you. You should never receive a STATUS_PENDING
(sounds like a good candidate for an assert to verify you never see this
error code).

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of ifsifs
Sent: Wednesday, June 22, 2005 4:36 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] ZwQueryDirectoryFile

What’s the correct way to synchronously call ZwQueryDirectoryFile in
respect
of the Event parameter? The IFS documentation doesn’t say much. I pass
FILE_SYNCHRONOUS_IO_NONALERT to ZwOpenFile, and NULL as the event handle
to
ZwQueryDirectoryFile. Will ZwQueryDirectoryFile be synchronous, or will
I
need to check for STATUS_PENDING and then wait on the file handle?
Thanks

John


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

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