<div class="content"><p> </p><p>The ATTACH_VIRTUAL_DISK_FLAG enumeration defines options for
attaching a <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_1fbc35d5-bcf5-4ce7-9449-4197a1671440" data-linktype="relative-path">virtual disk</a></span>.</p><dl>
<dd>
<div><pre> 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;
</pre></div>
</dd></dl><p><b>ATTACH_VIRTUAL_DISK_FLAG_NONE:  </b>Indicates that
no flag has been specified. This flag implies that the operating system <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_c4133b2a-a990-4042-ba44-7fda3090f118" data-linktype="relative-path">disk</a></span>
device created when the virtual disk is <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_d9c0ca19-3589-453a-b579-e66dbf6c98b2" data-linktype="relative-path">attached</a></span> will be
read\write.</p><p><b>ATTACH_VIRTUAL_DISK_FLAG_READ_ONLY:  </b>Attaches
the operating system disk device created when the virtual disk is attached as <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_ca1db15f-c3cf-41ca-832e-b2c98007cb6a" data-linktype="relative-path">read-only</a></span>.</p><p><b>ATTACH_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER:  </b>If
this flag is set, no drive letters are assigned to the disk&#39;s volumes.</p><p><b>ATTACH_VIRTUAL_DISK_FLAG_PERMANENT_LIFETIME:  </b>MUST
NOT be used by virtual disk providers or their clients.<a id="Appendix_A_Target_52"></a><a aria-label="Product behavior note 52" href="6b2552ee-ba27-409f-99a8-18841573327a#Appendix_A_52" data-linktype="relative-path">&lt;52&gt;</a></p><p><b>ATTACH_VIRTUAL_DISK_FLAG_NO_LOCAL_HOST:  </b>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.</p></div>