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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for