ReactOS  0.4.14-dev-323-g6fe6a88
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
17 {
19 
20  Status = ZwWaitForMultipleObjects(2, (void **)0x42424242, WaitAll, FALSE, NULL);
22 }
23 
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 }
#define IN
Definition: typedefs.h:38
PKTHREAD KmtStartThread(IN PKSTART_ROUTINE StartRoutine, IN PVOID StartContext OPTIONAL)
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
smooth NULL
Definition: ftsmooth.c:416
NTSYSAPI NTSTATUS NTAPI ZwWaitForMultipleObjects(_In_ ULONG Count, _In_ HANDLE Object[], _In_ WAIT_TYPE WaitType, _In_ BOOLEAN Alertable, _In_ PLARGE_INTEGER Time)
static VOID NTAPI KernelModeTest(IN PVOID Context)
Definition: ObWait.c:16
VOID KmtFinishThread(IN PKTHREAD Thread OPTIONAL, IN PKEVENT Event OPTIONAL)
Status
Definition: gdiplustypes.h:24
#define STATUS_ACCESS_VIOLATION
Definition: ntstatus.h:228
#define ok_eq_hex(value, expected)
START_TEST(ZwWaitForMultipleObjects)
Definition: ObWait.c:24