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.
 
 
 
 
 
 

47 lines
904 B

/*++
Copyright (C) 1999 Microsoft Coporation
Module Name:
readdb.c
Abstract:
This module reads the configuration from the db into MM data
structures for whistler+
--*/
#include <precomp.h>
DWORD
DhcpeximReadDatabaseConfiguration(
IN OUT PM_SERVER *Server
)
{
DWORD Error;
HMODULE hDll;
FARPROC pDhcpOpenAndReadDatabaseConfig;
hDll = LoadLibrary(TEXT("DHCPSSVC.DLL"));
if( NULL == hDll ) return GetLastError();
pDhcpOpenAndReadDatabaseConfig = GetProcAddress(
hDll, "DhcpOpenAndReadDatabaseConfig" );
if( NULL == pDhcpOpenAndReadDatabaseConfig ) {
Error = GetLastError();
} else {
Error = (DWORD)pDhcpOpenAndReadDatabaseConfig(
DhcpEximOemDatabaseName, DhcpEximOemDatabasePath,
Server );
}
FreeLibrary(hDll);
return Error;
}