ReactOS 0.4.15-dev-6057-gd708c79
NtCreateThread.c File Reference
#include "precomp.h"
Include dependency graph for NtCreateThread.c:

Go to the source code of this file.

Functions

 START_TEST (NtCreateThread)
 

Function Documentation

◆ START_TEST()

START_TEST ( NtCreateThread  )

Definition at line 10 of file NtCreateThread.c.

11{
13 INITIAL_TEB InitialTeb;
14 HANDLE ThreadHandle;
16
18 ZeroMemory(&InitialTeb, sizeof(INITIAL_TEB));
19
20 Status = NtCreateThread(&ThreadHandle,
21 0,
24 NULL,
25 (PCONTEXT)0x70000000, /* Aligned usermode address */
26 &InitialTeb,
27 FALSE);
28
30}
#define ok_hex(expression, result)
Definition: atltest.h:94
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
Status
Definition: gdiplustypes.h:25
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106
#define NtCurrentProcess()
Definition: nt_native.h:1657
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)
#define STATUS_ACCESS_VIOLATION
Definition: ntstatus.h:242
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
#define ZeroMemory
Definition: winbase.h:1670