Microsoft Windows CE 3.0  

CBasePin::ConnectedTo

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.

Retrieves a pointer to the connected pin, if there is one.

HRESULT ConnectedTo(
IPin **
ppPin
);

Parameters

ppPin
IPininterface of the other pin (if any) to which this pin is connected.

Return Values

The base class returns S_OK if connected; otherwise, returns VFW_E_NOT_CONNECTED.

Remarks

This member function implements the IPin::ConnectedTomethod. It adds a reference to the connected IPininterface by calling the IUnknown::AddRefmethod, because each copy of an interface pointer has its reference incremented. The calling application is responsible for calling IUnknown::Releaseon this interface when done with it.