ICaptureGraphBuilder2::SetFiltergraph

Send Feedback

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

HRESULT SetFiltergraph(
  IGraphBuilder* pfg
);

Parameters

Return Values

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

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later
Header:

See Also

ICaptureGraphBuilder2 Interface | IGraphBuilder interface

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.