ReactOS
0.4.16-dev-1470-gfbd70c8
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 "
ntdll_vista.h
"
2
3
NTSTATUS
4
NTAPI
5
RtlpInitializeLocaleTable
(
VOID
);
6
7
BOOL
8
WINAPI
9
DllMain
(
HANDLE
hDll,
10
DWORD
dwReason
,
11
LPVOID
lpReserved
)
12
{
13
NTSTATUS
Status
;
14
15
if
(
dwReason
==
DLL_PROCESS_ATTACH
)
16
{
17
LdrDisableThreadCalloutsForDll
(hDll);
18
RtlpInitializeKeyedEvent
();
19
Status
=
RtlpInitializeLocaleTable
();
20
if
(!
NT_SUCCESS
(
Status
))
21
{
22
RtlpCloseKeyedEvent
();
23
return
FALSE
;
24
}
25
}
26
else
if
(
dwReason
==
DLL_PROCESS_DETACH
)
27
{
28
RtlpCloseKeyedEvent
();
29
}
30
return
TRUE
;
31
}
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
LdrDisableThreadCalloutsForDll
NTSTATUS NTAPI LdrDisableThreadCalloutsForDll(_In_ PVOID BaseAddress)
Definition:
ldrapi.c:1154
dwReason
DWORD dwReason
Definition:
misc.cpp:135
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
NT_SUCCESS
#define NT_SUCCESS(StatCode)
Definition:
apphelp.c:33
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
Status
Status
Definition:
gdiplustypes.h:25
void
Definition:
nsiface.idl:2307
RtlpInitializeLocaleTable
NTSTATUS NTAPI RtlpInitializeLocaleTable(VOID)
Definition:
locale.c:529
DllMain
BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
Definition:
DllMain.c:9
ntdll_vista.h
RtlpCloseKeyedEvent
VOID NTAPI RtlpCloseKeyedEvent(VOID)
Definition:
condvar.c:468
RtlpInitializeKeyedEvent
VOID NTAPI RtlpInitializeKeyedEvent(VOID)
Definition:
condvar.c:460
NTAPI
#define NTAPI
Definition:
typedefs.h:36
WINAPI
#define WINAPI
Definition:
msvc.h:6
lpReserved
_In_ DWORD _In_ int _In_ int _In_opt_ LPNLSVERSIONINFO _In_opt_ LPVOID lpReserved
Definition:
winnls.h:1199
dll
ntdll
nt_0600
DllMain.c
Generated on Fri Jul 4 2025 06:03:49 for ReactOS by
1.9.6