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 Filter Graph Manager implements this interface. Applications can use it when building graphs, to take advantage of the additional methods it provides.
The IFilterGraph2 interface inherits from IGraphBuilder. IFilterGraph2 also has these types of members:
The IFilterGraph2 interface has these methods.
The AddSourceFilterForMoniker method creates a source filter from an IMoniker pointer and adds the filter to the graph.
The ReconnectEx method breaks the existing pin connection and reconnects it to the same pin, using a specified media type.
The RenderEx method renders an output pin, with an option to use existing renderers only.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||strmif.h (include Dshow.h)|