IEnumConnectionPoints::Next method (ocidl.h)
Retrieves the specified number of items in the enumeration sequence.
Syntax
HRESULT Next(
[in] ULONG cConnections,
[out] LPCONNECTIONPOINT *ppCP,
[out] ULONG *pcFetched
);
Parameters
[in] cConnections
The number of items to be retrieved. If there are fewer than the requested number of items left in the sequence, this method retrieves the remaining elements.
[out] ppCP
An array of enumerated items.
The enumerator is responsible for calling AddRef, and the caller is responsible for calling Release through each pointer enumerated. If cConnections is greater than 1, the caller must also pass a non-NULL pointer passed to lpcFetched to know how many pointers to release.
[out] pcFetched
The number of items that were retrieved. This parameter is always less than or equal to the number of items requested.
Return value
If the method retrieves the number of items requested, the return value is S_OK. Otherwise, it is S_FALSE.
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 (include ObjIdl.h) |