IMediaEventEx::SetNotifyFlags method (control.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 SetNotifyFlags
method enables or disables event notifications.
Syntax
HRESULT SetNotifyFlags(
[in] long lNoNotifyFlags
);
Parameters
[in] lNoNotifyFlags
Value indicating whether to enable or disable event notifications. Must be one of the following values:
Value | Description |
---|---|
Zero | Enable event notifications. |
AM_MEDIAEVENT_NONOTIFY | Disable event notifications. |
Return value
Returns S_OK if successful, or E_INVALIDARG if the lNoNotifyFlags parameter is invalid.
Remarks
By default, the Filter Graph Manager posts event notifications for the application. If the lNoNotifyFlags parameter is AM_MEDIAEVENT_NONOTIFY, the Filter Graph Manager clears any pending event notifications from the queue, and does not post any new ones.
If event notifications are disabled, the handle returned by the IMediaEvent::GetEventHandle method is signaled at the end of each stream—that is, whenever the Filter Graph Manager receives an EC_COMPLETE event.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | control.h (include Dshow.h) |
Library | Strmiids.lib |