SET_VIRTUAL_DISK_INFO_VERSION enumeration

Contains the version of the virtual disk SET_VIRTUAL_DISK_INFO structure to use in calls to VHD functions. Use the different versions of the structure to set different kinds of information for the VHD.

Syntax


typedef enum _SET_VIRTUAL_DISK_INFO_VERSION { 
  SET_VIRTUAL_DISK_INFO_UNSPECIFIED             = 0,
  SET_VIRTUAL_DISK_INFO_PARENT_PATH             = 1,
  SET_VIRTUAL_DISK_INFO_IDENTIFIER              = 2,
  SET_VIRTUAL_DISK_INFO_PARENT_PATH_WITH_DEPTH  = 3,
  SET_VIRTUAL_DISK_INFO_PHYSICAL_SECTOR_SIZE    = 4,
  SET_VIRTUAL_DISK_INFO_VIRTUAL_DISK_ID         = 5,
  SET_VIRTUAL_DISK_INFO_CHANGE_TRACKING_STATE   = 6,
  SET_VIRTUAL_DISK_INFO_PARENT_LOCATOR          = 7
} SET_VIRTUAL_DISK_INFO_VERSION;

Constants

SET_VIRTUAL_DISK_INFO_UNSPECIFIED

Not used. Will fail the operation.

SET_VIRTUAL_DISK_INFO_PARENT_PATH

Parent information is being set.

SET_VIRTUAL_DISK_INFO_IDENTIFIER

A unique identifier is being set.

Note  If the VHD's unique identifier changes as a result of the SET_VIRTUAL_DISK_INFO_IDENTIFIER operation, it will break any existing differencing chains on the VHD.
 
SET_VIRTUAL_DISK_INFO_PARENT_PATH_WITH_DEPTH

Sets the parent file path and the child depth.

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

SET_VIRTUAL_DISK_INFO_PHYSICAL_SECTOR_SIZE

Sets the physical sector size reported by the VHD.

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

SET_VIRTUAL_DISK_INFO_VIRTUAL_DISK_ID

The identifier that is uniquely created when a user first creates the virtual disk to attempt to uniquely identify that virtual disk.

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

SET_VIRTUAL_DISK_INFO_CHANGE_TRACKING_STATE

Whether resilient change tracking (RCT) is turned on for the virtual disk.

Windows 8.1 and Windows Server 2012 R2:  This value is not supported before Windows 10 and Windows Server 2016.

SET_VIRTUAL_DISK_INFO_PARENT_LOCATOR

The parent linkage information that differencing VHDs store. Parent linkage information is metadata used to locate and correctly identify the next parent in the virtual disk chain.

Windows 8.1 and Windows Server 2012 R2:  This value is not supported before Windows 10 and Windows Server 2016.

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

 

 

Show: