Export (0) Print
Expand All

IConnectionPoint::GetConnectionPointContainer method

Retrieves the IConnectionPointContainer interface pointer for the parent connectable object.

Syntax


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

Parameters

ppCPC [out]

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 codeDescription
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

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IConnectionPoint is defined as B196B286-BAB4-101A-B69C-00AA00341D07

See also

IConnectionPoint
IConnectionPointContainer

 

 

Community Additions

ADD
Show:
© 2014 Microsoft