LPDHCP_CONTROL callback function (dhcpssdk.h)

The DhcpControlHook function is called by Microsoft DHCP Server when the DHCP Server service is started, stopped, paused, or continued. The DhcpControlHook is implemented by a third-party DLL that registers for notification of significant Microsoft DHCP Server events. The DhcpControlHook function should not block.

Syntax

LPDHCP_CONTROL LpdhcpControl;

DWORD LpdhcpControl(
  [in] DWORD dwControlCode,
  [in] LPVOID lpReserved
)
{...}

Parameters

[in] dwControlCode

Specifies the control event that triggered the notification. This parameter will be one of the following:

  • DHCP_CONTROL_START
  • DHCP_CONTROL_STOP
  • DHCP_CONTROL_PAUSE
  • DHCP_CONTROL_CONTINUE

[in] lpReserved

Reserved for future use.

Return value

Return values are defined by the application providing the callback.

Remarks

This routine 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

DhcpServerCalloutEntry

How the DHCP Server API Operates