Share via


IVMVirtualMachine::MergeUndoDisks method

The MergeUndoDisks method merges the virtual undo disks.

Syntax

HRESULT MergeUndoDisks(
  [out] IVMTask **undoMergeTask
);

Parameters

undoMergeTask [out]

Retrieves the task which is used to track the creation of the image.

Return value

Return code Description
S_OK
The operation was successful.
E_POINTER
The undoMergeTask parameter is NULL.
VM_E_VM_UNKNOWN
Unknown configuration.
VM_E_VM_RUNNING
Cannot merge disks while the virtual machine is running.
DISP_E_EXCEPTION
An unexpected error has occurred.

Remarks

MergeUndoDisks cannot be called while the virtual machine is still running. Use IVMVirtualMachine::Save to save the state of the virtual machine before calling MergeUndoDisks, or IVMVirtualMachine::TurnOff to turn off the virtual machine without saving its current state beforehand.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMVirtualMachine