Microsoft DirectX 8.1 (C++)

CBaseOutputPin::CheckConnect

The CheckConnect method determines whether a pin connection is suitable.

Syntax

HRESULT CheckConnect(
    IPin *pPin
);

Parameters

pPin

Pointer to the input pin's IPin interface.

Return Value

Returns one of the following HRESULT values.

Value Description
S_OK Success.
E_NOINTERFACE Input pin does not support IMemInputPin.
VFW_E_INVALID_DIRECTION Pin directions are not compatible.

Remarks

This method calls the base-class CBasePin::CheckConnect method, and then queries the input pin for its IMemInputPin interface.

See Also