IMediaEvent interface (control.h)
IMediaEvent interface contains methods for retrieving event notifications and for overriding the Filter Graph Manager's default handling of events. The IMediaEventEx interface inherits this interface and extends it.
The Filter Graph Manager implements this interface. Applications can use it to respond to events that occur in the filter graph, such as the end of a stream or a rendering error. Filters post events to the filter graph using the IMediaEventSink interface.
The IMediaEvent interface inherits from the IDispatch interface. IMediaEvent also has these types of members:
The IMediaEvent interface has these methods.
The CancelDefaultHandling method cancels the Filter Graph Manager's default handling for a specified event. The event notification is passed to the application.
The FreeEventParams method frees resources associated with the parameters of an event.
The GetEvent method retrieves the next event notification from the event queue.
The GetEventHandle method retrieves a handle to a manual-reset event that remains signaled while the queue contains event notifications.
The RestoreDefaultHandling method restores the Filter Graph Manager's default handling for a specified event.
The WaitForCompletion method waits for the filter graph to render all available data. The filter graph must be running or the method fails.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||control.h (include Dshow.h)|