2.2.2.20.1.1 ATTACH_VIRTUAL_DISK_FLAG

The ATTACH_VIRTUAL_DISK_FLAG enumeration defines options for attaching a virtual disk.

 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;

ATTACH_VIRTUAL_DISK_FLAG_NONE:  Indicates that no flag has been specified. This flag implies that the operating system disk device created when the virtual disk is attached will be read\write.

ATTACH_VIRTUAL_DISK_FLAG_READ_ONLY:  Attaches the operating system disk device created when the virtual disk is attached as read-only.

ATTACH_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER:  If this flag is set, no drive letters are assigned to the disk's volumes.

ATTACH_VIRTUAL_DISK_FLAG_PERMANENT_LIFETIME:  MUST NOT be used by virtual disk providers or their clients.<52>

ATTACH_VIRTUAL_DISK_FLAG_NO_LOCAL_HOST:  Specifies that the operating system disk device created when the virtual disk is attached will not be exposed to the local system, but rather to a virtual machine running on the local system.