ReactOS
0.4.16-dev-1063-gd722e70
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
main.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Setup Library
3
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4
* PURPOSE: DLL Main Routine
5
* COPYRIGHT: Copyright 2025 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
6
*/
7
8
/* INCLUDES ******************************************************************/
9
10
/* PSDK/NDK Headers */
11
#define WIN32_NO_STATUS
12
#include <
windef.h
>
13
#include <
winbase.h
>
14
15
#define NTOS_MODE_USER
16
// #include <ndk/umfuncs.h>
17
#include <
ndk/rtlfuncs.h
>
18
19
/* GLOBALS *******************************************************************/
20
21
extern
HANDLE
ProcessHeap
;
22
23
/* ENTRY-POINT ***************************************************************/
24
25
/* Declared in ndk/umfuncs.h */
26
NTSTATUS
27
NTAPI
28
LdrDisableThreadCalloutsForDll
(
29
_In_
PVOID
BaseAddress
);
30
31
BOOL
32
NTAPI
33
DllMain
(
34
_In_
HINSTANCE
hDll,
35
_In_
ULONG
dwReason
,
36
_In_opt_
PVOID
pReserved)
37
{
38
UNREFERENCED_PARAMETER
(pReserved);
39
40
if
(
dwReason
==
DLL_PROCESS_ATTACH
)
41
{
42
LdrDisableThreadCalloutsForDll
(hDll);
43
ProcessHeap
= RtlGetProcessHeap();
44
}
45
46
return
TRUE
;
47
}
48
49
/* EOF */
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
ProcessHeap
HANDLE ProcessHeap
Definition:
servman.c:15
LdrDisableThreadCalloutsForDll
NTSTATUS NTAPI LdrDisableThreadCalloutsForDll(_In_ PVOID BaseAddress)
Definition:
ldrapi.c:1154
DllMain
BOOL NTAPI DllMain(_In_ HINSTANCE hDll, _In_ ULONG dwReason, _In_opt_ PVOID pReserved)
Definition:
main.c:33
dwReason
DWORD dwReason
Definition:
misc.cpp:135
TRUE
#define TRUE
Definition:
types.h:120
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
void
Definition:
nsiface.idl:2307
BaseAddress
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
Definition:
mmfuncs.h:404
rtlfuncs.h
_In_
#define _In_
Definition:
no_sal2.h:158
_In_opt_
#define _In_opt_
Definition:
no_sal2.h:212
UNREFERENCED_PARAMETER
#define UNREFERENCED_PARAMETER(P)
Definition:
ntbasedef.h:325
NTAPI
#define NTAPI
Definition:
typedefs.h:36
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
winbase.h
windef.h
base
setup
lib
main.c
Generated on Thu May 1 2025 06:18:24 for ReactOS by
1.9.6