IEnumOleUndoUnits::Clone method

Creates a new enumerator that contains the same enumeration state as the current one.

This method makes it possible to record a particular point in the enumeration sequence and then return to that point at a later time. The caller must release this new enumerator separately from the first enumerator.

Syntax


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

Parameters

ppEnum [out]

A pointer to the IEnumOleUndoUnits interface pointer on the newly created enumerator. The caller must release this enumerator separately from the one from which it was cloned.

Return value

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

Return codeDescription
E_UNEXPECTED

An unexpected error has occurred.

E_INVALIDARG

The specified enumerator is invalid.

E_OUTOFMEMORY

Insufficient memory available for this operation.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IEnumOleUndoUnits is defined as B3E7C340-EF97-11CE-9BC9-00AA00608E01

See also

IEnumOleUndoUnits

 

 

Show: