<div class="content"><p> </p><p>The <b>DNS_RPC_ENLIST_DP</b> structure contains the
information required to create, delete, or enumerate <span><a href="a95b05da-f1fd-4db3-94b4-817fdaa1f642#gt_68dc613a-d602-41ae-9acc-76ffe97877c4" data-linktype="relative-path">application directory
partitions</a></span>.<a id="Appendix_A_Target_60"></a><a aria-label="Product behavior note 60" href="4a9a3ba3-10eb-430e-b157-1fed0aaf85a5#Appendix_A_60" data-linktype="relative-path">&lt;60&gt;</a></p><dl>
<dd>
<div><pre> typedef struct _DnssrvRpcEnlistDirPart {
   DWORD dwRpcStructureVersion;
   DWORD dwReserved0;
   [string] char* pszDpFqdn;
   DWORD dwOperation;
 } DNS_RPC_ENLIST_DP,
  *PDNS_RPC_ENLIST_DP;
</pre></div>
</dd></dl><p><b>dwRpcStructureVersion:</b> The DNS management
structure version number; this value MUST be set to 0x00000001.</p><p><b>dwReserved0:</b> As specified in section <span><a href="bd2a817d-6a69-40d3-befc-0c198a9c6e80" data-linktype="relative-path">2.2.7.2.1</a></span>.</p><p><b>pszDpFqdn:</b> As specified in section 2.2.7.2.1.</p><p><b>dwOperation:</b> The application directory
partition operation to be performed by the DNS server; this MUST be set to 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>
  <p>DNS_DP_OP_CREATE</p>
  <p>0x00000001</p>
  </td>
  <td>
  <p>Create and enlist (DNS_DP_OP_ENLIST) a new application
  directory partition.</p>
  </td>
 </tr><tr>
  <td>
  <p>DNS_DP_OP_DELETE</p>
  <p>0x00000002</p>
  </td>
  <td>
  <p>Delete an existing application directory partition. If
  the application directory partition has been marked DNS_DP_AUTOCREATED,
  DNS_DP_LEGACY, DNS_DP_DOMAIN_DEFAULT, DNS_DP_FOREST_DEFAULT, or
  DNS_DP_DELETED, as specified in section <span><a href="27e378aa-d4d7-43de-8b34-3e5b957a7130" data-linktype="relative-path">2.2.7.1.1</a></span>, or if
  the DNS server cannot connect and bind to the <span><a href="a95b05da-f1fd-4db3-94b4-817fdaa1f642#gt_de81e9fd-25f5-4e90-aadb-1d35c5e8a06b" data-linktype="relative-path">FSMO role owner</a></span>,
  then the server MUST return an error.</p>
  </td>
 </tr><tr>
  <td>
  <p>DNS_DP_OP_ENLIST</p>
  <p>0x00000003</p>
  </td>
  <td>
  <p>Enlist this DNS server in an existing application
  directory partition. If the application directory partition has been marked
  DNS_DP_ENLISTED or DNS_DP_DELETED, as specified in section 2.2.7.1.1, then
  the DNS server MUST return an error.</p>
  </td>
 </tr><tr>
  <td>
  <p>DNS_DP_OP_UNENLIST</p>
  <p>0x00000004</p>
  </td>
  <td>
  <p>Un-enlist this DNS server from an existing application
  directory partition. If the application directory partition has been marked
  DNS_DP_DELETED, as specified in section 2.2.7.1.1, then the DNS server MUST
  return an error.</p>
  </td>
 </tr><tr>
  <td>
  <p>DNS_DP_OP_CREATE_DOMAIN</p>
  <p>0x00000005</p>
  </td>
  <td>
  <p>Create a domain partition on the <span><a href="a95b05da-f1fd-4db3-94b4-817fdaa1f642#gt_04fd0982-6bb6-44f1-817e-795715049c50" data-linktype="relative-path">directory
  server</a></span> if one does not already exist.</p>
  </td>
 </tr><tr>
  <td>
  <p>DNS_DP_OP_CREATE_FOREST</p>
  <p>0x00000006</p>
  </td>
  <td>
  <p>Create a <span><a href="a95b05da-f1fd-4db3-94b4-817fdaa1f642#gt_fd104241-4fb3-457c-b2c4-e0c18bb20b62" data-linktype="relative-path">forest</a></span> partition
  on the directory server if it does not already exist.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p> </p></div>