Microsoft Windows CE 3.0  

CBasePin::CheckConnect

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.

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

virtual HRESULT CheckConnect(
IPin *
pPin
);

Parameters

pPin
Pointer to the connecting pin.

Return Values

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

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::Connectmethod 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.