4.15 Deleting a Client Subnet Record

The following example describes how to delete the client subnet record "Europe" created in Creating a Client Subnet Record (section 4.14).

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 client subnet record is to be deleted.

  • NULL as the value of pszZone.

  • Zero as the context.

  • DeleteClientSubnetRecord as the operation.

  • DNSSRV_TYPEID_LPWSTR as the type ID.

  • A null-terminated Unicode string containing the name of the client subnet record to be deleted ("Europe") as pData.

The DNS server returns ERROR_SUCCESS if the operation is successful or a Windows error code if the operation fails.