Share via


CBasePin::CheckConnect (Compact 2013)

3/26/2014

Allows for customization when the connection is first made (intended for overriding, if required).

Syntax

virtual HRESULT CheckConnect(
  IPin* pPin
);

Parameters

  • pPin
    Pointer to the connecting pin.

Return Value

Returns one of the following arguments by default; if overridden, should return standard HRESULT values, including the following values.

Value

Description

E_INVALIDARG

Pin directions do not match between pins.

NOERROR

Connection verified successfully.

Remarks

This member function is called during a call to the IPin::Connect method to provide a virtual method that can do any specific check required for a connection, such as calling CBasePin::NonDelegatingQueryInterface.

This base class method determines if the pin directions match.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBasePin Class