ReactOS
0.4.16-dev-533-gc7d1aa3
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
m
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
_
a
b
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
#include <stdarg.h>
2
3
#define WIN32_NO_STATUS
4
5
#include <
windef.h
>
6
#include <
winbase.h
>
7
#include <
winreg.h
>
8
#include <
winuser.h
>
9
#include <
winwlx.h
>
10
#include <
ndk/rtltypes.h
>
11
#include <
ndk/umfuncs.h
>
12
13
#define NDEBUG
14
#include <debug.h>
15
16
VOID
17
NTAPI
18
RtlpInitializeKeyedEvent
(
VOID
);
19
20
VOID
21
NTAPI
22
RtlpCloseKeyedEvent
(
VOID
);
23
24
BOOL
25
WINAPI
26
DllMain
(
HANDLE
hDll,
27
DWORD
dwReason
,
28
LPVOID
lpReserved
)
29
{
30
if
(
dwReason
==
DLL_PROCESS_ATTACH
)
31
{
32
LdrDisableThreadCalloutsForDll
(hDll);
33
RtlpInitializeKeyedEvent
();
34
}
35
else
if
(
dwReason
==
DLL_PROCESS_DETACH
)
36
{
37
RtlpCloseKeyedEvent
();
38
}
39
return
TRUE
;
40
}
lpReserved
static DWORD const LPVOID const lpReserved
Definition:
appcrt_dllmain.cpp:58
dwReason
DWORD dwReason
Definition:
misc.cpp:141
TRUE
#define TRUE
Definition:
types.h:120
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DLL_PROCESS_DETACH
#define DLL_PROCESS_DETACH
Definition:
compat.h:130
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
rtltypes.h
DllMain
BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
Definition:
DllMain.c:26
RtlpCloseKeyedEvent
VOID NTAPI RtlpCloseKeyedEvent(VOID)
Definition:
condvar.c:468
RtlpInitializeKeyedEvent
VOID NTAPI RtlpInitializeKeyedEvent(VOID)
Definition:
condvar.c:460
LdrDisableThreadCalloutsForDll
NTSTATUS NTAPI LdrDisableThreadCalloutsForDll(_In_ PVOID BaseAddress)
Definition:
ldrapi.c:1154
NTAPI
#define NTAPI
Definition:
typedefs.h:36
umfuncs.h
winbase.h
windef.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
winreg.h
winuser.h
winwlx.h
dll
ntdll
nt_0600
DllMain.c
Generated on Sun Jan 19 2025 06:03:45 for ReactOS by
1.9.6