IOleUndoManager::EnumRedoable method (ocidl.h)

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

Syntax

HRESULT EnumRedoable(
  [out] IEnumOleUndoUnits **ppEnum
);

Parameters

[out] ppEnum

Address of IEnumOleUndoUnits pointer variable that receives the interface pointer to the enumerator object.

Return value

This method returns S_OK on success. Other possible return values include the following.

Return code Description
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 IUnknown::AddRef on the new enumerator object to increment its reference count. The caller is responsible for calling IUnknown::Release on the enumerator object when it is no longer needed.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ocidl.h

See also

IEnumOleUndoUnits

IOleUndoManager