Share via


ICaptureGraphBuilder2::GetFiltergraph

Send Feedback

This method retrieves the filter graph that the capture graph builder is using.

HRESULT GetFiltergraph(
  IGraphBuilder** ppfg
);

Parameters

Return Values

Returns one of the following HRESULT values.

Return Code Description
S_OK Success.
E_POINTER NULL pointer argument.
E_UNEXPECTED No filter graph.

Remarks

Initially, the capture graph builder does not hold a pointer to a filter graph. This method returns E_UNEXPECTED until one of the following methods has been called:

This method increments the reference count on the IGraphBuilder interface. Be sure to release the interface when you are done with it.

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 | ICaptureGraphBuilder2::RenderStream | ICaptureGraphBuilder2::SetFiltergraph | ICaptureGraphBuilder2::SetOutputFileName

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.