IVMVirtualMachine::MergeUndoDisks method
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Merges the virtual undo disks.
Syntax
HRESULT MergeUndoDisks(
[out, retval] IVMTask **undoMergeTask
);
Parameters
-
undoMergeTask [out, retval]
-
An IVMTask object that is used to track the creation of the image.
Return value
This method can return one of these values.
Return code/value | Description |
---|---|
|
The operation was successful. |
|
An unexpected error has occurred. |
|
The parameter is NULL. |
|
The system cannot find the path specified by the convertedDiskImagePath parameter or one of the parent disks is not valid. |
|
The current user has insufficient access to the parent file. |
|
One of the parent disks is in use. |
|
The configuration is unknown. |
|
The virtual machine is running. |
|
The parent of virtual undo disks is marked as read only. |
|
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
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
None supported |
End of client support |
Windows 7 |
Product |
Windows Virtual PC |
Header |
|
IID |
IID_IVMVirtualMachine is defined as f7092aa1-33ed-4f78-a59f-c00adfc2edd7 |