Win32 API 日本語リファレンス
ホームMedia.DirectShow › IDistributorNotify

IDistributorNotify

COM
IID56a868af-0ad4-11ce-b03a-0020af0ba770継承元IUnknown自前メソッド開始 vtbl3

メソッド 5

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

vtbl 3 HRESULT Stop()
vtbl 4 HRESULT Pause()
vtbl 5 HRESULT Run(LONGLONG tStart)
tStartLONGLONGin実行開始の基準時刻(REFERENCE_TIME、100ナノ秒単位)。
vtbl 6 HRESULT SetSyncSource(IReferenceClock* pClock)
pClockIReferenceClock*in通知に用いる基準クロックを指定する。NULL可。
vtbl 7 HRESULT NotifyGraphChange()

HSP用 COM定義

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

#define global IID_IDistributorNotify "{56A868AF-0AD4-11CE-B03A-0020AF0BA770}"
#usecom global IDistributorNotify IID_IDistributorNotify "{}"
#comfunc global IDistributorNotify_Stop               3
#comfunc global IDistributorNotify_Pause              4
#comfunc global IDistributorNotify_Run                5 int64
#comfunc global IDistributorNotify_SetSyncSource      6 sptr
#comfunc global IDistributorNotify_NotifyGraphChange  7
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。