IEventClass2
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IIDfb2b72a1-7a68-11d1-88f9-0080c7d771bf継承元IEventClass呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl21
メソッド 8
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| pbstrPublisherID | LPWSTR* | out | イベントクラスに関連付けられたパブリッシャーの識別子を文字列として受け取る。 |
| bstrPublisherID | LPWSTR | in | イベントクラスに関連付けるパブリッシャーの識別子を文字列で指定する。 |
vtbl 23 HRESULT get_MultiInterfacePublisherFilterCLSID(LPWSTR* pbstrPubFilCLSID) | pbstrPubFilCLSID | LPWSTR* | out | 複数インターフェイス対応のパブリッシャーフィルターの CLSID を文字列として受け取る。 |
vtbl 24 HRESULT put_MultiInterfacePublisherFilterCLSID(LPWSTR bstrPubFilCLSID) | bstrPubFilCLSID | LPWSTR | in | 複数インターフェイス対応のパブリッシャーフィルターの CLSID を文字列で指定する。 |
vtbl 25 HRESULT get_AllowInprocActivation(BOOL* pfAllowInprocActivation) | pfAllowInprocActivation | BOOL* | out | インプロセスでのアクティブ化を許可するかどうかを受け取る。 |
vtbl 26 HRESULT put_AllowInprocActivation(BOOL fAllowInprocActivation) | fAllowInprocActivation | BOOL | in | インプロセスでのアクティブ化を許可するかどうかを指定する。 |
vtbl 27 HRESULT get_FireInParallel(BOOL* pfFireInParallel) | pfFireInParallel | BOOL* | out | サブスクライバーへのイベント発行を並列で行うかどうかを受け取る。 |
vtbl 28 HRESULT put_FireInParallel(BOOL fFireInParallel) | fFireInParallel | BOOL | in | サブスクライバーへのイベント発行を並列で行うかどうかを指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IEventClass2 "{FB2B72A1-7A68-11D1-88F9-0080C7D771BF}"
#usecom global IEventClass2 IID_IEventClass2 "{}"
#comfunc global IEventClass2_get_PublisherID 21 var
#comfunc global IEventClass2_put_PublisherID 22 wstr
#comfunc global IEventClass2_get_MultiInterfacePublisherFilterCLSID 23 var
#comfunc global IEventClass2_put_MultiInterfacePublisherFilterCLSID 24 wstr
#comfunc global IEventClass2_get_AllowInprocActivation 25 var
#comfunc global IEventClass2_put_AllowInprocActivation 26 int
#comfunc global IEventClass2_get_FireInParallel 27 var
#comfunc global IEventClass2_put_FireInParallel 28 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IEventClass2 "{FB2B72A1-7A68-11D1-88F9-0080C7D771BF}"
#usecom global IEventClass2 IID_IEventClass2 "{}"
#comfunc global IEventClass2_get_PublisherID 21 sptr
#comfunc global IEventClass2_put_PublisherID 22 wstr
#comfunc global IEventClass2_get_MultiInterfacePublisherFilterCLSID 23 sptr
#comfunc global IEventClass2_put_MultiInterfacePublisherFilterCLSID 24 wstr
#comfunc global IEventClass2_get_AllowInprocActivation 25 sptr
#comfunc global IEventClass2_put_AllowInprocActivation 26 int
#comfunc global IEventClass2_get_FireInParallel 27 sptr
#comfunc global IEventClass2_put_FireInParallel 28 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。