OPEN_VIRTUAL_DISK_FLAG enumeration

Contains virtual hard disk (VHD) or CD or DVD image file (ISO) open request flags.

Syntax

typedef enum _OPEN_VIRTUAL_DISK_FLAG {
  OPEN_VIRTUAL_DISK_FLAG_NONE,
  OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS,
  OPEN_VIRTUAL_DISK_FLAG_BLANK_FILE,
  OPEN_VIRTUAL_DISK_FLAG_BOOT_DRIVE,
  OPEN_VIRTUAL_DISK_FLAG_CACHED_IO,
  OPEN_VIRTUAL_DISK_FLAG_CUSTOM_DIFF_CHAIN,
  OPEN_VIRTUAL_DISK_FLAG_PARENT_CACHED_IO,
  OPEN_VIRTUAL_DISK_FLAG_VHDSET_FILE_ONLY,
  OPEN_VIRTUAL_DISK_FLAG_IGNORE_RELATIVE_PARENT_LOCATOR,
  OPEN_VIRTUAL_DISK_FLAG_NO_WRITE_HARDENING,
  OPEN_VIRTUAL_DISK_FLAG_SUPPORT_COMPRESSED_VOLUMES
} OPEN_VIRTUAL_DISK_FLAG;

Constants

OPEN_VIRTUAL_DISK_FLAG_NONE No flag specified.
OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS Open the VHD file (backing store) without opening any differencing-chain parents. Used to correct broken
parent links.

This flag is not supported for ISO virtual disks.
OPEN_VIRTUAL_DISK_FLAG_BLANK_FILE Reserved.

This flag is not supported for ISO virtual disks.
OPEN_VIRTUAL_DISK_FLAG_BOOT_DRIVE Reserved.

This flag is not supported for ISO virtual disks.
OPEN_VIRTUAL_DISK_FLAG_CACHED_IO Indicates that the virtual disk should be opened in cached mode. By default the virtual disks are opened
using FILE_FLAG_NO_BUFFERING and
FILE_FLAG_WRITE_THROUGH.

Windows 7 and Windows Server 2008 R2:  This value is not supported before Windows 8 and Windows Server 2012.
OPEN_VIRTUAL_DISK_FLAG_CUSTOM_DIFF_CHAIN Indicates the VHD file is to be opened without opening any differencing-chain parents and the parent chain is
to be created manually using the
AddVirtualDiskParent function.

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

Requirements

   
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Header virtdisk.h

See also

About VHD

VHD Reference