IStorage::EnumElements method

The EnumElements method retrieves a pointer to an enumerator object that can be used to enumerate the storage and stream objects contained within this storage object.

Syntax

HRESULT EnumElements(
  DWORD        reserved1,
  void         *reserved2,
  DWORD        reserved3,
  IEnumSTATSTG **ppenum
);

Parameters

reserved1

Reserved for future use; must be zero.

reserved2

Reserved for future use; must be NULL.

reserved3

Reserved for future use; must be zero.

ppenum

Pointer to IEnumSTATSTG* pointer variable that receives the interface pointer to the new enumerator object.

Return Value

This method can return one of these values.

Remarks

The enumerator object returned by this method implements the IEnumSTATSTG interface, one of the standard enumerator interfaces that contain the Next, Reset, Clone, and Skip methods. IEnumSTATSTG enumerates the data stored in an array of STATSTG structures.

The storage object must be open in read mode to allow the enumeration of its elements.

The order in which the elements are enumerated and whether the enumerator is a snapshot or always reflects the current state of the storage object, and depends on the IStorage implementation.

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

IStorage - Compound File Implementation

STATSTG