Microsoft Windows CE 3.0  

CTransInPlaceFilter::CompleteConnect

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.

Reconnects the input or output pin if necessary.

HRESULT CompleteConnect(
PIN_DIRECTION
direction, 
IPin
*pReceivePin
);

Parameters

direction
Pin direction.
pReceivePin
Pointer to the output pin to which to connect.

Return Values

Returns NOERROR if successful; otherwise, returns VFW_E_NOT_IN_GRAPHif the filter is not part of a graph, or returns an HRESULTthat indicates the error. HRESULTcan be one of the following standard constants, or other values not listed.

E_FAIL Failure.
E_POINTER Null pointer argument.
E_INVALIDARG Invalid argument.
E_NOTIMPL Method isn't supported.

Remarks

This member function overrides the CTransformFilter::CompleteConnectmember function. It is called by one of the pin classes at the end of a successful connection. Because the input and output pins must both use the same allocator, this member function reconnects the opposite pin if necessary.

When the input pin is first connected, the output pin has not yet been connected and the downstream filter's allocator is unknown, so the allocator for the input pin is chosen to be the upstream pin's allocator. When the transform filter's output pin is connected, however, it has access to the downstream filter's allocator and should force a reconnect on the input pin and offer that allocator. When the input pin is reconnected, it forces a reconnect on the output pin if the allocator chosen for the input pin's connection differs from the output pin's connection. This member function supplies the reconnection for either output or input pins.