Windows: WinUSB: Do not assume that driver implements CancelIoEx()
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 12 Mar 2018 17:24:04 +0000 (10:24 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 12 Mar 2018 17:24:04 +0000 (10:24 -0700)
commit81ce8be59b608622b8f383022572ff947b12540d
tree4b4bc2c218346a755f3d4758dada60da99c49651
parent828ec954244cb9bdfa207d381abd4155dbd1cc36
Windows: WinUSB: Do not assume that driver implements CancelIoEx()

Cancelling an individual OVERLAPPED I/O operation is something that a
driver can optionally implement. It appears that the native WinUSB
driver supports this but libusbK does not. Therefore we will attempt
to use it and fall back to the AbortPipe() call if an error occurs.

Closes #400

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_winusb.c
libusb/os/windows_winusb.h
libusb/version_nano.h