Skip to main content
IMsTscAx::Disconnect method

Disconnects the active connection.

Syntax


HRESULT Disconnect();

Parameters

This method has no parameters.

Return value

Return S_OK if successful.

Remarks

This method returns a failure error value if it is called when the control is not connected.

It is also possible to disconnect the control by closing its main window. For example, if the control is hosted in a webpage, it is not necessary to call this method before leaving the page; the closing of the control triggers a disconnection.

For more information about Remote Desktop Web Connection, see Requirements for Remote Desktop Web Connection.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Type library

Mstscax.dll

DLL

Mstscax.dll

IID

IID_IMsTscAx is defined as 8C11EFAE-92C3-11D1-BC1E-00C04FA31489

See also

IMsRdpClient
IMsRdpClient2
IMsRdpClient3
IMsRdpClient4
IMsRdpClient5
IMsRdpClient6
IMsRdpClient7
IMsRdpClient8
Connect
IMsTscAx