Win32 API 日本語リファレンス
ホームSystem.Com.Events › IEventSubscription

IEventSubscription

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IID4a6b0e15-2e38-11d1-9965-00c04fbbb345継承元IDispatch呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl7

メソッド 34

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

vtbl 7 HRESULT get_SubscriptionID(LPWSTR* pbstrSubscriptionID)
pbstrSubscriptionIDLPWSTR*outサブスクリプションの識別子を文字列として受け取る。
vtbl 8 HRESULT put_SubscriptionID(LPWSTR bstrSubscriptionID)
bstrSubscriptionIDLPWSTRinサブスクリプションに設定する識別子を文字列で指定する。
vtbl 9 HRESULT get_SubscriptionName(LPWSTR* pbstrSubscriptionName)
pbstrSubscriptionNameLPWSTR*outサブスクリプションの名前を文字列として受け取る。
vtbl 10 HRESULT put_SubscriptionName(LPWSTR bstrSubscriptionName)
bstrSubscriptionNameLPWSTRinサブスクリプションに設定する名前を文字列で指定する。
vtbl 11 HRESULT get_PublisherID(LPWSTR* pbstrPublisherID)
pbstrPublisherIDLPWSTR*outサブスクライブ対象のパブリッシャーの識別子を文字列として受け取る。
vtbl 12 HRESULT put_PublisherID(LPWSTR bstrPublisherID)
bstrPublisherIDLPWSTRinサブスクライブ対象のパブリッシャーの識別子を文字列で指定する。
vtbl 13 HRESULT get_EventClassID(LPWSTR* pbstrEventClassID)
pbstrEventClassIDLPWSTR*outサブスクライブ対象のイベントクラスの識別子を文字列として受け取る。
vtbl 14 HRESULT put_EventClassID(LPWSTR bstrEventClassID)
bstrEventClassIDLPWSTRinサブスクライブ対象のイベントクラスの識別子を文字列で指定する。
vtbl 15 HRESULT get_MethodName(LPWSTR* pbstrMethodName)
pbstrMethodNameLPWSTR*outサブスクライブ対象のメソッド名を文字列として受け取る。
vtbl 16 HRESULT put_MethodName(LPWSTR bstrMethodName)
bstrMethodNameLPWSTRinサブスクライブ対象のメソッド名を文字列で指定する。
vtbl 17 HRESULT get_SubscriberCLSID(LPWSTR* pbstrSubscriberCLSID)
pbstrSubscriberCLSIDLPWSTR*outサブスクライバーオブジェクトの CLSID を文字列として受け取る。
vtbl 18 HRESULT put_SubscriberCLSID(LPWSTR bstrSubscriberCLSID)
bstrSubscriberCLSIDLPWSTRinサブスクライバーオブジェクトの CLSID を文字列で指定する。
vtbl 19 HRESULT get_SubscriberInterface(IUnknown** ppSubscriberInterface)
ppSubscriberInterfaceIUnknown**outサブスクライバーのインターフェイスへのポインタを受け取るポインタである。
vtbl 20 HRESULT put_SubscriberInterface(IUnknown* pSubscriberInterface)
pSubscriberInterfaceIUnknown*inサブスクライバーのインターフェイスへのポインタを指定する。
vtbl 21 HRESULT get_PerUser(BOOL* pfPerUser)
pfPerUserBOOL*outサブスクリプションがユーザー単位であるかどうかを受け取る。
vtbl 22 HRESULT put_PerUser(BOOL fPerUser)
fPerUserBOOLinサブスクリプションをユーザー単位とするかどうかを指定する。
vtbl 23 HRESULT get_OwnerSID(LPWSTR* pbstrOwnerSID)
pbstrOwnerSIDLPWSTR*outサブスクリプションの所有者を表す SID を文字列として受け取る。
vtbl 24 HRESULT put_OwnerSID(LPWSTR bstrOwnerSID)
bstrOwnerSIDLPWSTRinサブスクリプションの所有者を表す SID を文字列で指定する。
vtbl 25 HRESULT get_Enabled(BOOL* pfEnabled)
pfEnabledBOOL*outサブスクリプションが有効かどうかを受け取る。
vtbl 26 HRESULT put_Enabled(BOOL fEnabled)
fEnabledBOOLinサブスクリプションを有効にするかどうかを指定する。
vtbl 27 HRESULT get_Description(LPWSTR* pbstrDescription)
pbstrDescriptionLPWSTR*outサブスクリプションの説明文字列を受け取る。
vtbl 28 HRESULT put_Description(LPWSTR bstrDescription)
bstrDescriptionLPWSTRinサブスクリプションに設定する説明文字列を指定する。
vtbl 29 HRESULT get_MachineName(LPWSTR* pbstrMachineName)
pbstrMachineNameLPWSTR*outサブスクリプションが対象とするマシン名を文字列として受け取る。
vtbl 30 HRESULT put_MachineName(LPWSTR bstrMachineName)
bstrMachineNameLPWSTRinサブスクリプションが対象とするマシン名を文字列で指定する。
vtbl 31 HRESULT GetPublisherProperty(LPWSTR bstrPropertyName, VARIANT* propertyValue)
bstrPropertyNameLPWSTRin取得するパブリッシャープロパティの名前を指定する。
propertyValueVARIANT*out指定したパブリッシャープロパティの値を受け取る VARIANT へのポインタである。
vtbl 32 HRESULT PutPublisherProperty(LPWSTR bstrPropertyName, VARIANT* propertyValue)
bstrPropertyNameLPWSTRin設定するパブリッシャープロパティの名前を指定する。
propertyValueVARIANT*inパブリッシャープロパティに設定する値を格納した VARIANT へのポインタである。
vtbl 33 HRESULT RemovePublisherProperty(LPWSTR bstrPropertyName)
bstrPropertyNameLPWSTRin削除するパブリッシャープロパティの名前を指定する。
vtbl 34 HRESULT GetPublisherPropertyCollection(IEventObjectCollection** collection)
collectionIEventObjectCollection**outパブリッシャープロパティのコレクションを表す IEventObjectCollection を受け取るポインタである。
vtbl 35 HRESULT GetSubscriberProperty(LPWSTR bstrPropertyName, VARIANT* propertyValue)
bstrPropertyNameLPWSTRin取得するサブスクライバープロパティの名前を指定する。
propertyValueVARIANT*out指定したサブスクライバープロパティの値を受け取る VARIANT へのポインタである。
vtbl 36 HRESULT PutSubscriberProperty(LPWSTR bstrPropertyName, VARIANT* propertyValue)
bstrPropertyNameLPWSTRin設定するサブスクライバープロパティの名前を指定する。
propertyValueVARIANT*inサブスクライバープロパティに設定する値を格納した VARIANT へのポインタである。
vtbl 37 HRESULT RemoveSubscriberProperty(LPWSTR bstrPropertyName)
bstrPropertyNameLPWSTRin削除するサブスクライバープロパティの名前を指定する。
vtbl 38 HRESULT GetSubscriberPropertyCollection(IEventObjectCollection** collection)
collectionIEventObjectCollection**outサブスクライバープロパティのコレクションを表す IEventObjectCollection を受け取るポインタである。
vtbl 39 HRESULT get_InterfaceID(LPWSTR* pbstrInterfaceID)
pbstrInterfaceIDLPWSTR*outサブスクライブ対象のインターフェイス ID を文字列として受け取る。
vtbl 40 HRESULT put_InterfaceID(LPWSTR bstrInterfaceID)
bstrInterfaceIDLPWSTRinサブスクライブ対象のインターフェイス ID を文字列で指定する。

