Share via


ICaptureGraphBuilder2::SetFiltergraph (Compact 2013)

3/26/2014

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

Syntax

HRESULT SetFiltergraph(
  IGraphBuilder* pfg
);

Parameters

Return Value

Returns an HRESULT value. The following table shows some possible return values.

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

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

ICaptureGraphBuilder2 Interface
IGraphBuilder Interface