DhcpServerRedoAuthorization function

The DhcpServerRedoAuthorization function attempts to determine whether the DHCP server is authorized and restores leasing operations if it is not.

Syntax


DWORD DhcpServerRedoAuthorization(
  _In_ LPWSTR ServerIpAddr,
  _In_ ULONG  dwReserved
);

Parameters

ServerIpAddr [in]

Unicode string that specifies the IP address or hostname of the DHCP server.

dwReserved [in]

Reserved. This parameter should be set to 0.

Return value

This function returns ERROR_SUCCESS upon a successful call. Otherwise, it returns one of the DHCP Server Management API Error Codes.

Remarks

An "authorized" DHCP server is a server currently leasing IP addresses for the subnets it has been set to administer. If a DHCP server has stopped leasing addresses, calling this method attempts to "redo" the authorization, and if ERROR_SUCCESS is returned, IP address leasing resumes.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

 

 

Show: