Microsoft DirectX 8.1 (C++)

IPinInfo::Connect

The Connect method connects to the specified pin using other transform filters as necessary.

Syntax

HRESULT Connect(
  IUnknown *pPin
);

Parameters

pPin

[in] Pointer to the pin to connect with.

Return Value

Returns an HRESULT value.

Remarks

The pPin parameter can be either an IPin or an IPinInfo object. This method uses the graph builder to determine the required transform filters to enable the connection of this pin with the specified pin. For example, if the pin is an output pin of a source filter, and the requested connection is the input pin of a video rendererthis method will insert a decompressor filter of the appropriate media type to make this a valid filter graph. This method is essentially an Automation wrapper for the IGraphBuilder::Connect method.

See Also