ATTACH_VIRTUAL_DISK_FLAG enumeration

Contains virtual disk attach request flags.

Syntax


typedef enum _ATTACH_VIRTUAL_DISK_FLAG { 
  ATTACH_VIRTUAL_DISK_FLAG_NONE                = 0x00000000,
  ATTACH_VIRTUAL_DISK_FLAG_READ_ONLY           = 0x00000001,
  ATTACH_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER     = 0x00000002,
  ATTACH_VIRTUAL_DISK_FLAG_PERMANENT_LIFETIME  = 0x00000004,
  ATTACH_VIRTUAL_DISK_FLAG_NO_LOCAL_HOST       = 0x00000008
} ATTACH_VIRTUAL_DISK_FLAG;

Constants

ATTACH_VIRTUAL_DISK_FLAG_NONE

No flags. Use system defaults.

This enumeration value is not supported for ISO virtual disks. ATTACH_VIRTUAL_DISK_FLAG_READ_ONLY must be specified.

ATTACH_VIRTUAL_DISK_FLAG_READ_ONLY

Attach the virtual disk as read-only.

Windows 7 and Windows Server 2008 R2:  This flag is not supported for opening ISO virtual disks until Windows 8 and Windows Server 2012.
ATTACH_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER

No drive letters are assigned to the disk's volumes.

Windows 7 and Windows Server 2008 R2:  This flag is not supported for opening ISO virtual disks until Windows 8 and Windows Server 2012.
ATTACH_VIRTUAL_DISK_FLAG_PERMANENT_LIFETIME

Will decouple the virtual disk lifetime from that of the VirtualDiskHandle. The virtual disk will be attached until the DetachVirtualDisk function is called, even if all open handles to the virtual disk are closed.

Windows 7 and Windows Server 2008 R2:  This flag is not supported for opening ISO virtual disks until Windows 8 and Windows Server 2012.
ATTACH_VIRTUAL_DISK_FLAG_NO_LOCAL_HOST

Reserved.

This flag is not supported for ISO virtual disks.

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

 

 

Build date: 10/26/2012

Community Additions

ADD
Show:
© 2014 Microsoft