RtlCheckPortableOperatingSystem

NTSTATUS __stdcall RtlCheckPortableOperatingSystem(UINT8 *IsPortableOperatingSystem){
  NTSTATUS RegistryValues; 
  _RTL_QUERY_REGISTRY_TABLE result[2]; 
  int v5; 
  RegistryValues = 0;
  v5 = 0;
  if( RtlCheckRegistryKey(2ui64, (PWCHAR)L"MiniNT") >= 0 )
    goto LABEL_6;
  memset((INT64)result, 0i64);
  result[0].Name = (wchar_t *)L"PortableOperatingSystem";
  result[0].Flags = 292;
  result[0].EntryContext = &v5;
  result[0].DefaultType = 0x4000000;
  RegistryValues = RtlQueryRegistryValuesEx(2ui64, 0i64, result, 0i64, 0i64);
  if( RegistryValues == -1073741772 )
    RegistryValues = -1073741275;
  if( RegistryValues >= 0 )
LABEL_6:
    *IsPortableOperatingSystem = v5 != 0;
  return RegistryValues;
}

Referenced by:

No references.