IMediaEventEx::GetNotifyFlags 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 GetNotifyFlags
method determines whether event notifications are enabled.
Syntax
HRESULT GetNotifyFlags(
[out] long *lplNoNotifyFlags
);
Parameters
[out] lplNoNotifyFlags
Pointer to a variable that receives one of the following values:
Value | Description |
---|---|
Zero | Event notifications are enabled. |
AM_MEDIAEVENT_NONOTIFY | Event notifications are disabled. |
Return value
Returns S_OK if successful, or E_POINTER if the lplNoNotifyFlags parameter is NULL.
Remarks
By default, the Filter Graph Manager posts event notifications for the application. To disable event notification, call the IMediaEventEx::SetNotifyFlags method with the value AM_MEDIAEVENT_NONOTIFY.
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 |