IRDPSRAPISharingSession::Close method (rdpencomapi.h)

Disconnects all attendees from the session and stops listening to incoming connections.

When the attendees are disconnected, no attendee disconnect event occurs on the sharer side because it is the sharer that calls this method. The sharer is already aware that the attendees will be disconnected.

A closed session cannot be reopened by calling the IRDPSRAPISharingSession::Open method.

Syntax

HRESULT Close();

Return value

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

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header rdpencomapi.h
DLL RdpEncom.dll

See also

IRDPSRAPISharingSession

IRDPSRAPISharingSession2