Microsoft DirectX 9.0

ICaptureGraphBuilder2::SetFiltergraph

The SetFiltergraph method specifies a filter graph for the capture graph builder to use.

Syntax

HRESULT SetFiltergraph(
  IGraphBuilder *pfg
);

Parameters

pfg

[in] Pointer to the filter graph's IGraphBuilder interface.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_POINTER NULL pointer argument.
E_UNEXPECTED Unexpected error.

Remarks

If you do not call this method, the capture graph builder automatically creates a filter graph when it needs one. If the capture graph builder already has a filter graph, this method returns E_UNEXPECTED.

See Also