ReactOS
0.4.16-dev-814-g656a5dc
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
ObWait.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS kernel-mode tests
3
* LICENSE: GPLv2+ - See COPYING in the top level directory
4
* PURPOSE: Kernel-Mode Test Suite *WaitForMultipleObjects
5
* PROGRAMMER: Pierre Schweitzer <thomas.faber@reactos.org>
6
*/
7
8
#include <
kmt_test.h
>
9
10
#define NDEBUG
11
#include <debug.h>
12
13
static
14
VOID
15
NTAPI
16
KernelModeTest
(
IN
PVOID
Context
)
17
{
18
NTSTATUS
Status
;
19
20
Status
=
ZwWaitForMultipleObjects
(2, (
void
**)0x42424242,
WaitAll
,
FALSE
,
NULL
);
21
ok_eq_hex
(
Status
,
STATUS_ACCESS_VIOLATION
);
22
}
23
24
START_TEST
(
ZwWaitForMultipleObjects
)
25
{
26
PKTHREAD
ThreadHandle;
27
28
/* We've to be in kernel mode, so spawn a thread */
29
ThreadHandle =
KmtStartThread
(
KernelModeTest
,
NULL
);
30
KmtFinishThread
(ThreadHandle,
NULL
);
31
}
KernelModeTest
static VOID NTAPI KernelModeTest(IN PVOID Context)
Definition:
ObWait.c:16
ok_eq_hex
#define ok_eq_hex(value, expected)
Definition:
apitest.h:58
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
NULL
#define NULL
Definition:
types.h:112
FALSE
#define FALSE
Definition:
types.h:117
Status
Status
Definition:
gdiplustypes.h:25
void
Definition:
nsiface.idl:2307
kmt_test.h
KmtStartThread
PKTHREAD KmtStartThread(IN PKSTART_ROUTINE StartRoutine, IN PVOID StartContext OPTIONAL)
Definition:
kmt_test_kernel.h:136
KmtFinishThread
VOID KmtFinishThread(IN PKTHREAD Thread OPTIONAL, IN PKEVENT Event OPTIONAL)
Definition:
kmt_test_kernel.h:171
ZwWaitForMultipleObjects
NTSYSAPI NTSTATUS NTAPI ZwWaitForMultipleObjects(_In_ ULONG Count, _In_ HANDLE Object[], _In_ WAIT_TYPE WaitType, _In_ BOOLEAN Alertable, _In_ PLARGE_INTEGER Time)
WaitAll
@ WaitAll
Definition:
ntdef.template.h:366
STATUS_ACCESS_VIOLATION
#define STATUS_ACCESS_VIOLATION
Definition:
ntstatus.h:242
Context
Definition:
compobj.c:4795
_KTHREAD
Definition:
ketypes.h:1660
NTAPI
#define NTAPI
Definition:
typedefs.h:36
IN
#define IN
Definition:
typedefs.h:39
modules
rostests
kmtests
ntos_ob
ObWait.c
Generated on Thu Mar 13 2025 06:08:55 for ReactOS by
1.9.6