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

Retrieves the next celtitems in the enumeration sequence. If there are fewer than the requested number of elements left in the sequence, it retrieves the remaining elements.

The number of elements actually retrieved is returned through the pceltFetchedparameter unless the caller passed in NULL for that parameter.

Syntax

HRESULT Next(
  ULONG 
celt,
  FORMATETC* 
rgelt,
  ULONG* 
pceltFetched
);

Parameters

celt

[in] Number of elements being requested.

rgelt

[out] Array of size celt(or larger) of the elements of interest. The type of this parameter depends on the item being enumerated.

pceltFetched

[in, out] Pointer to the number of elements actually supplied in rgelt. The caller can pass in NULL if celtis 1.

Return Value

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

Remarks

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

Requirements

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