windows-nt/Source/XPSP1/NT/net/dhcp/server/exim/writedb.c

46 lines
828 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (C) 1999 Microsoft Coporation
Module Name:
writedb.c
Abstract:
This module writes the configuration onto the db for whistler+
--*/
#include <precomp.h>
DWORD
DhcpeximWriteDatabaseConfiguration(
IN PM_SERVER Server
)
{
DWORD Error;
HMODULE hDll;
FARPROC pDhcpOpenAndWriteDatabaseConfig;
hDll = LoadLibrary(TEXT("DHCPSSVC.DLL"));
if( NULL == hDll ) return GetLastError();
pDhcpOpenAndWriteDatabaseConfig = GetProcAddress(
hDll, "DhcpOpenAndWriteDatabaseConfig" );
if( NULL == pDhcpOpenAndWriteDatabaseConfig ) {
Error = GetLastError();
} else {
Error = (DWORD)pDhcpOpenAndWriteDatabaseConfig(
DhcpEximOemDatabaseName, DhcpEximOemDatabasePath,
Server );
}
FreeLibrary(hDll);
return Error;
}