Share via


IEnumString::Next

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method retrieves the next celt items 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 pceltFetched parameter, unless the caller passed in NULL for that parameter.

Syntax

HRESULT Next(
  ULONG celt, 
  LPOLESTR* 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 celt is 1.

Return Value

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

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 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later