IConnectionPoint::GetConnectionInterface

HRESULT IConnectionPoint::GetConnectionInterface([out] IID *pIID);

Returns the IID of the outgoing interface managed by this connection point. This is provided such that a client of IEnumConnectionPoints can determine the IID of each connection point thus enumerated. The IID returned from this method must enable the caller to access this same connection point through IConnectionPointContainer::FindConnectionPoint.

Argument

Type

Description

pIID

IID *

[out] A pointer to the caller's variable to receive the IID of the outgoing interface managed by this connection point.


Return Value

Meaning

S_OK

Success.

E_POINTER

The address in pIID is not valid (such as NULL)

E_UNEXPECTED

An unknown error occurred.


Comments This function must be completely implemented in any connection point; therefore E_NOTIMPL is not an acceptable return code.