IConnectionPoint::GetConnectionPointContainer method (ocidl.h)

Retrieves the IConnectionPointContainer interface pointer for the parent connectable object.

Syntax

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

Parameters

[out] ppCPC

A pointer to an IConnectionPointContainer interface pointer.

Return value

This method can return the standard return value E_UNEXPECTED, as well as the following values.

Return code Description
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 AddRef. The caller is responsible for calling Release to release this pointer when done.

Notes to Implementers

This method must call AddRef before returning.

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

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header ocidl.h

See also

IConnectionPoint

IConnectionPointContainer