ReactOS
0.4.16-dev-289-g096a551
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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 Fri Nov 22 2024 06:14:52 for ReactOS by
1.9.6