CmIsLocalMachineContainer

bool __fastcall CmIsLocalMachineContainer(__int64 a1, const wchar_t *a2){
  char v2; 
  int v5; 
  int v6[3]; 
  wchar_t Str1[40]; 
  v2 = 0;
  v5 = 78;
  v6[0] = 0;
  if( (int)CmGetDeviceRegProp(a1, L"HTREE\\ROOT\\0", 0i64, 37, (__int64)v6, (__int64)Str1, (__int64)&v5, 0) >= 0 )
  {
    Str1[38] = 0;
    return wcsicmp(Str1, a2) == 0;
  }
  return v2;
}

Referenced by:

CmGetDeviceContainerMappedProperty
PiDcHandleCustomDeviceEvent