CTransformInputPin::CheckConnect

 
Microsoft DirectShow 9.0

CTransformInputPin::CheckConnect

The CheckConnect method determines whether a pin connection is suitable.

Syntax

  HRESULT CheckConnect(
    IPin *pPin
);

Parameters

pPin

Pointer to the output pin's IPin interface.

Return Value

Returns an HRESULT value. Possible values include those shown in the following table.

Value Description
S_OK Success
VFW_E_INVALID_DIRECTION Wrong pin direction

Remarks

This method overrides the CBasePin::CheckConnect method. It calls the filter's CTransformFilter::CheckConnect method, which returns S_OK in the base class. The derived class can override the CTransformFilter::CheckConnect method to perform additional checks.

Requirements

**  Header:** Declared in Transfrm.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also

CTransformInputPin Class