GET_VIRTUAL_DISK_INFO_VERSION enumeration

Contains virtual hard disk (VHD) information retrieval identifiers. For more information, see GET_VIRTUAL_DISK_INFO.

Syntax


typedef enum _GET_VIRTUAL_DISK_INFO_VERSION { 
  GET_VIRTUAL_DISK_INFO_UNSPECIFIED                 = 0,
  GET_VIRTUAL_DISK_INFO_SIZE                        = 1,
  GET_VIRTUAL_DISK_INFO_IDENTIFIER                  = 2,
  GET_VIRTUAL_DISK_INFO_PARENT_LOCATION             = 3,
  GET_VIRTUAL_DISK_INFO_PARENT_IDENTIFIER           = 4,
  GET_VIRTUAL_DISK_INFO_PARENT_TIMESTAMP            = 5,
  GET_VIRTUAL_DISK_INFO_VIRTUAL_STORAGE_TYPE        = 6,
  GET_VIRTUAL_DISK_INFO_PROVIDER_SUBTYPE            = 7,
  GET_VIRTUAL_DISK_INFO_IS_4K_ALIGNED               = 8,
  GET_VIRTUAL_DISK_INFO_PHYSICAL_DISK               = 9,
  GET_VIRTUAL_DISK_INFO_VHD_PHYSICAL_SECTOR_SIZE    = 10, // 0xA
  GET_VIRTUAL_DISK_INFO_SMALLEST_SAFE_VIRTUAL_SIZE  = 11,
  GET_VIRTUAL_DISK_INFO_FRAGMENTATION               = 12
} GET_VIRTUAL_DISK_INFO_VERSION;

Constants

GET_VIRTUAL_DISK_INFO_UNSPECIFIED

Reserved. This value should not be used.

GET_VIRTUAL_DISK_INFO_SIZE

Information related to the virtual disk size, including total size, physical allocation used, block size, and sector size.

GET_VIRTUAL_DISK_INFO_IDENTIFIER

The unique identifier. This identifier is persistently stored in the virtual disk and will not change even if the virtual disk file is copied to another file.

GET_VIRTUAL_DISK_INFO_PARENT_LOCATION

The paths to parent virtual disks. Valid only for differencing virtual disks.

GET_VIRTUAL_DISK_INFO_PARENT_IDENTIFIER

The unique identifier of the parent virtual disk. Valid only for differencing virtual disks.

GET_VIRTUAL_DISK_INFO_PARENT_TIMESTAMP

The time stamp of the parent when the child virtual disk was created. Valid only for differencing virtual disks.

GET_VIRTUAL_DISK_INFO_VIRTUAL_STORAGE_TYPE

The device identifier and vendor identifier that identify the type of virtual disk.

GET_VIRTUAL_DISK_INFO_PROVIDER_SUBTYPE

The type of virtual disk.

GET_VIRTUAL_DISK_INFO_IS_4K_ALIGNED

Indicates whether the virtual disk is 4 KB aligned.

Windows 7 and Windows Server 2008 R2:  This value is not supported before Windows 8 and Windows Server 2012.
GET_VIRTUAL_DISK_INFO_PHYSICAL_DISK

Details about the physical disk on which the virtual disk resides.

Windows 7 and Windows Server 2008 R2:  This value is not supported before Windows 8 and Windows Server 2012.
GET_VIRTUAL_DISK_INFO_VHD_PHYSICAL_SECTOR_SIZE

The physical sector size of the virtual disk.

Windows 7 and Windows Server 2008 R2:  This value is not supported before Windows 8 and Windows Server 2012.
GET_VIRTUAL_DISK_INFO_SMALLEST_SAFE_VIRTUAL_SIZE

The smallest safe minimum size of the virtual disk.

Windows 7 and Windows Server 2008 R2:  This value is not supported before Windows 8 and Windows Server 2012.
GET_VIRTUAL_DISK_INFO_FRAGMENTATION

The fragmentation level of the virtual disk.

Windows 7 and Windows Server 2008 R2:  This value is not supported before Windows 8 and Windows Server 2012.

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

VirtDisk.h (include Windows.h)

See also

About VHD
VHD Reference
GetVirtualDiskInformation
GET_VIRTUAL_DISK_INFO

 

 

Build date: 10/26/2012

Community Additions

ADD
Show:
© 2014 Microsoft