ATTACH_VIRTUAL_DISK_FLAG enumeration (virtdisk.h)
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_NO_SECURITY_DESCRIPTOR = 0x00000010,
ATTACH_VIRTUAL_DISK_FLAG_BYPASS_DEFAULT_ENCRYPTION_POLICY = 0x00000020,
ATTACH_VIRTUAL_DISK_FLAG_NON_PNP,
ATTACH_VIRTUAL_DISK_FLAG_RESTRICTED_RANGE,
ATTACH_VIRTUAL_DISK_FLAG_SINGLE_PARTITION,
ATTACH_VIRTUAL_DISK_FLAG_REGISTER_VOLUME,
ATTACH_VIRTUAL_DISK_FLAG_AT_BOOT
} ATTACH_VIRTUAL_DISK_FLAG;
Constants
ATTACH_VIRTUAL_DISK_FLAG_NONE Value: 0x00000000 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 Value: 0x00000001 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 Value: 0x00000002 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 Value: 0x00000004 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 Value: 0x00000008 Reserved. This flag is not supported for ISO virtual disks. |
ATTACH_VIRTUAL_DISK_FLAG_NO_SECURITY_DESCRIPTOR Value: 0x00000010 |
ATTACH_VIRTUAL_DISK_FLAG_BYPASS_DEFAULT_ENCRYPTION_POLICY Value: 0x00000020 |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Header | virtdisk.h |