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

IVMRSurfaceAllocatorNotify

COM
IIDaada05a8-5a4e-4729-af0b-cea27aed51e2継承元IUnknown自前メソッド開始 vtbl3

メソッド 6

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

vtbl 3 HRESULT AdviseSurfaceAllocator(UINT_PTR dwUserID, IVMRSurfaceAllocator* lpIVRMSurfaceAllocator)
dwUserIDUINT_PTRinサーフェスアロケータを識別するユーザー定義ID。
lpIVRMSurfaceAllocatorIVMRSurfaceAllocator*in登録するサーフェスアロケータインターフェイス。
vtbl 4 HRESULT SetDDrawDevice(IDirectDraw7* lpDDrawDevice, HMONITOR hMonitor)
lpDDrawDeviceIDirectDraw7*in使用するDirectDraw7デバイス。
hMonitorHMONITORin対象モニタのハンドル。
vtbl 5 HRESULT ChangeDDrawDevice(IDirectDraw7* lpDDrawDevice, HMONITOR hMonitor)
lpDDrawDeviceIDirectDraw7*in切り替え後のDirectDraw7デバイス。モニタ変更時に再割り当てを促す。
hMonitorHMONITORin切り替え後の対象モニタハンドル。
vtbl 6 HRESULT RestoreDDrawSurfaces()
vtbl 7 HRESULT NotifyEvent(INT EventCode, INT_PTR Param1, INT_PTR Param2)
EventCodeINTin通知するイベントコード(EC_*)。
Param1INT_PTRinイベント固有の第1パラメータ。
Param2INT_PTRinイベント固有の第2パラメータ。
vtbl 8 HRESULT SetBorderColor(COLORREF clrBorder)
clrBorderCOLORREFin映像周囲の余白に描く境界色を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 指定が可能。