ReactOS 0.4.15-dev-8614-gbc76250
ObWait.c File Reference
#include <kmt_test.h>
#include <debug.h>
Include dependency graph for ObWait.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

static VOID NTAPI KernelModeTest (IN PVOID Context)
 
 START_TEST (ZwWaitForMultipleObjects)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 10 of file ObWait.c.

Function Documentation

◆ KernelModeTest()

static VOID NTAPI KernelModeTest ( IN PVOID  Context)
static

Definition at line 16 of file ObWait.c.

17{
19
20 Status = ZwWaitForMultipleObjects(2, (void **)0x42424242, WaitAll, FALSE, NULL);
22}
#define ok_eq_hex(value, expected)
Definition: apitest.h:77
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
Status
Definition: gdiplustypes.h:25
NTSYSAPI NTSTATUS NTAPI ZwWaitForMultipleObjects(_In_ ULONG Count, _In_ HANDLE Object[], _In_ WAIT_TYPE WaitType, _In_ BOOLEAN Alertable, _In_ PLARGE_INTEGER Time)
@ WaitAll
#define STATUS_ACCESS_VIOLATION
Definition: ntstatus.h:242

Referenced by START_TEST().

◆ START_TEST()

START_TEST ( ZwWaitForMultipleObjects  )

Definition at line 24 of file ObWait.c.

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}
static VOID NTAPI KernelModeTest(IN PVOID Context)
Definition: ObWait.c:16
PKTHREAD KmtStartThread(IN PKSTART_ROUTINE StartRoutine, IN PVOID StartContext OPTIONAL)
VOID KmtFinishThread(IN PKTHREAD Thread OPTIONAL, IN PKEVENT Event OPTIONAL)