# IConnectionPoint::GetConnectionPointContainer

Retrieves the IConnectionPointContainer interface pointer for the parent connectable object.

HRESULT GetConnectionPointContainer(

IConnectionPointContainer **ppCPC | //Indirect pointer
); |

Parameters

ppCPC
  [out] Indirect pointer to the IConnectionPointContainer interface on the parent connectable object.

Return Values

This method supports the standard return value E_UNEXPECTED, as well as the following:

S_OK
  The IConnectionPointContainer pointer was successfully returned.
E_POINTER
  The value in ppCPC is not a valid interface pointer. For example, it may be NULL.

Remarks

#### Notes to Callers

This method calls IConnectionPointContainer::AddRef. The caller is responsible for calling IConnectionPointContainer::Release to release this pointer when done.

#### Notes to Implementers

This method must call IConnectionPointContainer::AddRef before returning.

This method must be implemented in any connection point; E_NOTIMPL is not an acceptable return value.

See Also

IConnectionPoint, IConnectionPointContainer