ReactOS  0.4.14-dev-376-gaedba84
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 }
LONG NTSTATUS
Definition: precomp.h:26
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)
Status
Definition: gdiplustypes.h:24
#define STATUS_ACCESS_VIOLATION
Definition: ntstatus.h:228
#define ok_eq_hex(value, expected)

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