ホーム › System.RemoteDesktop › ITsSbResourceNotification
ITsSbResourceNotification
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT NotifySessionChange(TSSESSION_STATE changeType, ITsSbSession* pSession)
| changeType | TSSESSION_STATE | in | 発生したセッション変更の種類(TSSESSION_STATE)を指定する。 |
| pSession | ITsSbSession* | in | 変更が発生したセッション(ITsSbSession)へのポインタである。 |
vtbl 4 HRESULT NotifyTargetChange(DWORD TargetChangeType, ITsSbTarget* pTarget)
| TargetChangeType | DWORD | in | 発生したターゲット変更の種類を表す値を指定する。 |
| pTarget | ITsSbTarget* | in | 変更が発生したターゲット(ITsSbTarget)へのポインタである。 |
vtbl 5 HRESULT NotifyClientConnectionStateChange(CONNECTION_CHANGE_NOTIFICATION ChangeType, ITsSbClientConnection* pConnection)
| ChangeType | CONNECTION_CHANGE_NOTIFICATION | in | 発生したクライアント接続状態変更の種類(CONNECTION_CHANGE_NOTIFICATION)を指定する。 |
| pConnection | ITsSbClientConnection* | in | 変更が発生したクライアント接続(ITsSbClientConnection)へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
#define global IID_ITsSbResourceNotification "{65D3E85A-C39B-11DC-B92D-3CD255D89593}"
#usecom global ITsSbResourceNotification IID_ITsSbResourceNotification "{}"
#comfunc global ITsSbResourceNotification_NotifySessionChange 3 int,sptr
#comfunc global ITsSbResourceNotification_NotifyTargetChange 4 int,sptr
#comfunc global ITsSbResourceNotification_NotifyClientConnectionStateChange 5 int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。