DHCP Server Service
6-10
Open a DHCP Server
DHCPSOpen
Syntax
HANDLE DHCPSOpen( NTARGS *pNTA, NTPARAM_DHCPS *pNTP );
Parameter(s)
pNTA
Pointer to common argument structure used by all services
pNTP
Pointer to DHCP server parameter structure
Return Value
Returns a HANDLE to a DHCPS instance structure which is used in calls to
other DHCPS functions like DHCPSClose().
Description
This function is called to initiate DHCPS control of an IP address pool on a giv-
en interface. The base address of the address pool does not have to be the
first IP address in the subnet.
The DHCP Server executes on a specific interface. Thus, it is compatible
with NT_MODE_IFIDX only.
Closes an Instance of the DHCP Server
DHCPSClose
Syntax
void DHCPSClose( HANDLE hDHCPS );
Parameter(s)
hDHCPS
Handle to a DHCP server instance obtained from DHCPSO-
pen()
Return Value
nothing
Description
This function is called to terminate DHCPS control of the previously supplied
interface. This call also destroys the supplied DHCP server instance handle
hDHCPS.