Using the QuickUSB Library
QuickUsbSetTimeout
Purpose
Set the timeout for QuickUSB read data transfers.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
timeout: A LONG that specifies the new timeout value in milliseconds.
Returns
A LONG that is either non-zero on success or zero (0) on failure.
Notes
•
The default timeout for data transfers is 1000ms.
•
The new timeout is applied immediately to all ports regardless of
their state.
QuickUsbGetDriverVersion
Purpose
Determine the version of the QuickUSB driver.
Parameters
major:
A PWORD that points to a variable in which to place the major
version number.
minor:
A PWORD that points to a variable in which to place the minor
version number.
build:
A PWORD that points to a variable in which to place the build
number.
Returns
A LONG that is either non-zero on success or zero (0) on failure.
Notes
•
For Linux-based systems, this function returns the library version.
QuickUsbGetDllVersion
Purpose
Determine the version of the QuickUSB DLL (QuickUSB.dll).
Parameters
major:
A PWORD pointing to variable in which to place the major
version number.
minor:
A PWORD pointing to variable in which to place the minor
version number.
build:
A PWORD pointing to variable in which to place the build
number.
Returns
A LONG that is non-zero on success, zero (0) on failure.
Notes
•
For Linux-based systems, this function returns the library version.
QuickUSB Base API
43