|Microsoft DirectX 9.0|
The NotifyEvent method is called by the allocator-presenter to inform the VMR of any significant DirectShow events that it (the allocator presenter) generates during the allocation or presentation processes.
HRESULT NotifyEvent( LONG EventCode, LONG_PTR Param1, LONG_PTR Param2 );
[in] Specifies the DirectShow event code.
[in] Specifies the first event parameter. The meaning depends on the event code. See Event Notification Codes.
[in] Specifies the second event parameter. The meaning depends on the event code.
The method returns an HRESULT. Possible values include those in the following table.
|S_OK||The method succeeded.|
The VMR provides the allocator-presenter with a pointer to this interface in a call to IVMRSurfaceAllocator9::AdviseNotify. When the allocator-presenter calls this method and specifies some regular DirectShow event, such as EC_ERRORABORT or EC_VMR_RENDERDEVICE_SET, the VMR will pass the event to the filter graph manager.
Include D3d9.h, Vmr9.h.