PnpSetBlockedDriverEvent
INT64 __stdcall PnpSetBlockedDriverEvent(PGUID BlockedDriverGuid){
GUID *DeviceEventEntry;
if( PnpShutdownEvent.Header.SignalState )
return 3221225865i64;
DeviceEventEntry = (GUID *)PnpCreateDeviceEventEntry(0xC0ui64);
if( !DeviceEventEntry )
return 3221225626i64;
DeviceEventEntry[8].Data1 = 7;
*(_DWORD *)&DeviceEventEntry[9].Data2 = 80;
DeviceEventEntry[7] = GUID_DRIVER_BLOCKED;
DeviceEventEntry[10] = *BlockedDriverGuid;
return PnpInsertEventInQueue((__int64)DeviceEventEntry);
}Referenced by:
PnpPrepareDriverLoading