127{
136
139
142
144 0,
149 &InitialTeb,
151
153
154 InitialTeb.PreviousStackBase =
NULL;
155 InitialTeb.PreviousStackLimit =
NULL;
156 InitialTeb.StackBase = StackPtr;
157 InitialTeb.StackLimit =
Stack;
158 InitialTeb.AllocatedStackBase =
Stack;
159
161
163 InitializeTestContext(&
Context);
164
171 &InitialTeb,
174
178
180 TestThreadFunctionCalled =
FALSE;
181
182#ifdef _M_AMD64
183
184
189
190
206
207
212
213
229 {
232 }
235 {
238 }
240 {
243 }
244
245
252
253#elif defined(_M_IX86)
254
255
258
259
267
268
275
276
284
285
292
293#else
294
295#pragma message("Missing CONTEXT validation in NtCreateThread test")
297
298#endif
299
300#if defined(_M_AMD64) || defined(_M_IX86)
301
310 &InitialTeb,
317#endif
318
319#if !defined(_M_IX86)
320
321 InitialTeb.PreviousStackBase =
Stack;
322 InitialTeb.PreviousStackLimit =
NULL;
329 &InitialTeb,
332
333 InitialTeb.PreviousStackBase =
NULL;
334 InitialTeb.PreviousStackLimit =
Stack;
341 &InitialTeb,
344#endif
345}
VOID NTAPI TestThreadProc(IN PVOID StartContext)
CONTEXT TestThreadStartupContext
#define ok_eq_hex(value, expected)
#define ok_eq_hex64(value, expected)
#define ok_eq_bool(value, expected)
#define ok_hex(expression, result)
#define STATUS_NOT_SUPPORTED
#define GetCurrentProcess()
#define DECLSPEC_ALIGN(x)
#define STATUS_ACCESS_VIOLATION
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define InitializeObjectAttributes(p, n, a, r, s)
#define THREAD_ALL_ACCESS
#define NtCurrentProcess()
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)
NTSTATUS NTAPI NtResumeThread(IN HANDLE ThreadHandle, OUT PULONG SuspendCount OPTIONAL)
#define _WIN32_WINNT_WIN10
FLOATING_SAVE_AREA FloatSave
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
_Out_ PCLIENT_ID ClientId