ZwQueryDirectoryObject

NTSTATUS __stdcall ZwQueryDirectoryObject(
        VOID *DirectoryHandle,
        VOID *Buffer,
        UINT64 Length,
        UINT8 ReturnSingleEntry,
        UINT8 RestartScan,
        UINT64 *Context,
        UINT64 *ReturnLength){
  NTSTATUS result; 

  _disable();
  __readeflags();
  KiServiceInternal();
  return result;
}

Referenced by:

BiGetNtPartitionPath
CmGetSystemDriverList
ExpFindArcName
IopGetLegacyVetoListDrivers
PiDrvDbEnumDriverStoreNodes
SepCleanupLUIDDeviceMapDirectory
SiGetEfiSystemDevice