HSP用 COM定義

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

出力引数:
#define global IID_IEventSubscription "{4A6B0E15-2E38-11D1-9965-00C04FBBB345}"
#usecom global IEventSubscription IID_IEventSubscription "{}"
#comfunc global IEventSubscription_get_SubscriptionID               7 var
#comfunc global IEventSubscription_put_SubscriptionID               8 wstr
#comfunc global IEventSubscription_get_SubscriptionName             9 var
#comfunc global IEventSubscription_put_SubscriptionName             10 wstr
#comfunc global IEventSubscription_get_PublisherID                  11 var
#comfunc global IEventSubscription_put_PublisherID                  12 wstr
#comfunc global IEventSubscription_get_EventClassID                 13 var
#comfunc global IEventSubscription_put_EventClassID                 14 wstr
#comfunc global IEventSubscription_get_MethodName                   15 var
#comfunc global IEventSubscription_put_MethodName                   16 wstr
#comfunc global IEventSubscription_get_SubscriberCLSID              17 var
#comfunc global IEventSubscription_put_SubscriberCLSID              18 wstr
#comfunc global IEventSubscription_get_SubscriberInterface          19 sptr
#comfunc global IEventSubscription_put_SubscriberInterface          20 sptr
#comfunc global IEventSubscription_get_PerUser                      21 var
#comfunc global IEventSubscription_put_PerUser                      22 int
#comfunc global IEventSubscription_get_OwnerSID                     23 var
#comfunc global IEventSubscription_put_OwnerSID                     24 wstr
#comfunc global IEventSubscription_get_Enabled                      25 var
#comfunc global IEventSubscription_put_Enabled                      26 int
#comfunc global IEventSubscription_get_Description                  27 var
#comfunc global IEventSubscription_put_Description                  28 wstr
#comfunc global IEventSubscription_get_MachineName                  29 var
#comfunc global IEventSubscription_put_MachineName                  30 wstr
#comfunc global IEventSubscription_GetPublisherProperty             31 wstr,var
#comfunc global IEventSubscription_PutPublisherProperty             32 wstr,var
#comfunc global IEventSubscription_RemovePublisherProperty          33 wstr
#comfunc global IEventSubscription_GetPublisherPropertyCollection   34 sptr
#comfunc global IEventSubscription_GetSubscriberProperty            35 wstr,var
#comfunc global IEventSubscription_PutSubscriberProperty            36 wstr,var
#comfunc global IEventSubscription_RemoveSubscriberProperty         37 wstr
#comfunc global IEventSubscription_GetSubscriberPropertyCollection  38 sptr
#comfunc global IEventSubscription_get_InterfaceID                  39 var
#comfunc global IEventSubscription_put_InterfaceID                  40 wstr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。