PiSendTargetDeviceRemoveCanceledNotification
__int64 __fastcall PiSendTargetDeviceRemoveCanceledNotification(__int64 a1, unsigned int a2){
unsigned int i;
_DEVICE_OBJECT *v5;
_DWORD *DeviceNode;
int v7;
__int64 result;
if( a2 )
{
for( i = 0; i < a2; ++i )
{
v5 = *(_DEVICE_OBJECT **)(a1 + 8i64 * (a2 - i - 1));
if( v5 )
DeviceNode = v5->DeviceObjectExtension->DeviceNode;
else
DeviceNode = 0i64;
if( DeviceNode )
{
v7 = DeviceNode[75];
result = (unsigned int)(v7 - 769);
if( (result & 0xFFFFFFEE) == 0 && v7 != 785 )
continue;
}
result = PnpNotifyTargetDeviceChange(&GUID_TARGET_DEVICE_REMOVE_CANCELLED, v5, 0i64, 0i64);
}
}
return result;
}Referenced by:
PipProcessQueryRemovalInKernelMode
PipSendTargetDeviceQueryRemoveNotification