Oxalin / usbip_windows

Project halted, moving to joint venture, see Readme. Revive Windows' USB/IP drivers and tools from the dormant SourceForge's one
92 stars 36 forks source link

Move from our own managed Cancel IRP routine to Cancel-safe IRP Queues #7

Open Oxalin opened 6 years ago

Oxalin commented 6 years ago

We implement and manage our own Cancel IRP routine. However, since Windows XP, this can be replaced and more easily managed by cancel-safe IRP queues.

Evaluate and possibly move to Cancel-Safe IRP Queues instead of our own cancel routine. Cancel-Safe IRP Queues are natively available since Windows XP. If we still want to support Windows 2000, we need to explicitly link againt the Csq.lib library that is included in the Windows Driver Kit (WDK). See: https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/cancel-safe-irp-queues