Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
873 B

/*++
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;
}