NTSTATUS
MiResolveImageReferences(
      PVOID ImageBase,
  IN  PUNICODE_STRING ImageFileDirectory,
  IN  PUNICODE_STRING NamePrefix OPTIONAL,
  IN  BOOLEAN LoadInSessionSpace,
  OUT PCHAR *MissingProcedureName,
  OUT PWSTR *MissingDriverName,
  OUT PLOAD_IMPORTS *LoadedImports
  );

Routine Description:

    This routine resolves the references from the newly loaded driver
    to the kernel, HAL and other drivers.

Arguments:

    ImageBase - Supplies the address of which the image header resides.

    ImageFileDirectory - Supplies the directory to load referenced DLLs.

Return Value:

    Status of the image reference resolution.