IConnectionPoint::GetConnectionPointContainer

HRESULT IConnectionPoint::GetConnectionPointContainer([out] IConnectionPointContainer **ppCPC);

Retrieves the IConnectionPointContainer interface pointer to the connectable object that conceptually owns this connection point. The caller becomes responsible for the pointer on a successful return.

Argument

Type

Description

ppCPC

IConnectionPointContainer *

[out] A pointer to the caller's variable in which to return a pointer to the connectable object's IConnectionPointContainer interface. The connection point will call IConnectionPointContainer::AddRef before returning and the caller must call IConnectionPoint::Release when it is done using the pointer.


Return Value

Meaning

S_OK

Success.

E_POINTER

The value in ppCPC is not valid (such as NULL)

E_UNEXPECTED

An unknown error occurred.


Comments E_NOTIMPL is not an allowable return code.