IEnumOLEVERB::Next method

Retrieves the specified number of items in the enumeration sequence.

Syntax


HRESULT Next(
  [in]      ULONG     celt,
  [out]     LPOLEVERB rgelt,
  [in, out] ULONG     *pceltFetched
);

Parameters

celt [in]

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.

rgelt [out]

An array of enumerated items.

The enumerator is responsible for allocating any memory, and the caller is responsible for freeing it. If celt is greater than 1, the caller must also pass a non-NULL pointer passed to pceltFetched to know how many pointers to release.

pceltFetched [in, out]

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 if celt is 1.

Return value

If the method retrieves the number of items requested, the return value is S_OK. Otherwise, it is S_FALSE.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IEnumOLEVERB is defined as 00000104-0000-0000-C000-000000000046

See also

IEnumOLEVERB
OLEVERB

 

 

Show: