mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 13:25:57 +00:00
43 lines
893 B
C
43 lines
893 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>
|
|
|
|
extern BOOL RegInitialize(VOID);
|
|
extern BOOL RegCleanup(VOID);
|
|
extern VOID UnloadNtMarta(VOID);
|
|
extern VOID CloseKsecDdHandle(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();
|
|
CloseKsecDdHandle();
|
|
break;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
/* EOF */
|