Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method enumerates the next cConnectionselements ( IConnectionPointpointers) in the enumerator's list, returning them in rgpcnalong with the actual number of enumerated elements in pcFetched.

The enumerator calls IConnectionPoint::AddReffor each returned pointer in rgpcn, and the caller is responsible for calling IConnectionPoint::Releasethrough each pointer when those pointers are no longer needed.

Syntax

HRESULT Next(
  ULONG 
cConnections, 
  IConnectionPoint** 
rgpcn, 
  ULONG* 
pcFetched 
);

Parameters

cConnections

[in] Number of IConnectionPointvalues returned in rgpcnarray.

rgpcn

[out] Array to receive enumerated connection points.

pcFetched

[out] Pointer to the actual number of connection points returned in rgpcnarray.

Return Value

S_OK if the number of elements supplied is cConnections; S_FALSE otherwise.

Remarks

E_NOTIMPL is not allowed as a return value.

If an error value is returned, no entries in the rgpcnarray are valid on exit and require no release.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header ocidl.h, ocidl.idl
Library ole32.lib, uuid.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later