Microsoft DirectX 8.1 (C++) |
The CompleteConnect method completes a pin connection.
Syntax
HRESULT CompleteConnect(
PIN_DIRECTION direction,
IPin *pReceivePin
);
Parameters
direction
Member of the PIN_DIRECTION enumerated type, specifying which pin on the filter is making the connection.
pReceivePin
Pointer to the IPin interface of the other pin in this connection attempt.
Return Value
Returns an HRESULT. Possible values include those shown in the following table.
Value | Description |
S_OK | Success. |
VFW_E_NOT_IN_GRAPH | The filter is not in a filter graph. |
Remarks
This method overrides the CTransformFilter::CompleteConnect method.
The behavior of the filter depends on the order of the pin connections:
The filter performs all pin reconnections by calling the CBaseFilter::ReconnectPin method. The ReconnectPin method, in turn, calls the IFilterGraph2::ReconnectEx method on the filter graph manager.
See Also