Using the QuickUSB Library
QuickUsbClose
Purpose
Close a QuickUSB device.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
Returns
A LONG that is either non-zero on success or zero (0) on failure.
Notes
None.
QuickUsbGetStringDescriptor
Purpose
Returns the string descriptor for the selected QuickUSB module.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
index:
The BYTE string descriptor index given in the following table:
buffer:
A PCHAR that points to a buffer in which to place the string
descriptor. The buffer should be at least 128 bytes long.
length:
A WORD that contains the length of the buffer in bytes.
Symbol
Index
Description
QUICKUSB_MAKE 1
Manufacturer
String
QUICKUSB_MODEL
2
Device ID string
(including firmware type and version)
QUICKUSB_SERIAL 3 Serial
Number
Table 8 - QuickUSB String Descriptors
Returns
A LONG that is either non-zero on success or zero (0) on failure. This
function returns a NULL terminated string in the buffer if successful.
Notes
None.
42
QuickUSB Base API