reactos/dll/win32/advapi32/misc/dllmain.c
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

42 lines
858 B
C

/*
* 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 ???
*/
#include <advapi32.h>
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
extern BOOL RegInitialize(VOID);
extern BOOL RegCleanup(VOID);
extern VOID UnloadNtMarta(VOID);
BOOL
WINAPI
DllMain(
HINSTANCE hinstDll,
DWORD dwReason,
LPVOID reserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDll);
RegInitialize();
break;
case DLL_PROCESS_DETACH:
CloseLogonLsaHandle();
RegCleanup();
UnloadNtMarta();
break;
}
return TRUE;
}
/* EOF */