ICaptureGraphBuilder2::SetFiltergraph method (strmif.h)

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

Syntax

HRESULT SetFiltergraph(
  IGraphBuilder *pfg
);

Parameters

pfg

Pointer to the filter graph's IGraphBuilder interface.

Return value

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.

Requirements

   
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)
Library Strmiids.lib

See also

Error and Success Codes

ICaptureGraphBuilder2 Interface