SmartCode ViewerX

ISmartCodeVNCViewer3::EnableAutoReconnect Property


Specifies whether to enable the client control to reconnect automatically to a session in the event of a network disconnection.

Syntax

HRESULT ISmartCodeVNCViewer2::get_EnableAutoReconnect(VARIANT_BOOL* pbEnableAutoReconnect);
HRESULT ISmartCodeVNCViewer2::put_EnableAutoReconnect(VARIANT_BOOL bEnableAutoReconnect);

Parameters

pbEnable
Pointer to a variable of type VARIANT_BOOL that receives the automatic reconnection status: VARIANT_TRUE to enable and VARIANT_FALSE otherwise.
bEnable
Set to VARIANT_TRUE to enable automatic reconnection, and to VARIANT_FALSE to disable it. The default is VARIANT_TRUE.

Return Value

Returns S_OK if successful, or an error value otherwise.