IRDPSRAPISharingSession interface

The main object that an application must create to start a collaboration session. It is also the only object that you can create an instance of. The rest of the objects are accessed as session object properties.

The session object is hosted in-process by RdpEncom.dll. Even if the object is hosted in-process, there can be only one instance of this object created within a Winlogon session. Creating a second object will fail.

This interface uses the single-threaded apartment (STA) threading model. The object exposes a source interface that is used for firing session-specific events (_IRDPSessionEvents) and a dual interface that is used for managing a session.

Methods

The IRDPSRAPISharingSession interface has these methods.

Method Description
IRDPSRAPISharingSession::Close Disconnects all attendees from the session and stops listening to incoming connections.
IRDPSRAPISharingSession::ConnectToClient Used for reverse connect mode, where the sharer connects to the viewer.
IRDPSRAPISharingSession::get_ApplicationFilter Returns an object implementing the IRDPSRAPIApplicationFilter interface.
IRDPSRAPISharingSession::get_Attendees Returns an object implementing the IRDPSRAPIAttendeeManager interface.
IRDPSRAPISharingSession::get_ColorDepth Retrieves or sets the color depth for the shared session.
IRDPSRAPISharingSession::get_Invitations Returns an object implementing the IRDPSRAPIInvitationManager interface.
IRDPSRAPISharingSession::get_Properties Retrieves an object implementing the IRDPSRAPISessionProperties interface.
IRDPSRAPISharingSession::get_VirtualChannelManager Retrieves an object implementing the IRDPSRAPIVirtualChannelManager interface.
IRDPSRAPISharingSession::GetDesktopSharedRect Retrieves the current desktop region being shared.
IRDPSRAPISharingSession::Open Puts the session in an active state.
IRDPSRAPISharingSession::Pause Pauses the graphics stream that is sent to all viewers from the sharer until IRDPSRAPISharingSession::Resume is called.
IRDPSRAPISharingSession::put_ColorDepth Retrieves or sets the color depth for the shared session.
IRDPSRAPISharingSession::Resume Causes the graphics stream that is sent to all viewers from the sharer to resume until either IRDPSRAPISharingSession::Pause or IRDPSRAPISharingSession::Close is called.
IRDPSRAPISharingSession::SetDesktopSharedRect Sets the desktop region that will be shared.

Requirements

   
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header rdpencomapi.h

See also

IDispatch

IRDPSRAPISharingSession2