PipSendGuestAssignedNotification
NTSTATUS __fastcall PipSendGuestAssignedNotification(INT64 a1, CHAR a2){
_DEVICE_OBJECT *v4;
_IRP *DeviceUsageNotification;
IRP *v6;
NTSTATUS result;
PDEVICE_OBJECT DeviceObject;
int v9;
CHAR v10;
NTSTATUS v11;
char Object[32];
memset((INT64)&DeviceObject, 0i64);
IoGetAttachedDevice(*(_DEVICE_OBJECT **)(a1 + 32));
DeviceObject = v4;
v9 = 6;
v10 = a2;
DeviceUsageNotification = PpIrpAllocateDeviceUsageNotification((INT64)&DeviceObject);
v6 = DeviceUsageNotification;
if( !DeviceUsageNotification )
return -1073741801;
IoQueueThreadIrp(DeviceUsageNotification);
result = IofCallDriver(DeviceObject, v6);
if( result == 259 )
{
KeWaitForSingleObject(Object, Executive, 0, 0, 0i64);
return v11;
}
return result;
}Referenced by:
PiUpdateGuestAssignedState