CBasePin::CheckConnect (Windows CE 5.0)
Allows for customization when the connection is first made (intended for overriding, if required).
virtual HRESULT CheckConnect(IPin* pPin);
Pointer to the connecting pin.
Returns one of the following arguments by default; if overridden, should return standard HRESULT values, including the following values.
|E_INVALIDARG||Pin directions do not match between pins.|
|NOERROR||Connection verified successfully.|
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.
DirectShow applications and DirectShow filters have different include file and link library requirements.
For more information, see Setting Up the Build Environment.
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Send Feedback on this topic to the authors