Language
|
Description
|
C/C++
|
BOOL UsbGetPortStatus(IN USB_DEVICE_HANDLE hUsb,
|
Delphi
|
function UsbGetPortStatus(hUsb : USB_DEVICE_HANDLE;
var PortStatus : ULONG) : BOOL stdcall;
|
VB
|
Function UsbGetPortStatus (ByVal hUsb As Long, _
ByRef PortStatus As Long) As Boolean
|
Parameters
| Specifies device handle. This handle can be obtained with OpenRapidUsb.
|
| Output parameter. Return Value contains device state flags. The flags can be one or both of USBD_PORT_ENABLED, USBD_PORT_CONNECTED.
|
Return Value
| If function fails it return FALSE. To detect error call GetLastError function.
|
|