ReactOS 0.4.16-dev-2491-g3dc6630
crtdata.c
Go to the documentation of this file.
1/*
2* PROJECT: ReactOS CRT API tests
3* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4* PURPOSE: Tests for crt data exports
5* COPYRIGHT: Copyright 2021 Timo Kreuzer <timo.kreuzer@reactos.org>
6*/
7
8#include <apitest.h>
9#include <apitest_guard.h>
10
11#define WIN32_NO_STATUS
12#include <stdio.h>
13#include <stdlib.h>
14#include <time.h>
15#include <locale.h>
16#include <mbctype.h>
17
19extern char __ImageBase;
20static void* s_ImageEnd;
21
23{
24 return ((Address >= (void*)&__ImageBase) && (Address <= s_ImageEnd));
25}
26
27// Dynamically imported functions (Vista+)
28int* (__cdecl *p__daylight)(void);
29long* (__cdecl *p__dstbias)(void);
30errno_t (__cdecl *p_get_fmode)(int* _PMode);
31errno_t (__cdecl *p_get_osplatform)(unsigned int *pValue);
32int (__cdecl *p_get_pgmptr)(char** p);
33errno_t (__cdecl *p_get_wpgmptr)(_Outptr_result_z_ wchar_t **_Value);
34errno_t (__cdecl *p_get_winver)(_Out_ unsigned int *_Value);
35errno_t (__cdecl *p_get_winmajor)(_Out_ unsigned int *_Value);
36errno_t (__cdecl *p_get_winminor)(_Out_ unsigned int *_Value);
37errno_t (__cdecl *p_get_environ)(_Out_ char***);
38errno_t (__cdecl *p_get_wenviron)(_Out_ wchar_t***);
39
40
41#ifndef TEST_STATIC
42#define test_is_local_symbol(addr, is) ok_int(IsLocalSymbol(addr), (is))
43#else
44#define test_is_local_symbol(addr, is)
45#endif
46
47void Test___argc(void)
48{
49 void* p = &__argc;
51
52 #undef __argc
53 ok_ptr(&__argc, p);
54#ifdef _M_IX86
56#endif
57}
58
59void Test___argv(void)
60{
61 void* p = &__argv;
63
64 #undef __argv
65 ok_ptr(&__argv, p);
66#ifdef _M_IX86
68#endif
69}
70
72{
73 typedef struct _ioinfo ioinfo;
74 _CRTIMP extern ioinfo* __badioinfo[];
75 ok(__badioinfo[0] != NULL, "__badioinfo is NULL\n");
76}
77
78#ifndef _M_ARM
80{
81 _CRTIMP extern char** __initenv;
82 ok(__initenv != NULL, "__initenv is NULL\n");
83 ok(*__initenv != NULL, "*__initenv is NULL\n");
84#ifdef _M_IX86
85 _CRTIMP char*** __p___initenv(void);
87#endif
88}
89
91{
92 _CRTIMP extern unsigned int __lc_codepage;
93 ok_int(__lc_codepage, 0);
95 __lc_codepage++;
97 __lc_codepage--;
98}
99
101{
102 _CRTIMP extern int __lc_collate_cp;
103 test_is_local_symbol(&__lc_collate_cp, FALSE);
104 ok_int(__lc_collate_cp, 0);
106 __lc_collate_cp++;
108 __lc_collate_cp--;
109}
110#endif // !_M_ARM
111
113{
114 _CRTIMP int __lc_handle;
115 ok_int(__lc_handle, 0);
118 __lc_handle++;
120 __lc_handle--;
121}
122
124{
125 void* p = &__mb_cur_max;
128
129 #undef __mb_cur_max
130 _CRTIMP extern int __mb_cur_max;
132
134#ifdef _M_IX86
135 _CRTIMP int* __p___mb_cur_max(void);
137#endif
138 __mb_cur_max++;
139 if (s_osvi.dwMajorVersion >= 6)
140 {
142#ifdef _M_IX86
144#endif
145 }
146 else
147 {
149#ifdef _M_IX86
150 todo_ros ok_ptr(__p___mb_cur_max(), p); // wine code handles it like on Vista+
152#endif
153 }
154
155 __mb_cur_max--;
156}
157
159{
160
161}
162
163#ifndef _M_ARM
165{
166 _CRTIMP extern unsigned int __setlc_active;
167 ok_int(__setlc_active, 0);
168
169 _CRTIMP unsigned int ___setlc_active_func(void);
170 ok_int(___setlc_active_func(), __setlc_active);
171 __setlc_active++;
172 ok_int(___setlc_active_func(), __setlc_active);
173 __setlc_active--;
174}
175
177{
178 _CRTIMP extern unsigned int __unguarded_readlc_active;
179 void* p = &__unguarded_readlc_active;
180 ok_int(__unguarded_readlc_active, 0);
181
184}
185#endif // !_M_ARM
186
187void Test___wargv(void)
188{
189 void* p = &__wargv;
191
192 #undef __wargv
193 _CRTIMP extern wchar_t ** __wargv;
194 ok_ptr(&__wargv, p);
195#ifdef _M_IX86
196 ok_ptr(__p___wargv(), p);
197#endif
198}
199
200#ifndef _M_ARM
202{
203 _CRTIMP extern wchar_t** __winitenv;
204 ok(__winitenv == NULL, "__winitenv is not NULL\n");
205#ifdef _M_IX86
206 _CRTIMP wchar_t*** __p___winitenv(void);
208#endif
209}
210#endif
211
212void Test__acmdln(void)
213{
214 _CRTIMP extern char* _acmdln;
215 ok(_acmdln != NULL, "__winitenv is NULL\n");
216#ifdef _M_IX86
217 _CRTIMP char** __p__acmdln(void);
219#endif
220}
221
222#ifdef _M_IX86
223void Test__adjust_fdiv(void)
224{
225 _CRTIMP extern int _adjust_fdiv;
227}
228#endif
229
231{
232 typedef void (*_exit_t)(int exitcode);
233 _CRTIMP extern _exit_t _aexit_rtn;
234 // On Vista and Win 7 the pointer is encoded
235 if ((GetNTVersion() >= 0x600) && (GetNTVersion() <= 0x601))
236 {
237 ok_ptr(_aexit_rtn, EncodePointer(_exit));
238 }
239 else
240 {
241 ok_ptr(_aexit_rtn, _exit);
242 }
243}
244
246{
247 void* p = &_commode;
249 ok_int(_commode, 0);
250
251 #undef _commode
252 _CRTIMP extern int _commode;
253 ok_ptr(&_commode, p);
254#ifdef _M_IX86
256#endif
257}
258
259void Test__ctype(void)
260{
261 _CRTIMP extern const unsigned short _ctype[];
262 ok_int(_ctype[0], 0);
264
265 #undef _pctype
266 _CRTIMP extern const unsigned short* _pctype;
267 ok(_pctype != &_ctype[0], "_pwctype should not match &_wctype[0]");
268 if (s_osvi.dwMajorVersion >= 6)
269 {
270 ok(_pctype != &_ctype[1], "_pwctype should not match &_wctype[1]");
271 }
272 else
273 {
274 ok(_pctype == &_ctype[1], "_pwctype should match &_wctype[1]");
275 }
276
277 ok(__pctype_func() != _ctype, "__pctype_func() should not match _ctype\n");
280#ifdef _M_IX86
281 _CRTIMP const unsigned short** __cdecl __p__pctype(void);
283#endif
284}
285
286void Test__wctype(void)
287{
288 ok_int(_wctype[0], 0);
290
291 #undef _pwctype
292 _CRTIMP extern const unsigned short* _pwctype;
293 ok_ptr(_pwctype, &_wctype[1]);
294
295 ok(__pwctype_func() != _wctype, "__pwctype_func() == _wctype\n");
298#ifdef _M_IX86
299 _CRTIMP const unsigned short** __cdecl __p__pwctype(void);
301#endif
302}
303
305{
306 void* p = &_daylight;
308
309 #undef _daylight
310 _CRTIMP extern int _daylight;
311 ok_ptr(&_daylight, p);
312
313#ifdef _M_IX86
314 _CRTIMP void* __p__daylight(void);
316#endif
317 if (p__daylight != NULL)
318 {
320 }
321}
322
323#ifndef _M_ARM
325{
326 void* p = &_dstbias;
328
329 #undef _dstbias
330 _CRTIMP extern long _dstbias;
331 ok_ptr(&_dstbias, p);
332#ifdef _M_IX86
333 _CRTIMP long* __cdecl __p__dstbias(void);
335#endif
336 if (p__dstbias != NULL)
337 {
339 }
340}
341
343{
344 void* p = &_environ;
345 ok(_environ != NULL, "_environ == NULL\n");
346
347 #undef _environ
348 _CRTIMP extern char** _environ;
349 ok_ptr(&_environ, p);
350#ifdef _M_IX86
352#endif
353 if (p_get_environ != NULL)
354 {
355 char** result_environ;
356 ok_int(p_get_environ(&result_environ), 0);
357 ok_ptr(result_environ, _environ);
358 }
359}
360
362{
363 _CRTIMP extern int _fileinfo;
364 ok_int(_fileinfo, -1);
365
366#ifdef _M_IX86
367 _CRTIMP int* __p__fileinfo();
369#endif
370}
371#endif // !_M_ARM
372
373void Test__fmode(void)
374{
375 void* p = &_fmode;
377 ok_int(_fmode, 0);
378
379 #undef _fmode
380 _CRTIMP extern int _fmode;
381 ok_ptr(&_fmode, p);
382
383#ifdef _M_IX86
385 ok_ptr(__p__fmode(), p);
386#endif
387
388 if (p_get_fmode != NULL)
389 {
390 _fmode = 1234;
391
392 int mode;
393 ok_int(p_get_fmode(&mode), 0);
395 _fmode = 0;
396 }
397}
398
399void Test__iob(void)
400{
401 void* p = &_iob;
403 ok_ptr(&_iob[0], stdin);
404 ok_ptr(&_iob[1], stdout);
405 ok_ptr(&_iob[2], stderr);
406
407 #undef _iob
408 _CRTIMP extern FILE _iob[];
409 ok_ptr(&_iob, p);
410
412
413#ifdef _M_IX86
414 _CRTIMP int* __cdecl __p__iob();
415 ok_ptr(__p__iob(), p);
416#endif
417}
418
420{
421 void* p = &_mbcasemap;
422 ok_int(_mbcasemap[0], 0);
423
424 #undef _mbcasemap
426
427#ifdef _M_IX86
428 _CRTIMP unsigned char* __cdecl __p__mbcasemap();
430#endif
431}
432
434{
435 void* p = &_mbctype;
436 ok_int(_mbctype[0], 0);
437
438 #undef _mbctype
439 ok_ptr(&_mbctype, p);
440
441#ifdef _M_IX86
442 _CRTIMP unsigned char* __cdecl __p__mbctype();
443 todo_ros ok_ptr(__p__mbctype(), &_mbctype); // wine implements thiss like on Vista
444#endif
445}
446
447#ifndef _M_ARM
449{
451 if (p_get_osplatform != NULL)
452 {
453 unsigned int result_osplatform;
454 ok_int(p_get_osplatform(&result_osplatform), 0);
455 ok_int(result_osplatform, _osplatform);
456 }
457}
458#endif
459
460void Test__osver(void)
461{
463
464#ifdef _M_IX86
467#endif
468}
469
470void Test__pgmptr(void)
471{
472 void* p = &_pgmptr;
473 ok(_pgmptr != NULL, "_pgmptr should not be NULL\n");
474
475 #undef _pgmptr
476 _CRTIMP extern char* _pgmptr;
477 ok_ptr(&_pgmptr, p);
478#ifdef _M_IX86
480#endif
481 if (p_get_pgmptr != NULL)
482 {
483 char *result_pgmptr;
484 ok_int(p_get_pgmptr(&result_pgmptr), 0);
485 ok_ptr(result_pgmptr, _pgmptr);
486 }
487}
488
490{
491 void* p = &_sys_errlist;
493 ok_int(strcmp(_sys_errlist[42], strerror(42)), 0);
494
495 #undef _sys_errlist
496 _CRTIMP extern char* _sys_errlist[];
498}
499
501{
502 void* p = &_sys_nerr;
503 ok_int(_sys_nerr, 43);
504
505 #undef _sys_nerr
506 _CRTIMP extern int _sys_nerr;
507 ok_ptr(&_sys_nerr, p);
508}
509
511{
512 void* p = &_timezone;
514
515 #undef _timezone
516 _CRTIMP extern long _timezone;
517 ok_ptr(&_timezone, p);
518
519#ifdef _M_IX86
520 _CRTIMP char** __p__timezone();
522#endif
523}
524
525void Test__tzname(void)
526{
527 void* p = &_tzname;
529 ok(_tzname[0] != NULL, "_tzname[0] == NULL\n");
530 ok(_tzname[0] != NULL, "_tzname[0] == NULL\n");
531
532 #undef _tzname
533 _CRTIMP extern char * _tzname[2];
534 ok_ptr(_tzname, p);
535
536#ifdef _M_IX86
537 _CRTIMP char** __p__tzname();
539#endif
540}
541
542void Test__wcmdln(void)
543{
544 _CRTIMP extern wchar_t* _wcmdln;
545#ifdef _M_IX86
546 _CRTIMP wchar_t** __p__wcmdln(void);
548#endif
549}
550
551#ifndef _M_ARM
553{
554 void* p = &_wenviron;
555 ok(_wenviron == NULL, "_wenviron is not NULL\n");
556
557 #undef _wenviron
558 _CRTIMP extern wchar_t** _wenviron;
559 ok_ptr(&_wenviron, p);
560#ifdef _M_IX86
562#endif
563
564#if 0 // FIXME: This returns an error / NULL on Windows 10
565 if (p_get_wenviron != NULL)
566 {
567 wchar_t** result_wenviron;
568 ok_int(p_get_wenviron(&result_wenviron), 0);
569 ok_ptr(result_wenviron, _wenviron);
570 }
571#endif
572}
573#endif
574
576{
578#ifdef _M_IX86
579 _CRTIMP unsigned int* __cdecl __p__winmajor();
581#endif
582 if (p_get_winmajor != NULL)
583 {
584 unsigned int result_winmajor;
585 ok_int(p_get_winmajor(&result_winmajor), 0);
586 ok_int(result_winmajor, _winmajor);
587 }
588}
589
591{
593#ifdef _M_IX86
594 _CRTIMP unsigned int* __cdecl __p__winminor();
596#endif
597 if (p_get_winminor != NULL)
598 {
599 unsigned int result_winminor;
600 ok_int(p_get_winminor(&result_winminor), 0);
601 ok_int(result_winminor, _winminor);
602 }
603}
604
605#ifndef _M_ARM
606void Test__winver(void)
607{
609#ifdef _M_IX86
610 _CRTIMP unsigned int* __cdecl __p__winver();
612#endif
613 if (p_get_winver != NULL)
614 {
615 unsigned int result_winver;
616 ok_int(p_get_winver(&result_winver), 0);
617 ok_int(result_winver, _winver);
618 }
619}
620#endif
621
623{
624 void* p = _wpgmptr;
626
627 #undef _wpgmptr
628 ok_ptr(_wpgmptr, p);
629
630#ifdef _M_IX86
631 _CRTIMP wchar_t ** __cdecl __p__wpgmptr();
633#endif
634
635#if 0 // FIXME: This returns an error on Windows 10
636 if (p_get_wpgmptr != NULL)
637 {
638 wchar_t* result_wpgmptr;
639 ok_int(p_get_wpgmptr(&result_wpgmptr), 0);
640 ok_ptr(result_wpgmptr, _wpgmptr);
641 }
642#endif
643}
644
646{
647 /* Initialize image size */
649 PIMAGE_NT_HEADERS ntHeaders = (PIMAGE_NT_HEADERS)((PUCHAR)dosHeader + dosHeader->e_lfanew);
650 s_ImageEnd = (PUCHAR)dosHeader + ntHeaders->OptionalHeader.SizeOfImage;
651
652 /* initialize version info */
655
656 HMODULE hmsvcrt = GetModuleHandleA("msvcrt.dll");
657 p__daylight = (void*)GetProcAddress(hmsvcrt, "__daylight");
658 p__dstbias = (void*)GetProcAddress(hmsvcrt, "__dstbias");
659 p_get_fmode = (void*)GetProcAddress(hmsvcrt, "_get_fmode");
660 p_get_osplatform = (void*)GetProcAddress(hmsvcrt, "_get_osplatform");
661 p_get_pgmptr = (void*)GetProcAddress(hmsvcrt, "_get_pgmptr");
662 p_get_wpgmptr = (void*)GetProcAddress(hmsvcrt, "_get_wpgmptr");
663 p_get_winver = (void*)GetProcAddress(hmsvcrt, "_get_winver");
664 p_get_winmajor = (void*)GetProcAddress(hmsvcrt, "_get_winmajor");
665 p_get_winminor = (void*)GetProcAddress(hmsvcrt, "_get_winminor");
666 p_get_environ = (void*)GetProcAddress(hmsvcrt, "_get_environ");
667 p_get_wenviron = (void*)GetProcAddress(hmsvcrt, "_get_wenviron");
668
669 if (s_osvi.dwMajorVersion >= 6)
670 {
671 ok(p__daylight != NULL, "__daylight is NULL\n");
672 ok(p__dstbias != NULL, "__dstbias is NULL\n");
673 ok(p_get_fmode != NULL, "_get_fmode is NULL\n");
674 ok(p_get_osplatform != NULL, "_get_osplatform is NULL\n");
675 ok(p_get_pgmptr != NULL, "_get_pgmptr is NULL\n");
676 ok(p_get_wpgmptr != NULL, "_get_wpgmptr is NULL\n");
677 ok(p_get_winver != NULL, "_get_winver is NULL\n");
678 ok(p_get_winmajor != NULL, "_get_winmajor is NULL\n");
679 ok(p_get_winminor != NULL, "_get_winminor is NULL\n");
680 ok(p_get_environ != NULL, "_get_environ is NULL\n");
681 ok(p_get_wenviron != NULL, "_get_wenviron is NULL\n");
682 }
683
684 Test___argc();
685 Test___argv();
687#ifndef _M_ARM
691#endif
695#ifndef _M_ARM
698#endif
699 Test___wargv();
700#ifndef _M_ARM
702#endif
703 Test__acmdln();
704#ifdef _M_IX86
705 Test__adjust_fdiv();
706#endif
709 Test__ctype();
711#ifndef _M_ARM
715#endif
716 Test__fmode();
717 Test__iob();
720#ifndef _M_ARM
722#endif
723 Test__osver();
724 Test__pgmptr();
728 Test__tzname();
729 Test__wcmdln();
730 Test__wctype();
731#ifndef _M_ARM
733#endif
736#ifndef _M_ARM
737 Test__winver();
738#endif
740}
int _adjust_fdiv
Definition: adjust.c:2
#define GetNTVersion()
Definition: apitest.h:17
#define ok(value,...)
Definition: atltest.h:57
#define START_TEST(x)
Definition: atltest.h:75
#define ok_int(expression, result)
Definition: atltest.h:134
#define ok_ptr(expression, result)
Definition: atltest.h:108
void Test__tzname(void)
Definition: crtdata.c:525
char __ImageBase
void Test__winminor(void)
Definition: crtdata.c:590
void Test__osplatform(void)
Definition: crtdata.c:448
void Test__osver(void)
Definition: crtdata.c:460
int IsLocalSymbol(void *Address)
Definition: crtdata.c:22
int *__cdecl * p__daylight(void)
void Test__dstbias(void)
Definition: crtdata.c:324
void Test__acmdln(void)
Definition: crtdata.c:212
void Test__mbcasemap(void)
Definition: crtdata.c:419
void Test__fileinfo(void)
Definition: crtdata.c:361
void Test___argc(void)
Definition: crtdata.c:47
void Test__sys_errlist(void)
Definition: crtdata.c:489
void Test__winver(void)
Definition: crtdata.c:606
void Test__wpgmptr(void)
Definition: crtdata.c:622
void Test___wargv(void)
Definition: crtdata.c:187
void Test__daylight(void)
Definition: crtdata.c:304
void Test___initenv(void)
Definition: crtdata.c:79
void Test__wenviron(void)
Definition: crtdata.c:552
void Test__mbctype(void)
Definition: crtdata.c:433
void Test___winitenv(void)
Definition: crtdata.c:201
void Test__fmode(void)
Definition: crtdata.c:373
void Test__ctype(void)
Definition: crtdata.c:259
void Test___setlc_active(void)
Definition: crtdata.c:164
long *__cdecl * p__dstbias(void)
static OSVERSIONINFOW s_osvi
Definition: crtdata.c:18
void Test__sys_nerr(void)
Definition: crtdata.c:500
void Test__pgmptr(void)
Definition: crtdata.c:470
void Test___argv(void)
Definition: crtdata.c:59
static void * s_ImageEnd
Definition: crtdata.c:20
void Test__aexit_rtn(void)
Definition: crtdata.c:230
void Test__environ(void)
Definition: crtdata.c:342
void Test___pioinfo(void)
Definition: crtdata.c:158
void Test__wcmdln(void)
Definition: crtdata.c:542
void Test__commode(void)
Definition: crtdata.c:245
void Test__iob(void)
Definition: crtdata.c:399
void Test___mb_cur_max(void)
Definition: crtdata.c:123
void Test__timezone(void)
Definition: crtdata.c:510
void Test__winmajor(void)
Definition: crtdata.c:575
void Test___lc_handle(void)
Definition: crtdata.c:112
void Test__wctype(void)
Definition: crtdata.c:286
void Test___unguarded_readlc_active(void)
Definition: crtdata.c:176
void Test___lc_collate_cp(void)
Definition: crtdata.c:100
void Test___badioinfo(void)
Definition: crtdata.c:71
#define test_is_local_symbol(addr, is)
Definition: crtdata.c:42
void Test___lc_codepage(void)
Definition: crtdata.c:90
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
char ** __initenv
wchar_t ** __winitenv
#define GetProcAddress(x, y)
Definition: compat.h:753
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
Definition: version.c:37
unsigned short **CDECL __p__pctype(void)
Definition: ctype.c:133
unsigned short **CDECL __p__pwctype(void)
Definition: ctype.c:149
unsigned int *CDECL __p__osver(void)
Definition: data.c:299
wchar_t ***CDECL __p__wenviron(void)
Definition: data.c:347
int *CDECL __p__fmode(void)
Definition: data.c:269
unsigned int *CDECL __p__winver(void)
Definition: data.c:314
char **CDECL __p__pgmptr(void)
Definition: data.c:238
unsigned int *CDECL __p__winminor(void)
Definition: data.c:309
WCHAR **CDECL __p__wpgmptr(void)
Definition: data.c:243
char **CDECL __p__acmdln(void)
Definition: data.c:319
wchar_t **CDECL __p__wcmdln(void)
Definition: data.c:324
unsigned int *CDECL __p__commode(void)
Definition: data.c:232
unsigned int CDECL ___setlc_active_func(void)
Definition: data.c:394
int *CDECL __p___argc(void)
Definition: data.c:227
wchar_t ***CDECL __p___wargv(void)
Definition: data.c:334
char ***CDECL __p___argv(void)
Definition: data.c:329
unsigned int *CDECL ___unguarded_readlc_active_add_func(void)
Definition: data.c:386
char ***CDECL __p__environ(void)
Definition: data.c:339
char ***CDECL __p___initenv(void)
Definition: data.c:355
wchar_t ***CDECL __p___winitenv(void)
Definition: data.c:360
unsigned int *CDECL __p__winmajor(void)
Definition: data.c:304
char *CDECL strerror(int err)
Definition: errno.c:273
void CDECL _exit(int exitcode)
Definition: exit.c:187
FILE *CDECL __iob_func(void)
Definition: file.c:972
int errno_t
Definition: corecrt.h:249
#define __cdecl
Definition: corecrt.h:121
#define _CONTROL
#define stdout
#define stderr
#define stdin
_ACRTIMP unsigned int __cdecl ___lc_codepage_func(void)
Definition: locale.c:1047
#define _iob
Definition: stdio.h:63
unsigned int _winminor
unsigned int _winmajor
#define _sys_nerr
Definition: stdlib.h:133
unsigned int _osver
#define __mb_cur_max
Definition: stdlib.h:126
unsigned int _winver
_ACRTIMP int __cdecl strcmp(const char *, const char *)
Definition: string.c:3319
LCID *CDECL ___lc_handle_func(void)
Definition: locale.c:1029
int CDECL ___lc_collate_cp_func(void)
Definition: locale.c:1055
int _fileinfo
Definition: misc.c:26
int * __p__fileinfo(void)
Definition: misc.c:33
unsigned char * __p__mbcasemap(void)
Definition: misc.c:28
char **CDECL __p__tzname(void)
Definition: time.c:883
__msvcrt_long *CDECL __p__dstbias(void)
Definition: time.c:816
__msvcrt_long *CDECL __p__timezone(void)
Definition: time.c:836
int *CDECL __p__daylight(void)
Definition: time.c:808
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
PIMAGE_NT_HEADERS32 PIMAGE_NT_HEADERS
Definition: ntddk_ex.h:187
struct _IMAGE_DOS_HEADER * PIMAGE_DOS_HEADER
PWCHAR pValue
GLenum mode
Definition: glext.h:6217
GLfloat GLfloat p
Definition: glext.h:8902
unsigned char *CDECL __p__mbctype(void)
Definition: mbcs.c:181
int *CDECL __p___mb_cur_max(void)
Definition: mbcs.c:189
#define todo_ros
Definition: minitest.h:74
#define _Outptr_result_z_
Definition: ms_sal.h:434
#define _Out_
Definition: no_sal2.h:160
static WCHAR Address[46]
Definition: ping.c:68
#define ___mb_cur_max_func()
Definition: ctype.h:636
_CRTIMP int _commode
Definition: ncommode.cpp:13
_CRTIMP char * _sys_errlist[]
Definition: syserr.cpp:18
_CRTIMP unsigned int _osplatform
#define __pwctype_func()
Definition: wctype.h:68
#define __pctype_func()
Definition: wctype.h:34
#define _pctype
Definition: wctype.h:43
#define _wctype
Definition: wctype.h:58
#define _pwctype
Definition: wctype.h:67
#define _wcmdln
#define _acmdln
_In_ _Value
#define _mbctype
Definition: mbctype.h:33
#define _mbcasemap
Definition: mbctype.h:34
#define __argv
Definition: stdlib.h:1154
#define __argc
Definition: stdlib.h:1153
#define _pgmptr
Definition: stdlib.h:253
#define _fmode
Definition: stdlib.h:255
#define _environ
Definition: stdlib.h:1171
#define _wpgmptr
Definition: stdlib.h:254
#define _wenviron
Definition: stdlib.h:1172
#define __wargv
Definition: stdlib.h:1155
#define _daylight
Definition: time.h:70
#define _dstbias
Definition: time.h:76
#define _timezone
Definition: time.h:82
#define _tzname
Definition: time.h:88
_CRTIMP ioinfo * __badioinfo[]
Definition: ioinit.cpp:17
const unsigned short _ctype[]
Definition: ctype.c:36
IMAGE_OPTIONAL_HEADER32 OptionalHeader
Definition: ntddk_ex.h:184
ULONG dwMinorVersion
Definition: rtltypes.h:248
ULONG dwPlatformId
Definition: rtltypes.h:250
ULONG dwOSVersionInfoSize
Definition: rtltypes.h:246
ULONG dwMajorVersion
Definition: rtltypes.h:247
ULONG dwBuildNumber
Definition: rtltypes.h:249
Definition: file.c:128
unsigned char * PUCHAR
Definition: typedefs.h:53
#define _CRTIMP
Definition: vcruntime.h:54
PVOID WINAPI EncodePointer(PVOID)