ホーム › System.RemoteDesktop › IRemoteDesktopClientActions
IRemoteDesktopClientActions
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 4
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT SuspendScreenUpdates()
vtbl 8 HRESULT ResumeScreenUpdates()
vtbl 9 HRESULT ExecuteRemoteAction(RemoteActionType remoteAction)
| remoteAction | RemoteActionType | in | 実行するリモート操作の種類を指定する RemoteActionType 値である。 |
vtbl 10 HRESULT GetSnapshot(SnapshotEncodingType snapshotEncoding, SnapshotFormatType snapshotFormat, DWORD snapshotWidth, DWORD snapshotHeight, LPWSTR* snapshotData)
| snapshotEncoding | SnapshotEncodingType | in | スナップショットのエンコード方式を指定する SnapshotEncodingType 値である。 |
| snapshotFormat | SnapshotFormatType | in | スナップショットの画像形式を指定する SnapshotFormatType 値である。 |
| snapshotWidth | DWORD | in | スナップショットの幅をピクセル単位で指定する。 |
| snapshotHeight | DWORD | in | スナップショットの高さをピクセル単位で指定する。 |
| snapshotData | LPWSTR* | out | 取得したスナップショットの画像データを文字列として受け取る。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IRemoteDesktopClientActions "{7D54BC4E-1028-45D4-8B0A-B9B6BFFBA176}" #usecom global IRemoteDesktopClientActions IID_IRemoteDesktopClientActions "{}" #comfunc global IRemoteDesktopClientActions_SuspendScreenUpdates 7 #comfunc global IRemoteDesktopClientActions_ResumeScreenUpdates 8 #comfunc global IRemoteDesktopClientActions_ExecuteRemoteAction 9 int #comfunc global IRemoteDesktopClientActions_GetSnapshot 10 int,int,int,int,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IRemoteDesktopClientActions "{7D54BC4E-1028-45D4-8B0A-B9B6BFFBA176}" #usecom global IRemoteDesktopClientActions IID_IRemoteDesktopClientActions "{}" #comfunc global IRemoteDesktopClientActions_SuspendScreenUpdates 7 #comfunc global IRemoteDesktopClientActions_ResumeScreenUpdates 8 #comfunc global IRemoteDesktopClientActions_ExecuteRemoteAction 9 int #comfunc global IRemoteDesktopClientActions_GetSnapshot 10 int,int,int,int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。