IVMHardDisk::Merge method
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Merges a differencing virtual hard disk with its parent disk image.
Syntax
HRESULT Merge(
[out, retval] IVMTask **mergeTask
);
Parameters
-
mergeTask [out, retval]
-
An IVMTask object that is used to track the completion of the merging process.
Return value
This method can return one of these values.
Return code/value | Description |
---|---|
|
The operation was successful. |
|
The parameter is NULL. |
|
The virtual hard disk image referenced by this IVMHardDisk object is in use or the parent of this virtual hard disk image is in use. Or, these hard disk images could be part of a saved state. |
|
The virtual hard disk image referenced by this IVMHardDisk object must be a differencing disk image. |
|
The parent of virtual hard disk image referenced by this IVMHardDisk object is marked as read only. |
|
The parent of the virtual hard disk referenced by this IVMHardDisk object does not exist. |
|
The virtual hard disk image cannot be merged because the application is shutting down. |
|
An unexpected error has occurred. |
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_IVMHardDisk is defined as ffa14ae6-48f5-42a4-8a22-186f2e5c7db0 |