Skip to content

Latest commit

 

History

History
193 lines (120 loc) · 3.99 KB

msvm-virtualharddiskstate.md

File metadata and controls

193 lines (120 loc) · 3.99 KB
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
APIRef
kbSyntax
Msvm_VirtualHardDiskState
Msvm_VirtualHardDiskState.FileSize
Msvm_VirtualHardDiskState.InUse
Msvm_VirtualHardDiskState.MinInternalSize
Msvm_VirtualHardDiskState.PhysicalSectorSize
Msvm_VirtualHardDiskState.Alignment
Msvm_VirtualHardDiskState.FragmentationPercentage
Msvm_VirtualHardDiskState.Timestamp
DllExport
vmms.exe

Msvm_VirtualHardDiskState class

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.

Syntax

[AMENDMENT]
class Msvm_VirtualHardDiskState
{
  uint64   FileSize;
  boolean  InUse;
  uint64   MinInternalSize;
  uint32   PhysicalSectorSize;
  uint32   Alignment;
  uint32   FragmentationPercentage;
  DATETIME Timestamp;
};

Members

The Msvm_VirtualHardDiskState class has these types of members:

Properties

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.

Requirements

Requirement Value
Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\Virtualization\V2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

See also

GetVirtualHardDiskState