IoNotifyPowerOperationVetoed
NTSTATUS __stdcall IoNotifyPowerOperationVetoed(
POWER_ACTION VetoedPowerOperation,
PDEVICE_OBJECT TargetedDeviceObject,
PDEVICE_OBJECT VetoingDeviceObject){
const VOID **DeviceNode;
if( !TargetedDeviceObject )
TargetedDeviceObject = *(PDEVICE_OBJECT *)(*(&PnpReplaceEvent + 831) + 32i64);
if( !TargetedDeviceObject->DeviceObjectExtension->DeviceNode )
return -1073741584;
DeviceNode = (const VOID **)VetoingDeviceObject->DeviceObjectExtension->DeviceNode;
if( DeviceNode )
return PnpSetPowerVetoEvent(
VetoedPowerOperation,
(__int64)TargetedDeviceObject,
(__int64)VetoingDeviceObject,
TargetedDeviceObject,
6,
DeviceNode + 5);
else
return -1073741583;
}Referenced by:
PoBroadcastSystemState