mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 07:00:19 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
42 lines
858 B
C
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 */
|