Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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

Syntax

HRESULT GetFiltergraph(
  IGraphBuilder** 
ppfg
);

Parameters

ppfg

[out] Address of a variable that receives an IGraphBuilder Interfacepointer.

Return Value

Returns one of the following HRESULTvalues.

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 IGraphBuilderinterface. Be sure to release the interface when you are done with it.

Requirements

Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment

See Also