Language
|
Description
|
C/C++
|
BOOL UsbCyclePort(IN USB_DEVICE_HANDLE hUsb);
|
Delphi
|
function UsbCyclePort(hUsb : USB_DEVICE_HANDLE) : BOOL; stdcall;
|
VB
|
Function UsbCyclePort (hUsb As Long)
|
Parameters
| Specifies device handle. This handle can be obtained with OpenRapidUsb.
|
Return value
| If function fails it return FALSE. To detect error call GetLastError function.
|
Description
| Function simulates a device unplug and replug on the connected hub port. Before calling this function stop all transfers and close all opened pipes with UsbPipeClose function. All opened pipe handles became invalid after this function call.
|
|