IOleUndoManager::EnumRedoable  2CN8RW7

Creates an enumerator object that the caller can use to iterate through a series of top-level undo units from the redo stack.

HRESULT EnumRedoable(

    IEnumOleUndoUnits** ppEnum

//Indirect pointer to new enumerator object

   );

 

 

Parameters

ppEnum

[out] Indirect pointer to the IEnumOleUndoUnits interface on the enumerator object.

 

Return Values

S_OK

The enumerator object was successfully created and the interface pointer was returned.

E_UNEXPECTED

The undo manager is disabled.

 

Remarks

A new enumerator object is created each time this method is called. If the series of enumerated items changes over time, the results of enumeration operations can vary from one call to the next.

This method calls AddRef on the new enumerator object to increment its reference count. The caller is responsible for calling Release on the enumerator object when it is no longer needed.

See Also

IEnumOleUndoUnits