LPDHCP_DELETE_CLIENT callback function (dhcpssdk.h)

The DhcpDeleteClientHook function is called by Microsoft DHCP Server directly before a client lease is deleted from the active leases database.

The DhcpDeleteClientHook function should not block.

Syntax

LPDHCP_DELETE_CLIENT LpdhcpDeleteClient;

DWORD LpdhcpDeleteClient(
  [in] DWORD IpAddress,
  [in] LPBYTE HwAddress,
  [in] ULONG HwAddressLength,
  [in] DWORD Reserved,
  [in] DWORD ClientType
)
{...}

Parameters

[in] IpAddress

Internet Protocol (IP) address of the client lease being deleted. The IP address is in host order.

[in] HwAddress

Buffer holding the Hardware address of the client, often referred to as the MAC address.

[in] HwAddressLength

Length of the HwAddress buffer, in bytes.

[in] Reserved

Reserved for future use.

[in] ClientType

Reserved for future use.

Return value

Return values are defined by the application providing the callback.

Remarks

The DhcpDeleteClientHook function should not block.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header dhcpssdk.h

See also

DHCP_CALLOUT_TABLE