https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-iocancelirp
IoCancelIrp function (wdm.h) - Windows drivers | Microsoft Learn
The IoCancelIrp routine sets the cancel bit in a given IRP and calls the cancel routine for the IRP if there is one.
windows driversfunctionwdmhmicrosoft