IEnumOleDocumentViews::Next method (docobj.h)
Retrieves the specified number of items in the enumeration sequence.
Syntax
HRESULT Next(
[in] ULONG cViews,
[out] IOleDocumentView **rgpView,
[in, out] ULONG *pcFetched
);
Parameters
[in] cViews
The number of items to be retrieved. If there are fewer than the requested number of items left in the sequence, this method retrieves the remaining elements.
If pcFetched is NULL, this parameter must be 1.
[out] rgpView
An array of enumerated items.
The enumerator is responsible for calling AddRef, and the caller is responsible for calling Release through each pointer enumerated. If cViews is greater than 1, the caller must also pass a non-NULL pointer passed to pcFetched to know how many pointers to release.
[in, out] pcFetched
The number of items that were retrieved. This parameter is always less than or equal to the number of items requested. This parameter can be NULL, in which case the cViews parameter must be 1.
Return value
If the method retrieves the number of items requested, the return value is S_OK. Otherwise, it is S_FALSE.
Remarks
E_NOTIMPL is not allowed as a return value. If an error value is returned, no entries in the rgpView array are valid and no calls to Release are required.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | docobj.h |