Share via


IGraphBuilder Interface

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This interface allows applications to call upon the filter graph manager to attempt to build a complete filter graph, or parts of a filter graph given only partial information, such as the name of a file or the interfaces of two separate pins. The filter mapper looks up filters in the registry to configure the filter graph in a meaningful way.

IGraphBuilder inherits from the IFilterGraph interface and exposes all its methods. For this reason, IFilterGraph should normally not be used directly.

When to Implement

This interface is implemented on the filter graph manager and is not intended for implementation by developers.

When to Use

Applications use this interface to create a filter graph, add filters to or remove filters from a filter graph, enumerate all the filters in a filter graph, and force connections when adding a filter. Filters typically use the interface to reconnect pins during the connection and negotiation process of building a filter graph.

Methods in Vtable Order

The following table shows the methods that appear in the Vtable beneath the standard COM methods inherited from IUnknown.

IFilterGraph method Description

AddFilter

Adds a filter to the graph and gives it a name.

RemoveFilter

Removes a filter from the graph.

EnumFilters

Provides an enumerator for all filters in the graph.

FindFilterByName

Finds a filter that was added with a specified name.

ConnectDirect

Connects the two IPin objects directly (without intervening filters).

Reconnect

Breaks the existing pin connection and reconnects it to the same pin.

Disconnect

Disconnects this pin, if connected.

SetDefaultSyncSource

Sets the default synchronization source (a clock).

IGraphBuilder method Description

Connect

Connects two IPin objects. If they will not connect directly, this method connects them with intervening transforms.

Render

Adds a chain of filters to this output pin to render it.

RenderFile

Builds a filter graph that renders the specified file.

AddSourceFilter

Adds a source filter to the filter graph for a specific file. The IGraphBuilder::RenderFile method calls this to find the source filter.

SetLogFile

Sets the log file into which actions taken in attempting to perform an operation are logged.

Requirements

Windows Embedded CE Windows CE 2.12 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

Reference

DirectShow Interfaces