20#ifndef __WINE_MSVCRT_H
21#define __WINE_MSVCRT_H
26#define _NO_CRT_STDIO_INLINE
37typedef long __msvcrt_long;
38typedef unsigned long __msvcrt_ulong;
43#define DBL80_MAX_10_EXP 4932
44#define DBL80_MIN_10_EXP -4951
75#if _MSVCR_VER == 0 || _MSVCR_VER >= 100
82 const wchar_t *
mon[12];
92 const wchar_t *locname;
128#define LOCALE_FREE 0x1
129#define LOCALE_THREAD 0x2
254#define _RT_EXECFORM 6
256#define _RT_SPACEARG 8
257#define _RT_SPACEENV 9
266#define _RT_OPENCON 19
269#define _RT_NONCONT 22
270#define _RT_INVALDISP 23
272#define _RT_PUREVIRT 25
273#define _RT_STDIOINIT 26
274#define _RT_LOWIOINIT 27
275#define _RT_HEAPINIT 28
276#define _RT_DOMAIN 120
280#define _RT_BANNER 255
284#define MSVCRT_NO_CONSOLE_FD (-2)
285#define MSVCRT_NO_CONSOLE ((HANDLE)MSVCRT_NO_CONSOLE_FD)
287#define MSVCRT_stdin (MSVCRT__iob+STDIN_FILENO)
288#define MSVCRT_stdout (MSVCRT__iob+STDOUT_FILENO)
289#define MSVCRT_stderr (MSVCRT__iob+STDERR_FILENO)
292#define MSVCRT__USERBUF 0x0100
293#define MSVCRT__IOCOMMIT 0x4000
299#define _MAX__TIME64_T (((__time64_t)0x00000007 << 32) | 0x93406FFF)
336#define MSVCRT_INVALID_PMT(x,err) (*_errno() = (err), _invalid_parameter(NULL, NULL, NULL, 0, 0))
337#define MSVCRT_CHECK_PMT_ERR(x,err) ((x) || (MSVCRT_INVALID_PMT( 0, (err) ), FALSE))
338#define MSVCRT_CHECK_PMT(x) MSVCRT_CHECK_PMT_ERR((x), EINVAL)
362#define UNDNAME_COMPLETE (0x0000)
363#define UNDNAME_NO_LEADING_UNDERSCORES (0x0001)
364#define UNDNAME_NO_MS_KEYWORDS (0x0002)
365#define UNDNAME_NO_FUNCTION_RETURNS (0x0004)
366#define UNDNAME_NO_ALLOCATION_MODEL (0x0008)
367#define UNDNAME_NO_ALLOCATION_LANGUAGE (0x0010)
368#define UNDNAME_NO_MS_THISTYPE (0x0020)
369#define UNDNAME_NO_CV_THISTYPE (0x0040)
370#define UNDNAME_NO_THISTYPE (0x0060)
371#define UNDNAME_NO_ACCESS_SPECIFIERS (0x0080)
372#define UNDNAME_NO_THROW_SIGNATURES (0x0100)
373#define UNDNAME_NO_MEMBER_TYPE (0x0200)
374#define UNDNAME_NO_RETURN_UDT_MODEL (0x0400)
375#define UNDNAME_32_BIT_DECODE (0x0800)
376#define UNDNAME_NAME_ONLY (0x1000)
377#define UNDNAME_NO_ARGUMENTS (0x2000)
378#define UNDNAME_NO_SPECIAL_SYMS (0x4000)
379#define UNDNAME_NO_COMPLEX_TYPE (0x8000)
381#define UCRTBASE_PRINTF_MASK ( \
382 _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION | \
383 _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR | \
384 _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS | \
385 _CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY | \
386 _CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS | \
387 _CRT_INTERNAL_PRINTF_STANDARD_ROUNDING )
389#define MSVCRT_PRINTF_POSITIONAL_PARAMS (0x0100)
390#define MSVCRT_PRINTF_INVOKE_INVALID_PARAM_HANDLER (0x0200)
392#define UCRTBASE_SCANF_MASK ( \
393 _CRT_INTERNAL_SCANF_SECURECRT | \
394 _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS | \
395 _CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY )
397#define COOPERATIVE_TIMEOUT_INFINITE ((unsigned int)-1)
398#define COOPERATIVE_WAIT_TIMEOUT ~0
400#define INHERIT_THREAD_PRIORITY 0xF000
404#define __wine_longjmp longjmp
405#define __wine_jmp_buf _JBTYPE
416#define RtlUnwind __wine__RtlUnwind
static _invalid_parameter_handler invalid_parameter_handler
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void(__cdecl * _invalid_parameter_handler)(const wchar_t *, const wchar_t *, const wchar_t *, unsigned int, uintptr_t)
void __cdecl _purecall(void)
int MSVCRT___lc_collate_cp
void(__cdecl * MSVCRT_security_error_handler)(int, void *)
MSVCRT_wchar_t ** msvcrt_SnapshotOfEnvironmentW(MSVCRT_wchar_t **)
MSVCRT__locale_t MSVCRT_locale
void msvcrt_init_io(void)
void msvcrt_init_mt_locks(void)
void msvcrt_init_math(void)
unsigned msvcrt_create_io_inherit_block(WORD *, BYTE **)
void msvcrt_free_args(void)
void *(__cdecl * malloc_func_t)(MSVCRT_size_t)
void msvcrt_free_io(void)
void msvcrt_free_signals(void)
BOOL msvcrt_init_locale(void)
void __cdecl _amsg_exit(int errnum)
void(__cdecl * free_func_t)(void *)
MSVCRT_wchar_t ** MSVCRT__wenviron
void msvcrt_init_args(void)
char ** msvcrt_SnapshotOfEnvironmentA(char **)
void msvcrt_init_signals(void)
void msvcrt_free_console(void)
thread_data_t * msvcrt_get_thread_data(void)
char *__cdecl __unDName(char *, const char *, int, malloc_func_t, free_func_t, unsigned short int)
MSVCRT_wchar_t * msvcrt_wstrdupa(const char *)
void msvcrt_free_popen_data(void)
LCID locale_to_LCID(const char *, unsigned short *, BOOL *) DECLSPEC_HIDDEN
void __cdecl terminate(void)
int pf_printf_a(puts_clbk_a, void *, const char *, _locale_t, DWORD, args_clbk, void *, va_list *) DECLSPEC_HIDDEN
pthreadlocinfo CDECL get_locinfo(void) DECLSPEC_HIDDEN
union _printf_arg printf_arg
pthreadmbcinfo CDECL get_mbcinfo(void) DECLSPEC_HIDDEN
struct threadmbcinfostruct threadmbcinfo
int pf_printf_w(puts_clbk_w, void *, const wchar_t *, _locale_t, DWORD, args_clbk, void *, va_list *) DECLSPEC_HIDDEN
void msvcrt_free_locks(void) DECLSPEC_HIDDEN
unsigned int MSVCRT__commode
void CDECL __DestructExceptionObject(EXCEPTION_RECORD *)
threadmbcinfo * create_mbcinfo(int, LCID, threadmbcinfo *) DECLSPEC_HIDDEN
_locale_t CDECL get_current_locale_noalloc(_locale_t locale) DECLSPEC_HIDDEN
void __cdecl operator_delete(void *)
BOOL msvcrt_init_heap(void) DECLSPEC_HIDDEN
frame_info *__cdecl _CreateFrameInfo(frame_info *fi, void *obj)
struct fpnum fpnum_parse(wchar_t(*)(void *), void(*)(void *), void *, pthreadlocinfo, BOOL) DECLSPEC_HIDDEN
void msvcrt_init_exception(void *) DECLSPEC_HIDDEN
printf_arg(* args_clbk)(void *, int, int, va_list *)
void free_mbcinfo(pthreadmbcinfo) DECLSPEC_HIDDEN
printf_arg arg_clbk_valist(void *, int, int, va_list *) DECLSPEC_HIDDEN
void msvcrt_destroy_heap(void) DECLSPEC_HIDDEN
struct _frame_info frame_info
BOOL sse2_supported DECLSPEC_HIDDEN
void(__cdecl * _se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info)
void __cdecl __CxxUnregisterExceptionObject(cxx_frame_info *, BOOL)
int __cdecl __crtLCMapStringA(LCID, DWORD, const char *, int, char *, int, unsigned int, int) DECLSPEC_HIDDEN
void(__cdecl * unexpected_function)(void)
int(* puts_clbk_a)(void *, int, const char *)
void CDECL free_locale_noalloc(_locale_t locale) DECLSPEC_HIDDEN
int create_positional_ctx_w(void *, const wchar_t *, va_list) DECLSPEC_HIDDEN
void free_locinfo(pthreadlocinfo) DECLSPEC_HIDDEN
BOOL __cdecl __CxxRegisterExceptionObject(EXCEPTION_POINTERS *, cxx_frame_info *)
void *__cdecl operator_new(size_t)
printf_arg arg_clbk_positional(void *, int, int, va_list *) DECLSPEC_HIDDEN
int __cdecl _set_new_mode(int mode)
void msvcrt_init_clock(void) DECLSPEC_HIDDEN
int(* puts_clbk_w)(void *, int, const wchar_t *)
int fpnum_double(struct fpnum *, double *) DECLSPEC_HIDDEN
void(__cdecl * terminate_function)(void)
int create_positional_ctx_a(void *, const char *, va_list) DECLSPEC_HIDDEN
struct __lc_time_data::@4308::@4309 names
const wchar_t * short_date
EXCEPTION_POINTERS * xcptinfo
unsigned char * mbstok_next
MSVCRT__se_translator_function se_translator
EXCEPTION_RECORD * exc_record
frame_info * frame_info_head
struct MSVCRT_tm * time_buffer
__msvcrt_ulong thread_doserrno
MSVCRT_terminate_function terminate_handler
MSVCRT_wchar_t * wcserror_buffer
MSVCRT_wchar_t * wasctime_buffer
MSVCRT_unexpected_function unexpected_handler
MSVCRT_wchar_t * wcstok_next
MSVCRT_wchar_t * wtmpnam_buffer
struct _frame_info * next
unsigned char mbctype[257]
unsigned char mbcasemap[256]
unsigned short mbulinfo[6]