2.2.7.2.5 DNS_RPC_ENLIST_DP

The DNS_RPC_ENLIST_DP structure contains the information required to create, delete, or enumerate application directory partitions.<60>

 typedef struct _DnssrvRpcEnlistDirPart {
   DWORD dwRpcStructureVersion;
   DWORD dwReserved0;
   [string] char* pszDpFqdn;
   DWORD dwOperation;
 } DNS_RPC_ENLIST_DP,
  *PDNS_RPC_ENLIST_DP;

dwRpcStructureVersion: The DNS management structure version number; this value MUST be set to 0x00000001.

dwReserved0: As specified in section 2.2.7.2.1.

pszDpFqdn: As specified in section 2.2.7.2.1.

dwOperation: The application directory partition operation to be performed by the DNS server; this MUST be set to one of the following values:

Value

Meaning

DNS_DP_OP_CREATE

0x00000001

Create and enlist (DNS_DP_OP_ENLIST) a new application directory partition.

DNS_DP_OP_DELETE

0x00000002

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 2.2.7.1.1, or if the DNS server cannot connect and bind to the FSMO role owner, then the server MUST return an error.

DNS_DP_OP_ENLIST

0x00000003

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.

DNS_DP_OP_UNENLIST

0x00000004

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.

DNS_DP_OP_CREATE_DOMAIN

0x00000005

Create a domain partition on the directory server if one does not already exist.

DNS_DP_OP_CREATE_FOREST

0x00000006

Create a forest partition on the directory server if it does not already exist.