Returns a pointer to the IConnectionPoint interface of a connection point for a specified IID, if that IID describes a supported outgoing interface.
HRESULT FindConnectionPoint(
REFIID riid , |
//Requested connection point’s interface identifier |
IConnectionPoint **ppCP |
//Indirect pointer to the variable of the requested IID |
); |
Parameters
Return Values
This method supports the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following:
Remarks
This method is the QueryInterface equivalent for an object’s outgoing interfaces, where the outgoing interface is specified with riid and where the interface pointer returned is always that of a connection point.
If the call is successful, the caller is responsible for releasing the connection point by calling (*ppCP)->Release when the connection point is no longer needed.
E_NOTIMPL is not allowed as a return value for this method. Any implementation of IConnectionPointContainer must implement this method for the connectable object’s outgoing interfaces.
See Also