<div class="content" name="DRIVE_LETTER_INFO" uuid="c330b3ba-d013-4b93-9a16-319412ef579e"><p> </p><p>The DRIVE_LETTER_INFO structure provides information about a
<span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_1b153cd0-e3f3-4383-bc66-d5ad482c9766" data-linktype="relative-path">drive
letter</a></span>. It is used for drive letter assignment and free requests,
for notification of drive letter changes, and for enumeration.</p><dl>
<dd>
<div><pre> struct driveletterinfo {
   wchar_t letter;
   LdmObjectId storageId;
   boolean isUsed;
   hyper lastKnownState;
   LdmObjectId taskId;
   unsigned long dlflags;
 };
 typedef struct driveletterinfo DRIVE_LETTER_INFO;
</pre></div>
</dd></dl><p><b>letter:</b>  Drive letter as a single
case-insensitive alphabetical <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_c305d0ab-8b94-461a-bd76-13b40cb8c4d8" data-linktype="relative-path">Unicode</a></span> character.</p><p><b>storageId:</b>  Specifies the <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_aaaf2f1a-0b0a-487e-a0f0-c3510a6091b2" data-linktype="relative-path">OID</a></span>
of the <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_9a876829-33a1-4f0b-8b81-8552b7e5561c" data-linktype="relative-path">volume</a></span>, partition,
or <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_a6adfe1b-35d0-404e-b2fb-4d45e9f579e0" data-linktype="relative-path">logical
drive</a></span> to which the drive letter is assigned, if any.</p><p><b>isUsed:</b>   Boolean value that
specifies if the drive letter is in use.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>FALSE 0</td>
  <td>Drive letter is free.</td>
 </tr><tr>
  <td>TRUE 1</td>
  <td>Drive letter is in use.</td>
 </tr></tbody></table>
</dd></dl><p><b>lastKnownState:</b>  <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_5a574d80-6bdb-4fb0-a0dd-b0601d16b4cd" data-linktype="relative-path">Modification
sequence number</a></span> of the drive letter.</p><p><b>taskId:</b>  Specifies the task
identifier of the associated user request. If no request is made, the value is
0. For more information about this task identifier, see section <span><a href="d55c167e-c6ad-445f-951c-9ac2d0de7a11" data-linktype="relative-path">2.2.17</a></span>.</p><p><b>dlflags:</b>  Bitmap of drive letter <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_425bcab9-7911-4eae-b414-624b7a51eb5f" data-linktype="relative-path">flags</a></span>.
The value of this field is generated by combining zero or more of the
applicable flags defined as follows with a logical OR operation.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>DL_PENDING_REMOVAL 0x00000001</td>
  <td>Drive letter has a removal operation pending.</td>
 </tr></tbody></table>
</dd></dl><p> </p></div>