|Microsoft DirectX 9.0|
Note The ICaptureGraphBuilder interface is deprecated. Use ICaptureGraphBuilder2 instead.
Tells the graph builder object which filter graph to use.
HRESULT SetFiltergraph( IGraphBuilder *pfg );
[in] Pointer to an IGraphBuilder interface that specifies the filter graph to use for subsequent calls to the IFilterGraph::AddFilter method.
Returns an HRESULT value.
The graph builder will automatically create a filter graph if you don't call this method. If you call this method after the graph builder has created its own filter graph, the call will fail.