Microsoft DirectX 9.0

ICaptureGraphBuilder::SetFiltergraph

Note   The ICaptureGraphBuilder interface is deprecated. Use ICaptureGraphBuilder2 instead.

Tells the graph builder object which filter graph to use.

Syntax

HRESULT SetFiltergraph(
    IGraphBuilder *pfg
);

Parameters

pfg

[in] Pointer to an IGraphBuilder interface that specifies the filter graph to use for subsequent calls to the IFilterGraph::AddFilter method.

Return Value

Returns an HRESULT value.

Remarks

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.

See Also