Language
|
Description
|
C/C++
|
BOOL UsbGetInterface(IN USB_DEVICE_HANDLE hUsb,
|
Delphi
|
function UsbGetInterface(hUsb : USB_DEVICE_HANDLE;
InterfaceIndex : UCHAR;
var InterfaceNum : UCHAR) : BOOL; stdcall;
|
VB
|
Function UsbGetInterface (ByVal hUsb As Long, _
ByVal InterfaceIndex As Byte, _
ByRef InterfaceNumber As Byte) As Boolean
|
Parameters
| Specifies handle to USB device
|
| Device defined index of interface
|
| Value returned from device
|
Return Value
| If function fails it return FALSE. To detect error call GetLastError function.
|
Description
| Function return in InterfaceNum currently active alternate setting for a particular interface.
|
Note
| This function is not supported in WindowsXP.
|
|