IEnumReplItem::Next (Windows CE 5.0)

Send Feedback

This method attempts to advance to the next item in the enumeration sequence.

HRESULT Next(unsigned long celt,HREPLITEM* phItem,unsigned long FAR* pCeltFetched);

Parameters

  • celt
    [in] Specifies the number of elements to return. If the number of elements requested is more than remains in the sequence, only the remaining elements are returned. The number of elements returned is passed through the pCeltFetched parameter, unless it is NULL.
  • phItem
    [out] Pointer to the handle to the structure in which to return the elements.
  • pCeltFetched
    [out] Pointer to the number of elements actually returned in *phItem. The pCeltFetched parameter cannot be NULL if celt is greater than one. Likewise, if pCeltFetched is NULL, celt must be one.

Return Values

The following table shows the possible return values for this method.

Value Description
S_OK Returned the requested number of elements; phItem is set if non-NULL. All requested entries are valid.
S_FALSE Returned fewer elements than requested in celt. In this case, unused slots in the enumeration are not set to NULL and *phItem holds the number of valid entries, even if zero is returned.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG The value of celt is invalid.
E_UNEXPECTED An unexpected error occurred.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Cesync.h.
Link Library: Coredll.lib.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.