PnpSetHwProfileChangeEvent

__int64 __fastcall PnpSetHwProfileChangeEvent(__int128 *a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5){
  VOID **DeviceEventEntry; 
  __int128 v11; 

  if( *(&PnpReplaceEvent + 1665) )
    return 3221225865i64;
  DeviceEventEntry = PnpCreateDeviceEventEntry(0xC0u);
  if( !DeviceEventEntry )
    return 3221225626i64;
  *((_DWORD *)DeviceEventEntry + 32) = 0;
  DeviceEventEntry[3] = (VOID *)a2;
  DeviceEventEntry[6] = (VOID *)a4;
  DeviceEventEntry[7] = (VOID *)a5;
  v11 = *a1;
  *((_DWORD *)DeviceEventEntry + 37) = 80;
  DeviceEventEntry[17] = (VOID *)a3;
  *((_OWORD *)DeviceEventEntry + 7) = v11;
  return PnpInsertEventInQueue((__int64)DeviceEventEntry);
}

Referenced by:

PnpRequestHwProfileChangeNotification