PiUEventSendDeviceInstallNotification

VOID __stdcall PiUEventSendDeviceInstallNotification(WCHAR *DeviceId){
  __int64 v2; 
  __int64 v3; 
  UINT64 v4; 
  UINT64 v5; 

  LODWORD(v5) = 0;
  LODWORD(v4) = 0;
  if( ZwUpdateWnfStateData(&WNF_PNPC_DEVICE_INSTALL_REQUESTED, 0i64, 0i64, 0i64, 0i64, v4, v5) >= 0
    && (byte_140C130BA & 8) != 0 )
  {
    McTemplateK0z_EtwWriteTransfer(v2, (const _EVENT_DESCRIPTOR *)KMPnPEvt_DeviceInstall_Requested, v3, DeviceId);
  }
}

Referenced by:

PiUEventNotifyUserMode