RtlCreateRegistryKey

NTSTATUS __stdcall RtlCreateRegistryKey(ULONG RelativeTo, PWSTR Path){
  NTSTATUS result; 
  VOID *Key; 

  Key = 0i64;
  result = RtlpGetRegistryHandle(*(UINT64 *)&RelativeTo, Path, 1u, &Key);
  if( result >= 0 )
  {
    if( (RelativeTo & 0x40000000) == 0 )
      ZwClose((_HANDLE)Key);
    return 0;
  }
  return result;
}

Referenced by:

WheapCommitPolicy