ホーム › Media.DirectShow › IVMRSurfaceAllocatorNotify
IVMRSurfaceAllocatorNotify
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT AdviseSurfaceAllocator(UINT_PTR dwUserID, IVMRSurfaceAllocator* lpIVRMSurfaceAllocator)
| dwUserID | UINT_PTR | in | サーフェスアロケータを識別するユーザー定義ID。 |
| lpIVRMSurfaceAllocator | IVMRSurfaceAllocator* | in | 登録するサーフェスアロケータインターフェイス。 |
vtbl 4 HRESULT SetDDrawDevice(IDirectDraw7* lpDDrawDevice, HMONITOR hMonitor)
| lpDDrawDevice | IDirectDraw7* | in | 使用するDirectDraw7デバイス。 |
| hMonitor | HMONITOR | in | 対象モニタのハンドル。 |
vtbl 5 HRESULT ChangeDDrawDevice(IDirectDraw7* lpDDrawDevice, HMONITOR hMonitor)
| lpDDrawDevice | IDirectDraw7* | in | 切り替え後のDirectDraw7デバイス。モニタ変更時に再割り当てを促す。 |
| hMonitor | HMONITOR | in | 切り替え後の対象モニタハンドル。 |
vtbl 6 HRESULT RestoreDDrawSurfaces()
| EventCode | INT | in | 通知するイベントコード(EC_*)。 |
| Param1 | INT_PTR | in | イベント固有の第1パラメータ。 |
| Param2 | INT_PTR | in | イベント固有の第2パラメータ。 |
| clrBorder | COLORREF | in | 映像周囲の余白に描く境界色をCOLORREFで指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
#define global IID_IVMRSurfaceAllocatorNotify "{AADA05A8-5A4E-4729-AF0B-CEA27AED51E2}"
#usecom global IVMRSurfaceAllocatorNotify IID_IVMRSurfaceAllocatorNotify "{}"
#comfunc global IVMRSurfaceAllocatorNotify_AdviseSurfaceAllocator 3 sptr,sptr
#comfunc global IVMRSurfaceAllocatorNotify_SetDDrawDevice 4 sptr,sptr
#comfunc global IVMRSurfaceAllocatorNotify_ChangeDDrawDevice 5 sptr,sptr
#comfunc global IVMRSurfaceAllocatorNotify_RestoreDDrawSurfaces 6
#comfunc global IVMRSurfaceAllocatorNotify_NotifyEvent 7 int,sptr,sptr
#comfunc global IVMRSurfaceAllocatorNotify_SetBorderColor 8 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。