Creates an enumerator object that the caller can use to iterate through a series of top-level undo units from the undo stack.
HRESULT EnumUndoable(
IEnumOleUndoUnits** ppEnum //Address of output variable that
// receives the IEnumOleUndoUnits
// interface pointer
);
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.
Windows NT: Use version 4.0 or later. New for OC96.
Windows: Use Windows 95 or later. New for OC96.
Windows CE: Unsupported.
Header: Declared in ocidl.h.