IVMRSurfaceAllocatorNotify::NotifyEvent method (strmif.h)
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The NotifyEvent
method is called by the allocator-presenter to inform the VMR of any significant DirectShow events during the allocation or presentation processes.
Syntax
HRESULT NotifyEvent(
[in] LONG EventCode,
[in] LONG_PTR Param1,
[in] LONG_PTR Param2
);
Parameters
[in] EventCode
Specifies the event code.
[in] Param1
Specifies Param1 of the event code.
[in] Param2
Specifies Param2 of the event code.
Return value
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
The VMR provides the allocator-presenter with a pointer to this interface in a call to IVMRSurfaceAllocator::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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP with SP1 [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | strmif.h (include Dshow.h) |
Library | Strmiids.lib |