The Next method of the IEnumXXXX interface retrieves the next specified number of elements from the enumerator's list.
HRESULT Next(ULONG celt, <element_type> *rgelt[], ULONG *pceltFetched)
[in] celt | The number of elements requested. |
[out] rgelt | The array to be filled in with the elements. |
[out] pceltFetched | The number of elements actually returned in rgelt. This can be less than celt if fewer than celt elements remained in the list. |
S_OK Celt elements were returned.
S_FALSE Fewer than celt elements were returned.