IVMHardDisk interface
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Provides access to a hard disk image. It can be accessed through the IVMHardDiskConnection::HardDisk property or the IVMVirtualPC::GetHardDisk method.
Members
The IVMHardDisk interface inherits from the IDispatch interface. IVMHardDisk also has these types of members:
Methods
The IVMHardDisk interface has these methods.
Method | Description |
---|---|
Compact | Compacts a dynamically expanding virtual hard disk image. |
Convert | Converts any virtual hard disk to either a dynamically expanding virtual hard disk or a fixed-size virtual hard disk. |
Merge | Merges a differencing virtual hard disk with its parent disk image. |
MergeTo | Merges a differencing virtual hard disk with all of its parents (up to and including the root parent virtual hard disk) to a new hard disk file. |
Properties
The IVMHardDisk interface has these properties.
Property | Access type | Description |
---|---|---|
File |
Read-only |
The full path name of the virtual hard disk file. |
HostFreeDiskSpace |
Read-only |
The amount of remaining disk space available on the host for the virtual hard disk. |
Parent |
Read/write |
The parent of the differencing virtual hard disk. |
SizeInGuest |
Read-only |
The size of the virtual hard disk in the guest operating system. |
SizeOnHost |
Read-only |
The size of the virtual hard disk file on the host computer. |
Type |
Read-only |
The type of the virtual hard disk. |
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 |