<div class="content" name="REGION_INFO_EX" uuid="9a20cc96-88c3-4194-9563-9778bea15376"><p> </p><p>The REGION_INFO_EX structure provides information about a
region.</p><dl>
<dd>
<div><pre> struct regioninfoex {
   LdmObjectId id;
   LdmObjectId diskId;
   LdmObjectId volId;
   LdmObjectId fsId;
   LONGLONG start;
   LONGLONG length;
   REGIONTYPE regionType;
   PARTITIONSTYLE partitionStyle;
   [switch_is(partitionStyle)] union {
     [case(PARTITIONSTYLE_MBR)] 
       struct {
       unsigned long partitionType;
       boolean isActive;
     } mbr;
     [case(PARTITIONSTYLE_GPT)] 
       struct {
       GUID partitionType;
       GUID partitionId;
       ULONGLONG attributes;
     } gpt;
     [default]       ;
   };
   REGIONSTATUS status;
   hyper lastKnownState;
   LdmObjectId taskId;
   unsigned long rflags;
   unsigned long currentPartitionNumber;
   int cchName;
   [size_is(cchName)] wchar_t* name;
 };
 typedef struct regioninfoex REGION_INFO_EX;
</pre></div>
</dd></dl><p><b>id:</b>  Specifies the region&#39;s OID.</p><p><b>diskId:</b>   Specifies the OID of the <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_c4133b2a-a990-4042-ba44-7fda3090f118" data-linktype="relative-path">disk</a></span>
on which the region resides.</p><p><b>volId:</b>  Specifies the OID of the <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_9a876829-33a1-4f0b-8b81-8552b7e5561c" data-linktype="relative-path">volume</a></span>
on the region, if any.</p><p><b>fsId:</b>  Specifies the OID of the file
system on the region, if any.</p><p><b>start:</b>  Byte offset of the region on
the disk.</p><p><b>length:</b>  Length of the region in
bytes.</p><p><b>regionType:</b>  Value from the <span><a href="27b250fb-e8f3-425c-9688-a55b97e4ecf0" data-linktype="relative-path">REGIONTYPE</a></span>
enumeration that indicates the region type.</p><p><b>partitionStyle:</b>   Value from the <span><a href="c17c0433-880e-4f57-9b71-23e9379d0594" data-linktype="relative-path">PARTITIONSTYLE</a></span>
enumeration that indicates the region&#39;s partitioning style.</p><p><b>(unnamed union):</b>  A union that
contains either a <b>partitionType</b> of type <span><a href="../ms-dtyp/32862b84-f6e6-40f9-85ca-c4faf985b822" data-linktype="relative-path">ULONG</a></span>
and an <b>isActive</b>, or a <b>partitionType</b> of type <span><a href="../ms-dtyp/4926e530-816e-41c2-b251-ec5c7aca018a" data-linktype="relative-path">GUID</a></span>,
a <b>partitionId</b>, and an <b>attributes</b>, depending on the value of <b>partitionStyle:</b></p><p><b>partitionType:</b>  Windows NT 3.1
operating system, Windows NT 3.5 operating system, Windows NT 3.51 operating
system, and Windows NT 4.0 operating system partition style for the region.
This field contains one of the following values.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>PARTITION_ENTRY_UNUSED 0x00</td>
  <td>An unused entry partition.</td>
 </tr><tr>
  <td>PARTITION_EXTENDED 0x05</td>
  <td>An extended partition.</td>
 </tr><tr>
  <td>PARTITION_FAT_12 0x01</td>
  <td>A FAT12 file system partition.</td>
 </tr><tr>
  <td>PARTITION_FAT_16 0x04</td>
  <td>A FAT16 file system partition.</td>
 </tr><tr>
  <td>PARTITION_FAT32 0x0B</td>
  <td>A FAT32 file system partition.</td>
 </tr><tr>
  <td>PARTITION_IFS 0x07</td>
  <td>An IFS partition.</td>
 </tr><tr>
  <td>PARTITION_LDM 0x42</td>
  <td>An LDM partition.</td>
 </tr><tr>
  <td>PARTITION_NTFT 0x80</td>
  <td>A Windows NT operating system fault-tolerant (FT) partition.</td>
 </tr><tr>
  <td>VALID_NTFT 0xC0</td>
  <td>A valid Windows NT FT partition. The high bit of a partition type code indicates that a partition is part of an NTFT mirror or striped array.</td>
 </tr></tbody></table>
</dd></dl><p><b>isActive:</b>  Boolean value that
indicates whether the partition is active. The partition MUST be marked as
active in order for the BIOS to start from the partition on x86 and x64
platforms.</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>Partition is not active.</td>
 </tr><tr>
  <td>TRUE 1</td>
  <td>Partition is active.</td>
 </tr></tbody></table>
