Win32 API 日本語リファレンス
ホームSystem.DesktopSharing › IRDPSRAPISharingSession

IRDPSRAPISharingSession

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IIDeeb20886-e470-4cf6-842b-2739c0ec5cfb継承元IDispatch呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl7

メソッド 14

vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。

vtbl 7 HRESULT Open()
vtbl 8 HRESULT Close()
vtbl 9 HRESULT put_ColorDepth(INT colorDepth)
colorDepthINTinセッションで使用する色深度 (ピクセルあたりのビット数) を指定する整数である。
vtbl 10 HRESULT get_ColorDepth(INT* pColorDepth)
pColorDepthINT*outセッションで使用されている色深度 (ピクセルあたりのビット数) を受け取る整数へのポインタである。
vtbl 11 HRESULT get_Properties(IRDPSRAPISessionProperties** ppVal)
ppValIRDPSRAPISessionProperties**outセッションのプロパティを管理する IRDPSRAPISessionProperties インターフェイスを受け取るポインタである。
vtbl 12 HRESULT get_Attendees(IRDPSRAPIAttendeeManager** ppVal)
ppValIRDPSRAPIAttendeeManager**outセッションの参加者を管理する IRDPSRAPIAttendeeManager インターフェイスを受け取るポインタである。
vtbl 13 HRESULT get_Invitations(IRDPSRAPIInvitationManager** ppVal)
ppValIRDPSRAPIInvitationManager**outセッションの招待を管理する IRDPSRAPIInvitationManager インターフェイスを受け取るポインタである。
vtbl 14 HRESULT get_ApplicationFilter(IRDPSRAPIApplicationFilter** ppVal)
ppValIRDPSRAPIApplicationFilter**out共有対象を制御するアプリケーションフィルタ IRDPSRAPIApplicationFilter インターフェイスを受け取るポインタである。
vtbl 15 HRESULT get_VirtualChannelManager(IRDPSRAPIVirtualChannelManager** ppVal)
ppValIRDPSRAPIVirtualChannelManager**out仮想チャネルを管理する IRDPSRAPIVirtualChannelManager インターフェイスを受け取るポインタである。
vtbl 16 HRESULT Pause()
vtbl 17 HRESULT Resume()
vtbl 18 HRESULT ConnectToClient(LPWSTR bstrConnectionString)
bstrConnectionStringLPWSTRin接続先クライアントを示す接続文字列を指定する文字列である。
vtbl 19 HRESULT SetDesktopSharedRect(INT left, INT top, INT right, INT bottom)
leftINTin共有するデスクトップ矩形領域の左端の座標を指定する整数である。
topINTin共有するデスクトップ矩形領域の上端の座標を指定する整数である。
rightINTin共有するデスクトップ矩形領域の右端の座標を指定する整数である。
bottomINTin共有するデスクトップ矩形領域の下端の座標を指定する整数である。
vtbl 20 HRESULT GetDesktopSharedRect(INT* pleft, INT* ptop, INT* pright, INT* pbottom)
pleftINT*out共有中のデスクトップ矩形領域の左端の座標を受け取る整数へのポインタである。
ptopINT*out共有中のデスクトップ矩形領域の上端の座標を受け取る整数へのポインタである。
prightINT*out共有中のデスクトップ矩形領域の右端の座標を受け取る整数へのポインタである。
pbottomINT*out共有中のデスクトップ矩形領域の下端の座標を受け取る整数へのポインタである。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IRDPSRAPISharingSession "{EEB20886-E470-4CF6-842B-2739C0EC5CFB}"
#usecom global IRDPSRAPISharingSession IID_IRDPSRAPISharingSession "{}"
#comfunc global IRDPSRAPISharingSession_Open                       7
#comfunc global IRDPSRAPISharingSession_Close                      8
#comfunc global IRDPSRAPISharingSession_put_ColorDepth             9 int
#comfunc global IRDPSRAPISharingSession_get_ColorDepth             10 var
#comfunc global IRDPSRAPISharingSession_get_Properties             11 sptr
#comfunc global IRDPSRAPISharingSession_get_Attendees              12 sptr
#comfunc global IRDPSRAPISharingSession_get_Invitations            13 sptr
#comfunc global IRDPSRAPISharingSession_get_ApplicationFilter      14 sptr
#comfunc global IRDPSRAPISharingSession_get_VirtualChannelManager  15 sptr
#comfunc global IRDPSRAPISharingSession_Pause                      16
#comfunc global IRDPSRAPISharingSession_Resume                     17
#comfunc global IRDPSRAPISharingSession_ConnectToClient            18 wstr
#comfunc global IRDPSRAPISharingSession_SetDesktopSharedRect       19 int,int,int,int
#comfunc global IRDPSRAPISharingSession_GetDesktopSharedRect       20 var,var,var,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。