#include "precomp.h"
#include <setjmp.h>
#include <time.h>
Go to the source code of this file.
◆ check()
Definition at line 72 of file NtContinue.c.
73{
74#ifdef _M_IX86
77
78
79 ok((pContext->
SegGs & NTC_SEGMENT_BITS) ==
82
83 ok((pContext->
SegFs & NTC_SEGMENT_BITS) ==
86
87 ok((pContext->
SegEs & NTC_SEGMENT_BITS) ==
90
91 ok((pContext->
SegDs & NTC_SEGMENT_BITS) ==
94
95
108
109
116
117 ok((pContext->
SegCs & NTC_SEGMENT_BITS) ==
120
121 ok((pContext->
EFlags & NTC_EFLAGS_BITS) ==
124
125 ok((pContext->
SegSs & NTC_SEGMENT_BITS) ==
128#else
138
170
171
172 ((_JUMP_BUFFER*)&
jmpbuf)->Frame = 0;
173#endif
174
175
177}
static CONTEXT continueContext
#define ok_eq_hex(value, expected)
#define ok_eq_hex64(value, expected)
#define ok_eq_xmm(value, expected)
◆ continuePoint()
◆ initrand()
Definition at line 28 of file NtContinue.c.
29{
30 unsigned int nRandMax;
31 unsigned int nRandMaxBits;
33
35 for(nRandMaxBits = 0; nRandMax != 0; nRandMax >>= 1, ++ nRandMaxBits);
37
39 return 1;
40}
static unsigned int nRandBytes
void __cdecl srand(_In_ unsigned int _Seed)
Referenced by START_TEST().
◆ randbytes()
Definition at line 42 of file NtContinue.c.
43{
47
48 b = (
unsigned char *)
p;
49 for(
i = 0;
i <
n; ++
i)
50 {
55 }
56}
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
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
_Check_return_ int __cdecl rand(void)
Referenced by randULONG().
◆ randULONG()
◆ START_TEST()
Definition at line 179 of file NtContinue.c.
180{
182
184
185
187 {
189
191
194
195#ifdef _M_IX86
197
198
206
207
209
210
213
214
216
217
218#elif defined(_M_AMD64)
220
221
224 {
225 Registers[
i] = randULONG64();
226 }
227
228
231 {
232 Registers[
i] = randULONG64();
233 }
234
241
242
244
245
248
249
251#endif
252
254 ok(0,
"should never get here\n");
255 }
256
257
258 return;
259}
#define ALIGN_DOWN_BY(size, align)
static ULONG randULONG(void)
static int initrand(void)
BOOL WINAPI GetThreadContext(IN HANDLE hThread, OUT LPCONTEXT lpContext)
#define RtlFillMemory(Dest, Length, Fill)
unsigned __int64 * PULONG64
#define CONTEXT_DEBUG_REGISTERS
NTSTATUS NTAPI NtContinue(_In_ PCONTEXT Context, _In_ BOOLEAN TestAlert)
HANDLE WINAPI GetCurrentThread(void)
◆ continueContext
◆ jmpbuf
◆ nRandBytes