Retrieves a pointer to an enumerator object that can be used to enumerate the storage and stream objects contained within this storage object.
HRESULT EnumElements(
DWORD reserved1, |
//Reserved; must be zero |
void * reserved2, |
//Reserved; must be NULL |
DWORD reserved3, |
//Reserved; must be zero |
IEnumSTATSTG ** ppenum |
//Indirect pointer to IEnumSTATSTG |
); |
Parameters
Return 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.
See Also
IStorage - Compound File Implementation, IEnumXXXX, IEnumSTATSTG, STATSTG