2005-01-06 13:58:04 +00:00
|
|
|
/* $Id$
|
2000-09-05 23:03:09 +00:00
|
|
|
*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
|
|
|
* FILE: lib/advapi32/misc/dllmain.c
|
|
|
|
* PURPOSE: Library main function
|
|
|
|
* PROGRAMMER: ???
|
|
|
|
* UPDATE HISTORY:
|
|
|
|
* Created ???
|
|
|
|
*/
|
|
|
|
|
2004-08-15 17:03:15 +00:00
|
|
|
#include "advapi32.h"
|
2001-06-17 20:20:21 +00:00
|
|
|
#define NDEBUG
|
2002-09-08 10:23:54 +00:00
|
|
|
#include <debug.h>
|
|
|
|
|
2003-02-02 19:27:17 +00:00
|
|
|
extern BOOL RegInitialize(VOID);
|
|
|
|
extern BOOL RegCleanup(VOID);
|
2000-09-05 23:03:09 +00:00
|
|
|
|
2001-06-17 20:20:21 +00:00
|
|
|
INT STDCALL
|
|
|
|
DllMain(PVOID hinstDll,
|
|
|
|
ULONG dwReason,
|
|
|
|
PVOID reserved)
|
1999-05-19 16:43:30 +00:00
|
|
|
{
|
2001-06-17 20:20:21 +00:00
|
|
|
switch (dwReason)
|
|
|
|
{
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
DisableThreadLibraryCalls(hinstDll);
|
|
|
|
RegInitialize();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
RegCleanup();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
1999-05-19 16:43:30 +00:00
|
|
|
}
|
2002-09-08 10:23:54 +00:00
|
|
|
|
2000-09-05 23:03:09 +00:00
|
|
|
/* EOF */
|