IEnumProgressItems::Next method (imapi2fs.h)
Retrieves a specified number of items in the enumeration sequence.
Syntax
HRESULT Next(
[in] ULONG celt,
[out] IProgressItem **rgelt,
[out] ULONG *pceltFetched
);
Parameters
[in] celt
Number of items to retrieve.
[out] rgelt
Array of IProgressItem interfaces. You must release each interface in rgelt when done.
[out] pceltFetched
Number of elements returned in rgelt. You can set pceltFetched to NULL if celt is one. Otherwise, initialize the value of pceltFetched to 0 before calling this method.
Return value
S_OK is returned when the number of requested elements (celt) are returned successfully or the number of returned items (pceltFetched) is less than the number of requested elements.
Other success codes may be returned as a result of implementation. The following error codes are commonly returned on operation failure, but do not represent the only possible error values:
Return code | Description |
---|---|
|
Pointer is not valid.
Value: 0x80004003 |
|
Failed to allocate the required memory.
Value: 0x8007000E |
|
One or more arguments are not valid.
Value: 0x80070057 |
Remarks
If there are fewer than the requested number of elements left in the sequence, it retrieves the remaining elements.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista, Windows XP with SP2 [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | imapi2fs.h |