L
Leventon
I really need help with this.
I'm running on windows 200 server.
I did everything as explained but when I start the DHCP server I get
the following warning message in the system event log:
"The DHCP service has failed to load one or more callout DLLs. The
following error occurred: The specified procedure could not be found."
The code that I'm using for the DLL is:
#include "stdafx.h"
#include <Dhcpssdk.h>
#ifdef __cplusplus
extern "C" {
#endif
DWORD CALLBACK DhcpControlHookTest(DWORD dwControlCode,
LPVOID lpReserved)
{
return 0;
}
DWORD CALLBACK DhcpServerCalloutEntry(LPWSTR ChainDlls,
DWORD CalloutVersion,
LPDHCP_CALLOUT_TABLE CalloutTbl)
{
CalloutTbl->DhcpControlHook = DhcpControlHookTest;
return 0;
}
#ifdef __cplusplus
}
#endif
I'm running on windows 200 server.
I did everything as explained but when I start the DHCP server I get
the following warning message in the system event log:
"The DHCP service has failed to load one or more callout DLLs. The
following error occurred: The specified procedure could not be found."
The code that I'm using for the DLL is:
#include "stdafx.h"
#include <Dhcpssdk.h>
#ifdef __cplusplus
extern "C" {
#endif
DWORD CALLBACK DhcpControlHookTest(DWORD dwControlCode,
LPVOID lpReserved)
{
return 0;
}
DWORD CALLBACK DhcpServerCalloutEntry(LPWSTR ChainDlls,
DWORD CalloutVersion,
LPDHCP_CALLOUT_TABLE CalloutTbl)
{
CalloutTbl->DhcpControlHook = DhcpControlHookTest;
return 0;
}
#ifdef __cplusplus
}
#endif