Language
|
Description
|
C/C++
|
BOOL UsbSelectConfig(IN USB_DEVICE_HANDLE hUsb,
|
Delphi
|
function UsbSelectConfig(hUsb : USB_DEVICE_HANDLE;
ConfigIndex : UCHAR) : BOOL; stdcall;
|
VB
|
Function UsbSelectConfig (ByVal hUsb As Long, _
ByVal ConfIndex As Byte) As Boolean
|
Parameters
| Specifies device handle. This handle can be obtained with OpenRapidUsb.
|
| index of configuration descriptor
|
Return Value
| If function fails it return FALSE. To detect error call GetLastError function.
|
Description
| Use this function to select configuration if device have more than one configuration or if device is in unconfigured state. To place device to this state use UsbUnconfigureDevice. Before calling this function stop all transfers and close all opened pipes with UsbPipeClose function. All opened pipe handles became invalid after configuration selection.
|
|