NtQueryDirectoryFile

I know NtQueryDirectoryFile is a partially documented function. I do not plan
to release the code i’m using it in to anyone/thing ever. Aside from that
is it possible to asynchronously enumerate directory contents with this function.
The parameter list would lead me to belive so because like all the other file io
functions with …HANDLE Event, PIO_APC_ROUTINE ApcRoutine, PVOID ApcContext…
have win32 relatives that can be called asynchronously.

I’m passing all my parameters correctly, and i even get ((NTSTATUS) 0x103) returned
which means “The operation that was requested is pending completion.” according to
FormatMessage(). This indicates that its correct, but for some reason, I never get
a completion packet queued to the completion port associated with the file/directory
handle.

Any ideas anyone??

Asa

I have no idea what your bug is, but ZwQueryDirectoryFile is fully
documented in the IFS kit, so it is a support DDI.

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Asa Yeamans
Sent: Wednesday, June 29, 2005 1:04 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] NtQueryDirectoryFile

I know NtQueryDirectoryFile is a partially documented
function. I do not plan to release the code i’m using it in
to anyone/thing ever. Aside from that is it possible to
asynchronously enumerate directory contents with this function.
The parameter list would lead me to belive so because like
all the other file io functions with …HANDLE Event,
PIO_APC_ROUTINE ApcRoutine, PVOID ApcContext…
have win32 relatives that can be called asynchronously.

I’m passing all my parameters correctly, and i even get
((NTSTATUS) 0x103) returned which means “The operation that
was requested is pending completion.” according to
FormatMessage(). This indicates that its correct, but for
some reason, I never get a completion packet queued to the
completion port associated with the file/directory handle.

Any ideas anyone??

Asa


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com