IRDPSRAPISharingSession2 interface

The main object that an application must create to start a collaboration session. The session object is hosted in-process by RdpEncom.dll. Even though session 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.

This interface extends the IRDPSRAPISharingSession interface and contains the following members.

Members

The IRDPSRAPISharingSession2 interface inherits from IRDPSRAPISharingSession. IRDPSRAPISharingSession2 also has these types of members:

Methods

The IRDPSRAPISharingSession2 interface has these methods.

MethodDescription
Close

Puts the session in an inactive state, closes all attendees, and stops listening to new incoming connections.

ConnectToClient

Connects the viewer from the sharer in reverse connect mode if the viewer cannot connect to the sharer because of a network issue. For example, the viewer may not be able to connect to the sharer because of network address translation (NAT).

ConnectUsingTransportStream

Connects using the specified transport stream.

GetDesktopSharedRect

Retrieves the rectangle of the sharer's virtual desktop.

Open

Puts the session in an active state and starts listening to incoming connections.

Pause

Pauses the encoding of the sharer's desktop to pause sending graphics updates to all viewers.

Resume

Resumes the encoding of the sharer's desktop to resume sending graphics updates to all viewers.

SendControlLevelChangeResponse

Sends an OnControlLevelChangeResponse event.

SetDesktopSharedRect

Sets the rectangle of the sharer's virtual desktop to be shared.

 

Properties

The IRDPSRAPISharingSession2 interface has these properties.

PropertyAccess typeDescription

ApplicationFilter

Read-only

An object implementing the IRDPSRAPIApplicationFilter interface.

Attendees

Read-only

An object implementing the IRDPSRAPIAttendeeManager interface.

ColorDepth

Read/write

The color depth of the session.

FrameBuffer

Read-only

The IRDPSRAPIFrameBuffer interface for the session.

Invitations

Read-only

An object implementing the IRDPSRAPIInvitationManager interface.

Properties

Read-only

An object implementing the IRDPSRAPISessionProperties interface.

VirtualChannelManager

Read-only

An object implementing the IRDPSRAPIVirtualChannelManager interface.

 

Requirements

Minimum supported client

Windows 10 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2016 [desktop apps | Windows Store apps]

Header

RdpEncomAPI.h

IDL

RdpEncomAPI.idl

Type library

RdpEncomAPI.tlb

DLL

RdpEncom.dll

CLSID

CLSID_RDPSession is defined as 9B78F0E6-3E05-4A5B-B2E8-E743A8956B65

IID

IID_IRDPSRAPISharingSession2 is defined as fee4ee57-e3e8-4205-8fb0-8fd1d0675c21

See also

IRDPSRAPISharingSession

 

 

Show: