FH_DisconnectDeviceAsync

FH_DisconnectDeviceAsync

Disconnects the connected device. The command can be executed from any computer logged into your account. This function is equivalent to clicking the “Disconnect” button in the GUI.

int WINAPI FH_DisconnectDeviceAsync(
        ID_VAR idComp,
        STR_VAR idDevice,
        int timeoutMs);

Here:

  • idComp – the ID of the computer to which the device is attached physically or alias for “local”.
  • idDevice – the ID of the device physically connected to the computer.
  • timeoutMs – timeout. By default equals to –1.

The returned value is the ID of the invoked command or 0 in case the command cannot be executed.