IEnumSTATSTG::Next method (objidl.h)

The Next method retrieves a specified number of STATSTG structures, that follow in the enumeration sequence. If there are fewer than the requested number of STATSTG structures that remain in the enumeration sequence, it retrieves the remaining STATSTG structures.

Syntax

HRESULT Next(
  ULONG   celt,
  STATSTG *rgelt,
  ULONG   *pceltFetched
);

Parameters

celt

The number of STATSTG structures requested.

rgelt

An array of STATSTG structures returned.

pceltFetched

The number of STATSTG structures retrieved in the rgelt parameter.

Return value

This method supports the following return values:

Return code Description
S_OK
The number of STATSTG structures returned is equal to the number specified in the celt parameter.
S_FALSE
The number of STATSTG structures returned is less than the number specified in the celt parameter.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header objidl.h
Library Uuid.lib
DLL Ole32.dll

See also

IEnumSTATSTG