Win32 API 日本語リファレンス
ホームSystem.SideShow › ISideShowContentManager

ISideShowContentManager

COM
IIDa5d5b66b-eef9-41db-8d7e-e17c33ab10b0継承元IUnknown自前メソッド開始 vtbl3

メソッド 5

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT Add(ISideShowContent* in_pIContent)
in_pIContentISideShowContent*inoptional追加するコンテンツを表す ISideShowContent インターフェイスへのポインタである。
vtbl 4 HRESULT Remove(DWORD in_contentId)
in_contentIdDWORDin削除するコンテンツの識別子を指定する。
vtbl 5 HRESULT RemoveAll()
vtbl 6 HRESULT SetEventSink(ISideShowEvents* in_pIEvents)
in_pIEventsISideShowEvents*inoptionalデバイスからのイベントを受け取る ISideShowEvents インターフェイスへのポインタである。
vtbl 7 HRESULT GetDeviceCapabilities(ISideShowCapabilitiesCollection** out_ppCollection)
out_ppCollectionISideShowCapabilitiesCollection**out接続デバイスの機能を表す ISideShowCapabilitiesCollection インターフェイスを受け取るポインタである。

HSP用 COM定義

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

#define global IID_ISideShowContentManager "{A5D5B66B-EEF9-41DB-8D7E-E17C33AB10B0}"
#usecom global ISideShowContentManager IID_ISideShowContentManager "{}"
#comfunc global ISideShowContentManager_Add                    3 sptr
#comfunc global ISideShowContentManager_Remove                 4 int
#comfunc global ISideShowContentManager_RemoveAll              5
#comfunc global ISideShowContentManager_SetEventSink           6 sptr
#comfunc global ISideShowContentManager_GetDeviceCapabilities  7 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。