CBaseOutputPin::CheckConnect
Microsoft DirectShow 9.0 |
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.
Requirements
** Header:** Declared in Amfilter.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also