ReactOS  0.4.14-dev-376-gaedba84
NtCreateThread.c
Go to the documentation of this file.
1 /*
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>
6  */
7 
8 #include "precomp.h"
9 
11 {
13  INITIAL_TEB InitialTeb;
14  HANDLE ThreadHandle;
16 
18  ZeroMemory(&InitialTeb, sizeof(INITIAL_TEB));
19 
20  Status = NtCreateThread(&ThreadHandle,
21  0,
22  &Attributes,
24  NULL,
25  (PCONTEXT)0x70000000, /* Aligned usermode address */
26  &InitialTeb,
27  FALSE);
28 
30 }
NTSYSAPI NTSTATUS NTAPI NtCreateThread(OUT PHANDLE phThread, IN ACCESS_MASK AccessMask, IN POBJECT_ATTRIBUTES ObjectAttributes, IN HANDLE hProcess, OUT PCLIENT_ID pClientId, IN PCONTEXT pContext, OUT PSTACKINFO pStackInfo, IN BOOLEAN bSuspended)
LONG NTSTATUS
Definition: precomp.h:26
#define ZeroMemory
Definition: winbase.h:1642
#define ok_hex(expression, result)
Definition: atltest.h:94
START_TEST(NtCreateThread)
smooth NULL
Definition: ftsmooth.c:416
#define NtCurrentProcess()
Definition: nt_native.h:1657
Status
Definition: gdiplustypes.h:24
_Must_inspect_result_ _In_ USHORT _In_ PHIDP_PREPARSED_DATA _Out_writes_to_ LengthAttributes PHIDP_EXTENDED_ATTRIBUTES Attributes
Definition: hidpi.h:348
#define STATUS_ACCESS_VIOLATION
Definition: ntstatus.h:228
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106