ClientStartRemoteDevIsolateUser (
IN PVOID pClientContext,
IN long iIndex,
IN BOOL bAutoReconnect,
IN VARIANT strPassword,
IN VARIANT strUsername

Routine Description:

Initializes client's connection to the server with enabled per-user device isolation.


pClientContext - remote USB devices context returned by the ClientEnumAvailRemoteDevOnServer or ClientEnumAvailRemoteDev functions.


iIndex - serial number of the remote USB device.

bAutoReconnect - if this parameter is True, reconnection attempts will be made after the connection break. If False - the client disconnects.

strPassword - authorization password if required. You can find out whether authorization is required by calling the ClientRemoteDevRequiresAuth function.

strUsername - name of a user that will be allowed to access the remote device. You can specify a username associated with a local user account, DOMAIN/USER associated with a domain user account, or an email address associated with a Microsoft user account.

Return Value:

True - if the function was executed successfully. False - if an error occurred.


If you specify invalid user information, the connected remote device will not be isolated and will be 
available to all users.