PnpInitializePnpWatchdogs

NTSTATUS PnpInitializePnpWatchdogs(){
  int v0; 
  NTSTATUS result; 
  int v2; 
  VOID *Handle; 

  v0 = 0;
  Handle = 0i64;
  result = PnpOpenCCSPnpRegKey(&Handle);
  if( result >= 0 )
  {
    v2 = 0;
    if( (int)PnpGetRegistryDword(Handle, L"WatchdogBugcheckEnabled", &v2) >= 0 )
    {
      if( v2 )
        v0 = 1;
    }
    else
    {
      v0 = 2;
    }
    *(&PnpReplaceEvent + 32) = v0;
    PnpQueryWatchdogTimeoutConfiguration(Handle);
    return ZwClose((_HANDLE)Handle);
  }
  return result;
}

Referenced by:

IopInitializePlugPlayServices