description | ms.assetid | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Provides state information for an existing virtual hard disk image. |
b0177906-71dc-4be8-b351-97d7ef427acd |
Msvm_VirtualHardDiskState class |
reference |
05/31/2018 |
|
|
|
|
Provides state information for an existing virtual hard disk image.
The following syntax is simplified Managed Object Format (MOF) code, and it includes all of the inherited properties.
[AMENDMENT]
class Msvm_VirtualHardDiskState
{
uint64 FileSize;
boolean InUse;
uint64 MinInternalSize;
uint32 PhysicalSectorSize;
uint32 Alignment;
uint32 FragmentationPercentage;
DATETIME Timestamp;
};
The Msvm_VirtualHardDiskState class has these types of members:
The Msvm_VirtualHardDiskState class has these properties.
-
Alignment
-
-
Data type: uint32
-
Access type: Read-only
Specifies the type of alignment of the virtual hard disk. This will be one of the following values.
Value Meaning - 0
512 byte alignment. - 1
4 KB alignment. -
-
FileSize
-
-
Data type: uint64
-
Access type: Read-only
The size of the virtual hard disk file (the actual amount of storage being consumed by the file), in bytes.
-
-
FragmentationPercentage
-
-
Data type: uint32
-
Access type: Read-only
An approximation of the percentage of virtual disk blocks that are fragmented in the virtual hard disk file.
-
-
InUse
-
-
Data type: boolean
-
Access type: Read-only
This property is reserved for future use.
-
-
MinInternalSize
-
-
Data type: uint64
-
Access type: Read-only
The minimum size that the virtual hard disk can be shrunk to, in bytes. This size is rounded up to the next largest multiple of the sector size.
-
-
PhysicalSectorSize
-
-
Data type: uint32
-
Access type: Read-only
The physical sector size used by the underlying physical disk, in bytes.
-
-
Timestamp
-
-
Data type: DATETIME
-
Access type: Read-only
The timestamp of the virtual hard disk
Note
Added in Windows 10 and Windows Server 2016.
-
Requirement | Value |
---|---|
Minimum supported client |
Windows 8 [desktop apps only] |
Minimum supported server |
Windows Server 2012 [desktop apps only] |
Namespace |
Root\Virtualization\V2 |
MOF |
|
DLL |
|