TwclUsbMonitor.Disable(string) Method

Disables USB device.

Namespace: wclSerialDevices
public
 function Disable(const Instance: string): Integer;

Parameters

Instance
Type: string

The USB device's instance string.

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The function requires administrative rights.