2OOO, 21 December
NTSYSAPI NTSTATUS NTAPI
NtQueryDirectoryObject(
IN HANDLE DirectoryObjectHandle, OUT POBJDIR_INFORMATION DirObjInformation, IN ULONG BufferLength, IN BOOLEAN GetNextIndex, IN BOOLEAN IgnoreInputIndex, IN OUT PULONG ObjectIndex, OUT PULONG DataWritten OPTIONAL );
Handle to Directory Object opened with DIRECTORY_QUERY access.
Pointer to OBJDIR_INFORMATION structure. Warning: structure has variable length dependly to length of object name. To test for required length of buffer use DataWritten parameter.
Length of DirObjInformation buffer.
Decide of ObjectIndex parameter usage on output. If FALSE: ObjectIndex is number of object in Object Directory. If TRUE: ObjectIndex is index of next object to quered object (see below) in Object Directory.
Decide how to use ObjectIndex on function input. If FALSE: ObjectIndex point to ULONG index of object in Object Directory. If TRUE: ObjectIndex input value is ignored. Function always return informations about first object in Object Directory.
Pointer to ULONG value described above.
Pointer to ULONG value receiving required / written buffer size. This parameter is optional.