Using the QuickUSB Library
QuickUsbAsyncWait
Purpose
Wait for an asynchronous transfer to complete.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
length:
An ULONG containing the number of bytes that were requested
in the initial asynchronous function call.
transaction: A BYTE transaction identifier returned by
QuickUsbReadDataAsync or QuickUsbWriteDataAsync.
immediate:
A BYTE value. If nonzero, the driver will not wait the
default timeout value for the transaction to complete. If zero,
the driver will wait the default timeout period for the transaction
to complete.
Returns
A LONG that is non-zero on success, zero (0) on failure.
Notes
•
This function is not yet supported for Linux-based systems.
High-Speed Parallel Port
61