Locks/unlocks the local device. The locked devices are not visible for other computers in the account and they cannot be connected to.
int WINAPI FH_LockDeviceAsync( ID_VAR idComp, STR_VAR idDevice, BOOL bLock, int timeoutMs);
- idComp – the computer’s ID or alias for “local”
- idDevice – the device’s ID
- bLock – locked if TRUE, otherwise unlocked
- 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.