ホーム › System.SideShow › ISideShowEvents
ISideShowEvents
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT ContentMissing(DWORD in_contentId, ISideShowContent** out_ppIContent)
| in_contentId | DWORD | in | デバイス上で見つからなかったコンテンツの識別子を指定する。 |
| out_ppIContent | ISideShowContent** | out | 不足しているコンテンツを表す ISideShowContent インターフェイスを受け取るポインタである。 |
vtbl 4 HRESULT ApplicationEvent(ISideShowCapabilities* in_pICapabilities, DWORD in_dwEventId, DWORD in_dwEventSize, BYTE* in_pbEventData)
| in_pICapabilities | ISideShowCapabilities* | inoptional | イベントを発生させたデバイスの機能を表す ISideShowCapabilities へのポインタである。 |
| in_dwEventId | DWORD | in | 発生したイベントの識別子を指定する。 |
| in_dwEventSize | DWORD | in | in_pbEventData が指すイベントデータのバイト数を指定する。 |
| in_pbEventData | BYTE* | inoptional | イベントに付随するデータを格納したバッファへのポインタである。 |
vtbl 5 HRESULT DeviceAdded(ISideShowCapabilities* in_pIDevice)
| in_pIDevice | ISideShowCapabilities* | inoptional | 追加されたデバイスの機能を表す ISideShowCapabilities インターフェイスへのポインタである。 |
vtbl 6 HRESULT DeviceRemoved(ISideShowCapabilities* in_pIDevice)
| in_pIDevice | ISideShowCapabilities* | inoptional | 取り外されたデバイスの機能を表す ISideShowCapabilities インターフェイスへのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISideShowEvents "{61FECA4C-DEB4-4A7E-8D75-51F1132D615B}" #usecom global ISideShowEvents IID_ISideShowEvents "{}" #comfunc global ISideShowEvents_ContentMissing 3 int,sptr #comfunc global ISideShowEvents_ApplicationEvent 4 sptr,int,int,var #comfunc global ISideShowEvents_DeviceAdded 5 sptr #comfunc global ISideShowEvents_DeviceRemoved 6 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ISideShowEvents "{61FECA4C-DEB4-4A7E-8D75-51F1132D615B}" #usecom global ISideShowEvents IID_ISideShowEvents "{}" #comfunc global ISideShowEvents_ContentMissing 3 int,sptr #comfunc global ISideShowEvents_ApplicationEvent 4 sptr,int,int,sptr #comfunc global ISideShowEvents_DeviceAdded 5 sptr #comfunc global ISideShowEvents_DeviceRemoved 6 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。