Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 923 of file fbtpwr.c.
Referenced by HandleRemoveDevice(), HandleStopDevice(), and HandleSurpriseRemoval().
{ PIRP Irp; FreeBT_DbgPrint(3, ("FBTUSB: CancelWaitWake: Entered\n")); Irp = (PIRP) InterlockedExchangePointer(&DeviceExtension->WaitWakeIrp, NULL); if(Irp) { IoCancelIrp(Irp); if(InterlockedExchange(&DeviceExtension->FlagWWCancel, 1)) { PoStartNextPowerIrp(Irp); Irp->IoStatus.Status = STATUS_CANCELLED; Irp->IoStatus.Information = 0; IoCompleteRequest(Irp, IO_NO_INCREMENT); } } FreeBT_DbgPrint(3, ("FBTUSB: CancelWaitWake: Leaving\n")); }