4.7 Deleting a Multicast Scope from a DHCP Server
In this example a DHCP server has a multicast scope defined. This example illustrates how to delete a multicast scope from a DHCP server.
The client calls the RPC method R_DhcpDeleteMScope (section 3.2.4.8) with the following parameters:
An endpoint of the DHCP server as the server IP address. This parameter is optional and can be passed as a pointer to a null Unicode string.
The name of multicast scope is set as the subnet preference. An example of an MScopeName parameter is a pointer to a WCHAR initialized with "IPv4 Multicast Scope Example".
A flag specifying whether to delete the multicast scope if it has leased out an address to MADCAP clients. In this example, the ForceFlag parameter is set to DhcpFullForce. As a result, the IPv4 multicast subnet is deleted along with the MADCAP client's record on the MADCAP server.
The call to this RPC method will return either ERROR_SUCCESS or an error code between 20000 and 20099.