ReactOS
0.4.16-dev-41-ge8c7597
dllmain.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS system libraries
4
* FILE: lib/advapi32/misc/dllmain.c
5
* PURPOSE: Library main function
6
* PROGRAMMER: ???
7
* UPDATE HISTORY:
8
* Created ???
9
*/
10
11
#include <
advapi32.h
>
12
13
extern
BOOL
RegInitialize
(
VOID
);
14
extern
BOOL
RegCleanup
(
VOID
);
15
extern
VOID
UnloadNtMarta
(
VOID
);
16
extern
VOID
CloseKsecDdHandle
(
VOID
);
17
18
BOOL
19
WINAPI
20
DllMain
(
21
HINSTANCE
hinstDll,
22
DWORD
dwReason
,
23
LPVOID
reserved
)
24
{
25
switch
(
dwReason
)
26
{
27
case
DLL_PROCESS_ATTACH
:
28
DisableThreadLibraryCalls
(hinstDll);
29
RegInitialize
();
30
break
;
31
32
case
DLL_PROCESS_DETACH
:
33
CloseLogonLsaHandle
();
34
RegCleanup
();
35
UnloadNtMarta
();
36
CloseKsecDdHandle
();
37
break
;
38
}
39
40
return
TRUE
;
41
}
42
43
/* EOF */
advapi32.h
CloseLogonLsaHandle
NTSTATUS CloseLogonLsaHandle(VOID)
Definition:
logon.c:75
dwReason
DWORD dwReason
Definition:
misc.cpp:141
TRUE
#define TRUE
Definition:
types.h:120
DllMain
BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
Definition:
dllmain.c:52
CloseKsecDdHandle
VOID CloseKsecDdHandle(VOID)
Definition:
sysfunc.c:682
UnloadNtMarta
VOID UnloadNtMarta(VOID)
Definition:
misc.c:116
RegInitialize
BOOL RegInitialize(VOID)
Definition:
reg.c:70
RegCleanup
BOOL RegCleanup(VOID)
Definition:
reg.c:93
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DLL_PROCESS_DETACH
#define DLL_PROCESS_DETACH
Definition:
compat.h:130
DisableThreadLibraryCalls
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition:
loader.c:85
reserved
r reserved
Definition:
btrfs.c:3006
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
WINAPI
#define WINAPI
Definition:
msvc.h:6
dll
win32
advapi32
misc
dllmain.c
Generated on Wed Sep 18 2024 06:14:30 for ReactOS by
1.9.6