2 * PROJECT: ReactOS api tests
3 * LICENSE: See COPYING in the top level directory
4 * PURPOSE: Test for NtCreateThread
5 * PROGRAMMER: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
8 #define WIN32_NO_STATUS
10 #include <ndk/pstypes.h>
11 #include <ndk/psfuncs.h>
13 START_TEST(NtCreateThread
)
16 INITIAL_TEB InitialTeb
;
18 OBJECT_ATTRIBUTES Attributes
;
20 InitializeObjectAttributes(&Attributes
, NULL
, 0, NULL
, NULL
);
21 ZeroMemory(&InitialTeb
, sizeof(INITIAL_TEB
));
23 Status
= NtCreateThread(&ThreadHandle
,
28 (PCONTEXT
)0x70000000, /* Aligned usermode address */
32 ok_hex(Status
, STATUS_ACCESS_VIOLATION
);