43 ok(
hntdll != 0,
"LoadLibrary failed\n");
55#define ULL(a,b) (((ULONGLONG)(a) << 32) | (b))
65 { 3,
ULL(0x55555555,0x55555555), 0, 0},
66 { 333333333,
ULL(0x55555555,0x55555555), 0, 111111110},
67 {
ULL(0x7fffffff,0xffffffff),
ULL(0x55555555,0x55555555), 0,
ULL(0x2aaaaaaa,0xaaaaaaaa)},
68 { 3,
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, 0},
69 { 333333333,
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, 111111110},
70 {
ULL(0x7fffffff,0xffffffff),
ULL(0xaaaaaaaa,0xaaaaaaaa), 1,
ULL(0x2aaaaaaa,0xaaaaaaaa)},
71 { -3,
ULL(0x55555555,0x55555555), 0, 0},
72 { -333333333,
ULL(0x55555555,0x55555555), 0, -111111110},
73 {-
ULL(0x7fffffff,0xffffffff),
ULL(0x55555555,0x55555555), 0, -
ULL(0x2aaaaaaa,0xaaaaaaaa)},
74 { -3,
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, 0},
75 { -333333333,
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, -111111110},
76 {-
ULL(0x7fffffff,0xffffffff),
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, -
ULL(0x2aaaaaaa,0xaaaaaaaa)},
77 { -3, -
ULL(0x55555555,0x55555555), 0, -2},
78 { -333333333, -
ULL(0x55555555,0x55555555), 0, -222222222},
79 {-
ULL(0x7fffffff,0xffffffff), -
ULL(0x55555555,0x55555555), 0, -
ULL(0x55555555,0x55555554)},
80 { -3, -
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, 0},
81 { -333333333, -
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, -55555555},
82 {-
ULL(0x7fffffff,0xffffffff), -
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, -
ULL(0x15555555,0x55555555)},
83 { 3, -
ULL(0x55555555,0x55555555), 0, 2},
84 { 333333333, -
ULL(0x55555555,0x55555555), 0, 222222222},
85 {
ULL(0x7fffffff,0xffffffff), -
ULL(0x55555555,0x55555555), 0,
ULL(0x55555555,0x55555554)},
86 { 3, -
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, 0},
87 { 333333333, -
ULL(0xaaaaaaaa,0xaaaaaaaa), 1, 55555555},
88 {
ULL(0x7fffffff,0xffffffff), -
ULL(0xaaaaaaaa,0xaaaaaaaa), 1,
ULL(0x15555555,0x55555555)},
89 { 3,
ULL(0xaaaaaaaa,0xaaaaa800), 1, 0},
90 { 333333333,
ULL(0xaaaaaaaa,0xaaaaa800), 1, 111111110},
91 {
ULL(0x7fffffff,0xffffffff),
ULL(0xaaaaaaaa,0xaaaaa800), 1,
ULL(0x2aaaaaaa,0xaaaaa9ff)},
92 { 5,
ULL(0x33333333,0x333333ff), 0, 1},
93 { 555555555,
ULL(0x33333333,0x333333ff), 0, 111111111},
94 {
ULL(0x7fffffff,0xffffffff),
ULL(0x33333333,0x333333ff), 0,
ULL(0x19999999,0x999999ff)},
95 { 5,
ULL(0x66666666,0x666667fe), 1, 1},
96 { 555555555,
ULL(0x66666666,0x666667fe), 1, 111111111},
97 {
ULL(0x7fffffff,0xffffffff),
ULL(0x66666666,0x666667fe), 1,
ULL(0x19999999,0x999999ff)},
98 { 5,
ULL(0xcccccccc,0xcccccffd), 2, 1},
99 { 555555555,
ULL(0xcccccccc,0xcccccffd), 2, 111111111},
100 {
ULL(0x7fffffff,0xffffffff),
ULL(0xcccccccc,0xcccccffd), 2,
ULL(0x19999999,0x999999ff)},
101 {
ULL(0x00000add,0xcafeface),
ULL(0x002f1e28,0xfd1b5cca), 33, 1},
102 {
ULL(0x081ac1b9,0xc2310a80),
ULL(0x002f1e28,0xfd1b5cca), 33, 0xbeef},
103 {
ULL(0x74ae3b5f,0x1558c800),
ULL(0x002f1e28,0xfd1b5cca), 33, 0xabcde},
104 {
ULL(0x00000add,0xcafeface),
ULL(0x2f1e28fd,0x1b5cca00), 41, 1},
105 {
ULL(0x081ac1b9,0xc2310a80),
ULL(0x2f1e28fd,0x1b5cca00), 41, 0xbeef},
106 {
ULL(0x74ae3b5f,0x1558c800),
ULL(0x2f1e28fd,0x1b5cca00), 41, 0xabcde},
109#define NB_MAGIC_DIVIDE (sizeof(magic_divide)/sizeof(*magic_divide))
120 "call failed: RtlExtendedMagicDivide(0x%s, 0x%s, %d) has result 0x%s, expected 0x%s\n",
127#define LARGE_STRI_BUFFER_LENGTH 67
145 {10, 123, 3, 11,
"123\0---------------------------------------------------------------",
STATUS_SUCCESS},
147 { 0, 0x80000000U, 10, 11,
"2147483648\0--------------------------------------------------------",
STATUS_SUCCESS},
148 { 0, -2147483647, 20, 21,
"18446744071562067969\0----------------------------------------------",
STATUS_SUCCESS},
149 { 0, -2, 20, 21,
"18446744073709551614\0----------------------------------------------",
STATUS_SUCCESS},
150 { 0, -1, 20, 21,
"18446744073709551615\0----------------------------------------------",
STATUS_SUCCESS},
151 { 0, 0, 1, 11,
"0\0-----------------------------------------------------------------",
STATUS_SUCCESS},
152 { 0, 1, 1, 11,
"1\0-----------------------------------------------------------------",
STATUS_SUCCESS},
153 { 0, 12, 2, 11,
"12\0----------------------------------------------------------------",
STATUS_SUCCESS},
154 { 0, 123, 3, 11,
"123\0---------------------------------------------------------------",
STATUS_SUCCESS},
155 { 0, 1234, 4, 11,
"1234\0--------------------------------------------------------------",
STATUS_SUCCESS},
156 { 0, 12345, 5, 11,
"12345\0-------------------------------------------------------------",
STATUS_SUCCESS},
157 { 0, 123456, 6, 11,
"123456\0------------------------------------------------------------",
STATUS_SUCCESS},
158 { 0, 1234567, 7, 11,
"1234567\0-----------------------------------------------------------",
STATUS_SUCCESS},
159 { 0, 12345678, 8, 11,
"12345678\0----------------------------------------------------------",
STATUS_SUCCESS},
160 { 0, 123456789, 9, 11,
"123456789\0---------------------------------------------------------",
STATUS_SUCCESS},
161 { 0, 2147483646, 10, 11,
"2147483646\0--------------------------------------------------------",
STATUS_SUCCESS},
162 { 0, 2147483647, 10, 11,
"2147483647\0--------------------------------------------------------",
STATUS_SUCCESS},
163 { 0, 2147483648U, 10, 11,
"2147483648\0--------------------------------------------------------",
STATUS_SUCCESS},
164 { 0, 2147483649U, 10, 11,
"2147483649\0--------------------------------------------------------",
STATUS_SUCCESS},
165 { 0, 4294967294U, 10, 11,
"4294967294\0--------------------------------------------------------",
STATUS_SUCCESS},
166 { 0, 4294967295U, 10, 11,
"4294967295\0--------------------------------------------------------",
STATUS_SUCCESS},
167 { 0,
ULL(0x2,0xdfdc1c35), 11, 12,
"12345678901\0-------------------------------------------------------",
STATUS_SUCCESS},
168 { 0,
ULL(0xe5,0xf4c8f374), 12, 13,
"987654321012\0------------------------------------------------------",
STATUS_SUCCESS},
169 { 0,
ULL(0x1c0,0xfc161e3e), 13, 14,
"1928374656574\0-----------------------------------------------------",
STATUS_SUCCESS},
170 { 0,
ULL(0xbad,0xcafeface), 14, 15,
"12841062955726\0----------------------------------------------------",
STATUS_SUCCESS},
171 { 0,
ULL(0x5bad,0xcafeface), 15, 16,
"100801993177806\0---------------------------------------------------",
STATUS_SUCCESS},
172 { 0,
ULL(0xaface,0xbeefcafe), 16, 20,
"3090515640699646\0--------------------------------------------------",
STATUS_SUCCESS},
173 { 0,
ULL(0xa5beef,0xabcdcafe), 17, 20,
"46653307746110206\0-------------------------------------------------",
STATUS_SUCCESS},
174 { 0,
ULL(0x1f8cf9b,0xf2df3af1), 18, 20,
"142091656963767025\0------------------------------------------------",
STATUS_SUCCESS},
175 { 0,
ULL(0x0fffffff,0xffffffff), 19, 20,
"1152921504606846975\0-----------------------------------------------",
STATUS_SUCCESS},
176 { 0,
ULL(0xffffffff,0xfffffffe), 20, 21,
"18446744073709551614\0----------------------------------------------",
STATUS_SUCCESS},
177 { 0,
ULL(0xffffffff,0xffffffff), 20, 21,
"18446744073709551615\0----------------------------------------------",
STATUS_SUCCESS},
179 { 2, 0x80000000U, 32, 33,
"10000000000000000000000000000000\0----------------------------------",
STATUS_SUCCESS},
185 { 2, 0, 1, 33,
"0\0-----------------------------------------------------------------",
STATUS_SUCCESS},
186 { 2, 1, 1, 33,
"1\0-----------------------------------------------------------------",
STATUS_SUCCESS},
187 { 2, 10, 4, 33,
"1010\0--------------------------------------------------------------",
STATUS_SUCCESS},
188 { 2, 100, 7, 33,
"1100100\0-----------------------------------------------------------",
STATUS_SUCCESS},
189 { 2, 1000, 10, 33,
"1111101000\0--------------------------------------------------------",
STATUS_SUCCESS},
190 { 2, 10000, 14, 33,
"10011100010000\0----------------------------------------------------",
STATUS_SUCCESS},
191 { 2, 32767, 15, 33,
"111111111111111\0---------------------------------------------------",
STATUS_SUCCESS},
192 { 2, 32768, 16, 33,
"1000000000000000\0--------------------------------------------------",
STATUS_SUCCESS},
193 { 2, 65535, 16, 33,
"1111111111111111\0--------------------------------------------------",
STATUS_SUCCESS},
194 { 2, 100000, 17, 33,
"11000011010100000\0-------------------------------------------------",
STATUS_SUCCESS},
195 { 2, 1000000, 20, 33,
"11110100001001000000\0----------------------------------------------",
STATUS_SUCCESS},
196 { 2, 10000000, 24, 33,
"100110001001011010000000\0------------------------------------------",
STATUS_SUCCESS},
197 { 2, 100000000, 27, 33,
"101111101011110000100000000\0---------------------------------------",
STATUS_SUCCESS},
198 { 2, 1000000000, 30, 33,
"111011100110101100101000000000\0------------------------------------",
STATUS_SUCCESS},
199 { 2, 1073741823, 30, 33,
"111111111111111111111111111111\0------------------------------------",
STATUS_SUCCESS},
200 { 2, 2147483646, 31, 33,
"1111111111111111111111111111110\0-----------------------------------",
STATUS_SUCCESS},
201 { 2, 2147483647, 31, 33,
"1111111111111111111111111111111\0-----------------------------------",
STATUS_SUCCESS},
202 { 2, 2147483648U, 32, 33,
"10000000000000000000000000000000\0----------------------------------",
STATUS_SUCCESS},
203 { 2, 2147483649U, 32, 33,
"10000000000000000000000000000001\0----------------------------------",
STATUS_SUCCESS},
204 { 2, 4294967294U, 32, 33,
"11111111111111111111111111111110\0----------------------------------",
STATUS_SUCCESS},
205 { 2, 0xFFFFFFFF, 32, 33,
"11111111111111111111111111111111\0----------------------------------",
STATUS_SUCCESS},
217 { 8, 0x80000000U, 11, 12,
"20000000000\0-------------------------------------------------------",
STATUS_SUCCESS},
223 { 8, 0, 1, 12,
"0\0-----------------------------------------------------------------",
STATUS_SUCCESS},
224 { 8, 1, 1, 12,
"1\0-----------------------------------------------------------------",
STATUS_SUCCESS},
225 { 8, 2147483646, 11, 12,
"17777777776\0-------------------------------------------------------",
STATUS_SUCCESS},
226 { 8, 2147483647, 11, 12,
"17777777777\0-------------------------------------------------------",
STATUS_SUCCESS},
227 { 8, 2147483648U, 11, 12,
"20000000000\0-------------------------------------------------------",
STATUS_SUCCESS},
228 { 8, 2147483649U, 11, 12,
"20000000001\0-------------------------------------------------------",
STATUS_SUCCESS},
229 { 8, 4294967294U, 11, 12,
"37777777776\0-------------------------------------------------------",
STATUS_SUCCESS},
230 { 8, 4294967295U, 11, 12,
"37777777777\0-------------------------------------------------------",
STATUS_SUCCESS},
232 {10, 0x80000000U, 10, 11,
"2147483648\0--------------------------------------------------------",
STATUS_SUCCESS},
233 {10, -2147483647, 20, 21,
"18446744071562067969\0----------------------------------------------",
STATUS_SUCCESS},
234 {10, -2, 20, 21,
"18446744073709551614\0----------------------------------------------",
STATUS_SUCCESS},
235 {10, -1, 20, 21,
"18446744073709551615\0----------------------------------------------",
STATUS_SUCCESS},
236 {10, 0, 1, 11,
"0\0-----------------------------------------------------------------",
STATUS_SUCCESS},
237 {10, 1, 1, 11,
"1\0-----------------------------------------------------------------",
STATUS_SUCCESS},
238 {10, 2147483646, 10, 11,
"2147483646\0--------------------------------------------------------",
STATUS_SUCCESS},
239 {10, 2147483647, 10, 11,
"2147483647\0--------------------------------------------------------",
STATUS_SUCCESS},
240 {10, 2147483648U, 10, 11,
"2147483648\0--------------------------------------------------------",
STATUS_SUCCESS},
241 {10, 2147483649U, 10, 11,
"2147483649\0--------------------------------------------------------",
STATUS_SUCCESS},
242 {10, 4294967294U, 10, 11,
"4294967294\0--------------------------------------------------------",
STATUS_SUCCESS},
243 {10, 4294967295U, 10, 11,
"4294967295\0--------------------------------------------------------",
STATUS_SUCCESS},
245 {16, 0, 1, 9,
"0\0-----------------------------------------------------------------",
STATUS_SUCCESS},
246 {16, 1, 1, 9,
"1\0-----------------------------------------------------------------",
STATUS_SUCCESS},
247 {16, 2147483646, 8, 9,
"7FFFFFFE\0----------------------------------------------------------",
STATUS_SUCCESS},
248 {16, 2147483647, 8, 9,
"7FFFFFFF\0----------------------------------------------------------",
STATUS_SUCCESS},
249 {16, 0x80000000, 8, 9,
"80000000\0----------------------------------------------------------",
STATUS_SUCCESS},
250 {16, 0x80000001, 8, 9,
"80000001\0----------------------------------------------------------",
STATUS_SUCCESS},
251 {16, 0xFFFFFFFE, 8, 9,
"FFFFFFFE\0----------------------------------------------------------",
STATUS_SUCCESS},
252 {16, 0xFFFFFFFF, 8, 9,
"FFFFFFFF\0----------------------------------------------------------",
STATUS_SUCCESS},
263 { 2, 32768, 16, 17,
"1000000000000000\0--------------------------------------------------",
STATUS_SUCCESS},
264 { 2, 32768, 16, 16,
"1000000000000000---------------------------------------------------",
STATUS_SUCCESS},
265 { 2, 65536, 17, 18,
"10000000000000000\0-------------------------------------------------",
STATUS_SUCCESS},
266 { 2, 65536, 17, 17,
"10000000000000000--------------------------------------------------",
STATUS_SUCCESS},
267 { 2, 131072, 18, 19,
"100000000000000000\0------------------------------------------------",
STATUS_SUCCESS},
268 { 2, 131072, 18, 18,
"100000000000000000-------------------------------------------------",
STATUS_SUCCESS},
269 {16, 0xffffffff, 8, 9,
"FFFFFFFF\0----------------------------------------------------------",
STATUS_SUCCESS},
270 {16, 0xffffffff, 8, 8,
"FFFFFFFF-----------------------------------------------------------",
STATUS_SUCCESS},
271 {16, 0xffffffff, 8, 7,
"-------------------------------------------------------------------",
STATUS_BUFFER_OVERFLOW},
272 {16, 0xa, 1, 2,
"A\0-----------------------------------------------------------------",
STATUS_SUCCESS},
273 {16, 0xa, 1, 1,
"A------------------------------------------------------------------",
STATUS_SUCCESS},
274 {16, 0, 1, 0,
"-------------------------------------------------------------------",
STATUS_BUFFER_OVERFLOW},
275 {20, 0xdeadbeef, 0, 9,
"-------------------------------------------------------------------",
STATUS_INVALID_PARAMETER},
276 {-8, 07654321, 0, 12,
"-------------------------------------------------------------------",
STATUS_INVALID_PARAMETER},
278#define NB_LARGEINT2STR (sizeof(largeint2str)/sizeof(*largeint2str))
305 expected_unicode_string.
Buffer = expected_str_Buffer;
306 pRtlUnicodeStringToAnsiString(&expected_ansi_str, &expected_unicode_string, 1);
309 str_Buffer[
pos] =
'-';
311 unicode_string.
Length = 0;
313 unicode_string.
Buffer = str_Buffer;
320 pRtlUnicodeStringToAnsiString(&ansi_str, &unicode_string, 1);
324 expected_str_Buffer[
pos] =
'-';
331 if (expected_unicode_string.
Length >= 64) {
338 "(test %d): RtlInt64ToUnicodeString(0x%s, %d, [out]) has result %x, expected: %x\n",
342 "(test %d): RtlInt64ToUnicodeString(0x%s, %d, [out]) string \"%s\" is not NULL terminated\n",
347 "(test %d): RtlInt64ToUnicodeString(0x%x%08x, %d, [out]) assigns string \"%s\", expected: \"%s\"\n",
349 ansi_str.Buffer, expected_ansi_str.Buffer);
351 "(test %d): RtlInt64ToUnicodeString(0x%s, %d, [out]) string has Length %d, expected: %d\n",
355 "(test %d): RtlInt64ToUnicodeString(0x%s, %d, [out]) string has MaximumLength %d, expected: %d\n",
358 pRtlFreeAnsiString(&expected_ansi_str);
359 pRtlFreeAnsiString(&ansi_str);
396 "(test %d): RtlLargeIntegerToChar(0x%s, %d, %d, [out]) has result %x, expected: %x\n",
400 "(test %d): RtlLargeIntegerToChar(0x%s, %d, %d, [out]) assigns string \"%s\", expected: \"%s\"\n",
419 "(test a): RtlLargeIntegerToChar(0x%s, %d, %d, NULL) has result %x, expected: %x\n",
425 "(test b): RtlLargeIntegerToChar(0x%s, %d, %d, NULL) has result %x, expected: %x\n",
431 "(test c): RtlLargeIntegerToChar(0x%s, %d, %d, NULL) has result %x, expected: %x\n",
436 "(test d): RtlLargeIntegerToChar(0x%s, %d, %d, NULL) has result %x, expected: %x\n",
460static void test__alldvrm(
void)
467 thunk->push_ebx = 0x53;
468 thunk->push_esp1 = 0x182474ff;
469 thunk->push_esp2 = 0x182474ff;
470 thunk->push_esp3 = 0x182474ff;
471 thunk->push_esp4 = 0x182474ff;
472 thunk->call = 0x182454ff;
473 thunk->pop_ebx = 0x5b;
476 ret = call_lldvrm_func(p_alldvrm, 0x0123456701234567ULL, 3);
478 ret = call_lldvrm_func(p_alldvrm, 0x0123456701234567ULL, -3);
481 ret = call_lldvrm_func(p_aulldvrm, 0x0123456701234567ULL, 3);
483 ret = call_lldvrm_func(p_aulldvrm, 0x0123456701234567ULL, -3);
486 thunk->mov_ecx_eax = 0xc889;
487 thunk->mov_ebx_edx = 0xda89;
489 ret = call_lldvrm_func(p_alldvrm, 0x0123456701234567ULL, 3);
491 ret = call_lldvrm_func(p_alldvrm, 0x0123456701234567ULL, -3);
494 ret = call_lldvrm_func(p_aulldvrm, 0x0123456701234567ULL, 3);
496 ret = call_lldvrm_func(p_aulldvrm, 0x0123456701234567ULL, -3);
506 if (pRtlExtendedMagicDivide)
508 if (pRtlInt64ToUnicodeString)
510 if (pRtlLargeIntegerToChar)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define GetProcAddress(x, y)
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
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
static void one_RtlLargeIntegerToChar_test(int test_num, const largeint2str_t *largeint2str)
static const magic_divide_t magic_divide[]
static void test_RtlInt64ToUnicodeString(void)
static UNICODE_STRING *static PCHAR
static void InitFunctionPtrs(void)
static void test_RtlExtendedMagicDivide(void)
static const largeint2str_t largeint2str[]
static void test_RtlLargeIntegerToChar(void)
#define LARGE_STRI_BUFFER_LENGTH
static void one_RtlInt64ToUnicodeString_test(int test_num, const largeint2str_t *largeint2str)
static const UNICODE_STRING BOOLEAN
#define PAGE_EXECUTE_READWRITE
#define STATUS_ACCESS_VIOLATION
#define STATUS_BUFFER_OVERFLOW
#define STATUS_INVALID_PARAMETER
_In_ WDFDMATRANSACTION _In_ size_t MaximumLength
LPVOID NTAPI VirtualAlloc(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD flAllocationType, IN DWORD flProtect)