Undocumented functions of NTDLL

2OO1, 17 January


NtQueryDirectoryFile
NtQueryDirectoryFile

NTSYSAPI 
NTSTATUS
NTAPI

NtQueryDirectoryFile(
IN HANDLE FileHandle, IN HANDLE Event OPTIONAL, IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, IN PVOID ApcContext OPTIONAL, OUT PIO_STATUS_BLOCK IoStatusBlock, OUT PVOID FileInformation, IN ULONG Length, IN FILE_INFORMATION_CLASS FileInformationClass, IN BOOLEAN ReturnSingleEntry, IN PUNICODE_STRING FileMask OPTIONAL, IN BOOLEAN RestartScan );



NtQueryDirectoryFile is used to enumerate entries (files or directories) placed into file container object (directory). Win32 API use it in FindFirstFile-FindNextFile routines.





For detailed information about results, see FILE_INFORMATION_CLASS with information classes specified above.


Documented by:
Tomasz Nowak
Bo Branten



Requirements:
Library: ntdll.lib


See also:
NtCreateFile
NtOpenFile
NtQueryInformationFile
NtQueryOleDirectoryFile
NtQueryVolumeInformationFile