IRDPSRAPIViewer::Disconnect method

[The IRDPSRAPIViewer interface is no longer available for use for UWP applications as of Windows 10, version 1709. It is still supported for Desktop apps.]

Initiates a disconnect of the viewer from the sharer.


HRESULT Disconnect();


This method has no parameters.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header rdpencomapi.h
DLL RdpEncom.dll

See also