IMediaEventEx interface (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 IMediaEventEx interface inherits the IMediaEvent interface, which contains methods for retrieving event notifications and for overriding the filter graph's default handling of events. IMediaEventEx adds methods that enable an application window to receive messages when events occur.

The Filter Graph Manager implements this interface.

For more information about event notification, see Event Notification in DirectShow. For a list of system-defined event notifications, see Event Notification Codes.

Inheritance

The IMediaEventEx interface inherits from IMediaEvent. IMediaEventEx also has these types of members:

Methods

The IMediaEventEx interface has these methods.

 
IMediaEventEx::GetNotifyFlags

The GetNotifyFlags method determines whether event notifications are enabled.
IMediaEventEx::SetNotifyFlags

The SetNotifyFlags method enables or disables event notifications.
IMediaEventEx::SetNotifyWindow

The SetNotifyWindow method registers a window to process event notifications.

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)

See also

IMediaEvent