Creates an enumerator object to iterate through all the connection points supported in the connectable object, one connection point per outgoing IID.
HRESULT EnumConnectionPoints(
IEnumConnectionPoints **ppEnum //Address of output variable that
// receives the IEnumConnectionPoints
// interface pointer
);
This method supports the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following:
Since IEnumConnectionPoints enumerates pointers to IConnectionPoint, the caller must use IConnectionPoint::GetConnectionInterface to determine the interface identifer of the outgoing interface that the connection point supports.
The caller is responsible for releasing the enumerator by calling (*ppEnum)->Release
when it is no longer needed.
Returning E_NOTIMPL is specifically disallowed because, with the exception of type information, there would be no other means through which a caller could find the IIDs of the outgoing interfaces. Since a connectable object typically has a fixed set of known outgoing interfaces, it is straightforward to implement the enumerator on top of a fixed length array of IIDs known at compile time.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.