RESIZE_VIRTUAL_DISK_FLAG enumeration (virtdisk.h)

Enumerates the available flags for the ResizeVirtualDisk function.

Syntax

typedef enum _RESIZE_VIRTUAL_DISK_FLAG {
  RESIZE_VIRTUAL_DISK_FLAG_NONE = 0x0,
  RESIZE_VIRTUAL_DISK_FLAG_ALLOW_UNSAFE_VIRTUAL_SIZE = 0x1,
  RESIZE_VIRTUAL_DISK_FLAG_RESIZE_TO_SMALLEST_SAFE_VIRTUAL_SIZE = 0x2
} RESIZE_VIRTUAL_DISK_FLAG;

Constants

 
RESIZE_VIRTUAL_DISK_FLAG_NONE
Value: 0x0
No flags are specified.
RESIZE_VIRTUAL_DISK_FLAG_ALLOW_UNSAFE_VIRTUAL_SIZE
Value: 0x1
If this flag is set, skip checking the virtual disk's partition table to ensure that this truncation is
safe. Setting this flag can cause unrecoverable data loss; use with care.
RESIZE_VIRTUAL_DISK_FLAG_RESIZE_TO_SMALLEST_SAFE_VIRTUAL_SIZE
Value: 0x2
If this flag is set, resize the disk to the smallest virtual size possible without truncating past any
existing partitions. If this is set, the NewSize member in the
RESIZE_VIRTUAL_DISK_PARAMETERS
structure must be zero.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header virtdisk.h (include Windows.h)

See also

RESIZE_VIRTUAL_DISK_PARAMETERS

ResizeVirtualDisk

VHD Enumerations