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               = 0x00000000,
  OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS         = 0x00000001,
  OPEN_VIRTUAL_DISK_FLAG_BLANK_FILE         = 0x00000002,
  OPEN_VIRTUAL_DISK_FLAG_BOOT_DRIVE         = 0x00000004,
  OPEN_VIRTUAL_DISK_FLAG_CACHED_IO          = 0x00000008,
  OPEN_VIRTUAL_DISK_FLAG_CUSTOM_DIFF_CHAIN  = 0x00000010
} 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.

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: