NTSTATUS
CmpOpenFileWithExtremePrejudice(
  OUT PHANDLE Primary,
  IN  POBJECT_ATTRIBUTES Obja,
  IN  ULONG IoFlags,
  IN  ULONG AttributeFlags
  );

Routine Description:

    This routine opens a hive file that some person has put a
    read-only attribute on. It is used to prevent people from hurting
    themselves by making the critical system hive files read-only.

Arguments:

    Primary - Returns handle to file

    Obja - Supplies Object Attributes of file.

    IoFlags - Supplies flags to pass to ZwCreateFile

Return Value:

    NTSTATUS