From: Peter S. <pe...@st...> - 2011-09-28 17:55:28
|
Tim Roberts wrote: > > I was very surprised to see that the code for cancelling a transfer > > only seems to work completely on Vista and later, because of > > CancelIoEx() availability there. Is there really no solution for XP? > > Not out of the box. If you have your own driver, you can add a custom > ioctl to cancel all pending operations, but prior to Vista, you can > only cancel I/O operations from the same thread they were issued. The obvious solution would be to submit all io from one or more libusb-internal threads. This would cost a small bit of overhead, but maybe it would be tolerable in return for the API working right? How expensive is life with threads in Windows? //Peter |