mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 23:28:58 +00:00
44 lines
893 B
C
44 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 */
|