EC_WINDOW_DESTROYED

[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 video renderer was destroyed or removed from the graph.

Parameters

lParam1

(IUnknown*) Pointer to the video renderer's IBaseFilter interface.

lParam2

Zero.

Default Action

The filter graph manager releases this window as the focus, through the IResourceManager interface. It does not send the event notification to the application.

Remarks

The video renderer sends this event when it leaves the filter graph, in its IBaseFilter::JoinFilterGraph method. (Sending the event when the filter is destroyed might be too late, because at that point the filter graph manager might also be destroyed.)

This event enables other filters to acquire resources that depend on window focus, such as audio devices.

Requirements

Requirement Value
Header
Dshow.h

See also

Event Notification Codes

Event Notification in DirectShow