IFilterGraph2 interface (strmif.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 IFilterGraph2 interface extends the IFilterGraph and IGraphBuilder interfaces, which contain methods for building filter graphs.

The Filter Graph Manager implements this interface. Applications can use it when building graphs, to take advantage of the additional methods it provides.

Inheritance

The IFilterGraph2 interface inherits from IGraphBuilder. IFilterGraph2 also has these types of members:

Methods

The IFilterGraph2 interface has these methods.

 
IFilterGraph2::AddSourceFilterForMoniker

The AddSourceFilterForMoniker method creates a source filter from an IMoniker pointer and adds the filter to the graph.
IFilterGraph2::ReconnectEx

The ReconnectEx method breaks the existing pin connection and reconnects it to the same pin, using a specified media type.
IFilterGraph2::RenderEx

The RenderEx method renders an output pin, with an option to use existing renderers only.

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 strmif.h (include Dshow.h)

See also

IGraphBuilder