</dd></dl><p><b>partitionType:</b>  Windows NT partition
style for the disk. This field contains one of the following values.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>PARTITION_BASIC_DATA_GUID ebd0a0a2-b9e5-4433-87c0-68b6b72699c7</td>
  <td>The data partition type that is created and recognized by Windows.</td>
 </tr><tr>
  <td>PARTITION_ENTRY_UNUSED_GUID 00000000-0000-0000-0000-000000000000</td>
  <td>There is no partition.</td>
 </tr><tr>
  <td>PARTITION_SYSTEM_GUID c12a7328-f81f-11d2-ba4b-00a0c93ec93b</td>
  <td>The partition is an Extensible Firmware Interface (EFI) system partition.</td>
 </tr><tr>
  <td>PARTITION_MSFT_RESERVED_GUID e3c9e316-0b5c-4db8-817d-f92df00215ae</td>
  <td>The partition is a Microsoft reserved partition.</td>
 </tr><tr>
  <td>PARTITION_LDM_METADATA_GUID 5808c8aa-7e8f-42e0-85d2-e1e90434cfb3</td>
  <td>The partition is an LDM metadata partition on a dynamic disk.</td>
 </tr><tr>
  <td>PARTITION_LDM_DATA_GUID af9b60a0-1431-4f62-bc68-3311714a69ad</td>
  <td>The partition is an LDM data partition on a dynamic disk.</td>
 </tr><tr>
  <td>PARTITION_MSFT_RECOVERY_GUID de94bba4-06d1-4d40-a16a-bfd50179d6ac</td>
  <td>The partition is a Microsoft recovery partition.</td>
 </tr></tbody></table>
</dd></dl><p><b>partitionId:</b>  A <span><a href="../ms-dtyp/49e490b8-f972-45d6-a3a4-99f924998d97" data-linktype="relative-path">GUID</a></span>
that uniquely identifies a partition on a disk.</p><p><b>attributes:</b>  Bitmap of partition <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_425bcab9-7911-4eae-b414-624b7a51eb5f" data-linktype="relative-path">flags</a></span>.<a id="Appendix_A_Target_10"></a><a aria-label="Product behavior note 10" href="5f5043a3-9e6d-40cc-a05b-1a4a3617df32#Appendix_A_10" data-linktype="relative-path">&lt;10&gt;</a></p><p><b>status:</b>  Value from the <span><a href="cea81200-e262-4b51-8624-990e4d36e799" data-linktype="relative-path">REGIONSTATUS</a></span>
enumeration that indicates the <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_a6ad00bd-9921-4266-9410-fe2325bbd503" data-linktype="relative-path">region&#39;s status</a></span>.</p><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 region.</p><p><b>taskId:</b>   This <span><a href="eec70191-9e68-471a-9974-9f62947291ef" data-linktype="relative-path">LdmObjectId</a></span>
is the task identifier of the associated user request. If no request is made,
the value MUST be 0.</p><p><b>rflags:</b>  Bitmap of <span><a href="3c91641b-e5cd-409e-a445-2e4d61ae33c6#gt_0891007f-6974-44c8-94e3-22771c5a1bc3" data-linktype="relative-path">region
flags</a></span>. The value of this field is generated by combining zero or
more of the applicable flags 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>REGION_FORMAT_IN_PROGRESS 0x00000001</td>
  <td>Region is currently being formatted.</td>
 </tr><tr>
  <td>REGION_IS_SYSTEM_PARTITION 0x00000002</td>
  <td>Region contains the system directory. The system directory has the operating system installed on it. This is not necessarily the &#34;active&#34; partition that contains the boot loader file.</td>
 </tr><tr>
  <td>REGION_HAS_PAGEFILE 0x00000004</td>
  <td>Region contains the paging file.</td>
 </tr><tr>
  <td>REGION_HAD_BOOT_INI 0x00000040</td>
  <td>Boot.ini file was located in this region when the operating system was last started. This is the &#34;active&#34; partition that contains the boot loader file.</td>
 </tr><tr>
  <td>REGION_HIDDEN 0x00040000</td>
  <td>This region is part of a volume that is not accessible through any user-available path names.&lt;11&gt;</td>
 </tr></tbody></table>
</dd></dl><p><b>currentPartitionNumber:</b>  Number of
the partition on the region, if any.</p><p><b>cchName:</b>   Length of the region&#39;s
name, including the terminating null character.</p><p><b>name:</b>   Null-terminated name of the
region.</p></div>