ホーム › System.DesktopSharing › IRDPSRAPISharingSession
IRDPSRAPISharingSession
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 14
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT Open()
vtbl 8 HRESULT Close()
| colorDepth | INT | in | セッションで使用する色深度 (ピクセルあたりのビット数) を指定する整数である。 |
| pColorDepth | INT* | out | セッションで使用されている色深度 (ピクセルあたりのビット数) を受け取る整数へのポインタである。 |
vtbl 11 HRESULT get_Properties(IRDPSRAPISessionProperties** ppVal)
| ppVal | IRDPSRAPISessionProperties** | out | セッションのプロパティを管理する IRDPSRAPISessionProperties インターフェイスを受け取るポインタである。 |
vtbl 12 HRESULT get_Attendees(IRDPSRAPIAttendeeManager** ppVal)
| ppVal | IRDPSRAPIAttendeeManager** | out | セッションの参加者を管理する IRDPSRAPIAttendeeManager インターフェイスを受け取るポインタである。 |
vtbl 13 HRESULT get_Invitations(IRDPSRAPIInvitationManager** ppVal)
| ppVal | IRDPSRAPIInvitationManager** | out | セッションの招待を管理する IRDPSRAPIInvitationManager インターフェイスを受け取るポインタである。 |
vtbl 14 HRESULT get_ApplicationFilter(IRDPSRAPIApplicationFilter** ppVal)
| ppVal | IRDPSRAPIApplicationFilter** | out | 共有対象を制御するアプリケーションフィルタ IRDPSRAPIApplicationFilter インターフェイスを受け取るポインタである。 |
vtbl 15 HRESULT get_VirtualChannelManager(IRDPSRAPIVirtualChannelManager** ppVal)
| ppVal | IRDPSRAPIVirtualChannelManager** | out | 仮想チャネルを管理する IRDPSRAPIVirtualChannelManager インターフェイスを受け取るポインタである。 |
vtbl 16 HRESULT Pause()
vtbl 17 HRESULT Resume()
| bstrConnectionString | LPWSTR | in | 接続先クライアントを示す接続文字列を指定する文字列である。 |
| left | INT | in | 共有するデスクトップ矩形領域の左端の座標を指定する整数である。 |
| top | INT | in | 共有するデスクトップ矩形領域の上端の座標を指定する整数である。 |
| right | INT | in | 共有するデスクトップ矩形領域の右端の座標を指定する整数である。 |
| bottom | INT | in | 共有するデスクトップ矩形領域の下端の座標を指定する整数である。 |
| pleft | INT* | out | 共有中のデスクトップ矩形領域の左端の座標を受け取る整数へのポインタである。 |
| ptop | INT* | out | 共有中のデスクトップ矩形領域の上端の座標を受け取る整数へのポインタである。 |
| pright | INT* | out | 共有中のデスクトップ矩形領域の右端の座標を受け取る整数へのポインタである。 |
| pbottom | INT* | 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 不要)。#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 sptr #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 sptr,sptr,sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。