共用方式為


IRDPSRAPISharingSession2 介面 (rdpencomapi.h)

應用程式必須建立的主要物件,才能啟動共同作業會話。 會話物件由 RdpEncom.dll 裝載於進程中。 即使會話物件裝載於進程中,但 Winlogon 會話內只能有一個這個對象的實例。 建立第二個物件將會失敗。

這個介面會使用單個線程 Apartment (STA) 線程模型。 對象會公開用來引發會話特定事件的來源介面, (_IRDPSessionEvents) 和用於管理會話的雙重介面。

此介面會擴充 IRDPSRAPISharingSession 介面,並包含下列成員。

繼承

IRDPSRAPISharingSession2 介面繼承自 IRDPSRAPISharingSessionIRDPSRAPISharingSession2 也有下列類型的成員:

方法

IRDPSRAPISharingSession2 介面具有這些方法。

 
IRDPSRAPISharingSession2::ConnectUsingTransportStream

使用指定的傳輸數據流連接。
IRDPSRAPISharingSession2::get_FrameBuffer

取得這個工作階段的框架緩衝區。
IRDPSRAPISharingSession2::SendControlLevelChangeResponse

傳送 OnControlLevelChangeResponse 事件。

規格需求

需求
最低支援的用戶端 Windows 10 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2016 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 rdpencomapi.h

另請參閱

IRDPSRAPISharingSession