4.12 Deleting a Policy
The following example describes how to delete the server level policy named "DenyAllQueryForContosso.com" previously created.
The client calls R_DnssrvOperation (section 3.1.4.1) and provides the following parameters:
A Unicode string containing the FQDN of the DNS server on which the policy is to be deleted.
NULL as the value of pszZone.
Zero as the context.
DeletePolicy as the operation.
DNSSRV_TYPEID_LPWSTR as the type ID.
A null-terminated Unicode string containing the name of the policy to be deleted ("DenyAllQueryForContosso.com") as pData.
The DNS server returns ERROR_SUCCESS if the operation was successful or a Windows error code if the operation fails.