34#define _DEFINE_SET_FUNCTION(function_name, type, variable_name) \
35 __inline void function_name(type value) \
37 __pragma(warning(push)) \
38 __pragma(warning(disable:4996)) \
39 variable_name = value; \
40 __pragma(warning(pop)) \
46 #define _CRT_LINKER_SYMBOL_PREFIX "_"
47#elif defined _M_X64 || defined _M_ARM || defined _M_ARM64
48 #define _CRT_LINKER_SYMBOL_PREFIX ""
50 #error Unsupported architecture
53#define _CRT_LINKER_FORCE_INCLUDE(name) \
54 __pragma(comment(linker, \
56 _CRT_LINKER_SYMBOL_PREFIX #name \
72#define _CRT_UNBOUNDED_BUFFER_SIZE (static_cast<size_t>(-1))
73#define _Maybe_unsafe_(buffer_annotation, expr) \
74 _When_((expr < _CRT_UNBOUNDED_BUFFER_SIZE), buffer_annotation(expr)) \
75 _When_((expr >= _CRT_UNBOUNDED_BUFFER_SIZE), buffer_annotation(_Inexpressible_("unsafe")))
87 namespace __crt_state_management
90 class dual_state_global;
103 extern __crt_state_management::dual_state_global<int>
_fmode;
104 extern __crt_state_management::dual_state_global<unsigned char*>
_mbctype;
105 extern __crt_state_management::dual_state_global<unsigned char*>
_mbcasemap;
115#define _CORECRT_GENERATE_FORWARDER(prefix, callconv, name, callee_name) \
116 __pragma(warning(push)) \
117 __pragma(warning(disable: 4100)) \
118 template <typename... Params> \
119 prefix auto callconv name(Params&&... args) throw() -> decltype(callee_name(args...)) \
121 _BEGIN_SECURE_CRT_DEPRECATION_DISABLE \
122 return callee_name(args...); \
123 _END_SECURE_CRT_DEPRECATION_DISABLE \
125 __pragma(warning(pop))
148 size_t const max_system_error_message_count = 38;
153 size_t const strerror_buffer_count = (94 + max_system_error_message_count + 2);
224 DWORD dwExceptionCode,
225 DWORD dwExceptionFlags
282#define DBGRPT_MAX_MSG 4096
283#define DBGRPT_TOOLONGMSG "_CrtDbgReport: String too long or IO Error"
284#define DBGRPT_INVALIDMSG "_CrtDbgReport: String too long or Invalid characters in String"
289 template <
typename Character>
290 struct __crt_report_hook_node
294 __crt_report_hook_node* prev;
295 __crt_report_hook_node*
next;
304 _In_ size_t argument_count,
314typedef
bool (
__cdecl* __acrt_initialize_pft )(
void);
397#define MAX_LANG_LEN 64
398#define MAX_CTRY_LEN 64
399#define MAX_LC_LEN (MAX_LANG_LEN + MAX_CTRY_LEN + 3)
402#define CATNAMES_LEN 57
406#define LC_WSTR_TYPE 2
408#define _WSETLOCALE_AVOID_SYNC_LOCALE_BIT 0x10
409#define _PER_THREAD_LOCALE_BIT 0x2
410#define _GLOBAL_LOCALE_BIT 0x1
525#define _In_CRT_NLS_string_(size) _When_((size) < 0, _In_z_) \
526 _When_((size) >= _String_length_(_Curr_), _Pre_z_) \
527 _When_((size) < _String_length_(_Curr_), _In_reads_(size))
601int __cdecl __acrt_MultiByteToWideChar(
775 extern __crt_state_management::dual_state_global<
779 extern __crt_state_management::dual_state_global<
955#define _CORECRT_SPINCOUNT 4000
970 template <
typename Action>
974 return __crt_seh_guarded_call<decltype(action())>()(
998#define _UCRT_HEAP_MISMATCH_DETECTION 0
999#define _UCRT_HEAP_MISMATCH_RECOVERY 0
1000#define _UCRT_HEAP_MISMATCH_BREAK 0
1002#define _UCRT_HEAP_MISMATCH_ANY (_UCRT_HEAP_MISMATCH_DETECTION || _UCRT_HEAP_MISMATCH_RECOVERY || _UCRT_HEAP_MISMATCH_BREAK)
1004#if _UCRT_HEAP_MISMATCH_ANY && (defined _M_IX86 || defined _M_AMD64)
1011 #define _expand_crt _expand
1013 #define _strdup_crt _strdup
1015 #define _dupenv_s_crt _dupenv_s
1016 #define _wdupenv_s_crt _wdupenv_s
1019 #define _expand_crt(p, s) _expand_dbg(p, s, _CRT_BLOCK)
1021 #define _strdup_crt(s) _strdup_dbg(s, _CRT_BLOCK, __FILE__, __LINE__)
1023 #define _dupenv_s_crt(...) _dupenv_s_dbg(__VA_ARGS__, _CRT_BLOCK, __FILE__, __LINE__)
1024 #define _wdupenv_s_crt(...) _wdupenv_s_dbg(__VA_ARGS__, _CRT_BLOCK, __FILE__, __LINE__)
1044 struct __crt_handle_traits
1053 static type get_invalid_value()
throw()
1059 struct __crt_hmodule_traits
1068 static type get_invalid_value()
throw()
1074 struct __crt_findfile_traits
1083 static type get_invalid_value()
throw()
1091 template <
typename Traits>
1092 class __crt_unique_handle_t
1096 typedef Traits traits_type;
1097 typedef typename Traits::type handle_type;
1099 explicit __crt_unique_handle_t(handle_type
const h = traits_type::get_invalid_value())
throw()
1104 __crt_unique_handle_t(
_Inout_ __crt_unique_handle_t&&
h)
throw()
1105 : _handle(
h._handle)
1107 h._handle = traits_type::get_invalid_value();
1110 ~__crt_unique_handle_t()
throw()
1115 __crt_unique_handle_t& operator=(
_Inout_ __crt_unique_handle_t&&
h)
throw()
1118 _handle =
h._handle;
1119 h._handle = traits_type::get_invalid_value();
1123 void attach(handle_type
h)
throw()
1132 handle_type detach()
throw()
1134 handle_type
h = _handle;
1135 _handle = traits_type::get_invalid_value();
1139 handle_type
get()
const throw()
1144 void close()
throw()
1146 if (_handle == traits_type::get_invalid_value())
1149 traits_type::close(_handle);
1150 _handle = traits_type::get_invalid_value();
1155 return _handle != traits_type::get_invalid_value();
1158 operator bool()
const throw()
1163 handle_type* get_address_of()
throw()
1168 handle_type* release_and_get_address_of()
throw()
1176 __crt_unique_handle_t(__crt_unique_handle_t
const&)
throw();
1177 __crt_unique_handle_t& operator=(__crt_unique_handle_t
const&)
throw();
1179 handle_type _handle;
1182 typedef __crt_unique_handle_t<__crt_handle_traits> __crt_unique_handle;
1183 typedef __crt_unique_handle_t<__crt_hmodule_traits> __crt_unique_hmodule;
1184 typedef __crt_unique_handle_t<__crt_findfile_traits> __crt_findfile_handle;
1202 _In_ int string1_count,
1204 _In_ int string2_count,
1273 _In_ int locale_name_count
1307 _In_ int name_count,
1436 extern __crt_state_management::dual_state_global<char**>
_environ_table;
1437 extern __crt_state_management::dual_state_global<wchar_t**>
_wenviron_table;
1460 _In_ int is_top_level_call
1465 _In_ int is_top_level_call
1476 _In_ unsigned char const c,
1480 return locale->locinfo->pcumap[
c];
1484 _In_ unsigned char const c,
1488 return locale->locinfo->pclmap[
c];
1491extern const unsigned short _wctype[];
1494 _In_ unsigned char const c,
1510 _In_ unsigned short const c,
1523 _In_ unsigned char const c,
1540 _In_ unsigned short const c,
1553 _In_ unsigned char const c,
1558 return locale->locinfo->_public._locale_pctype[
c] &
_Mask;
1562 _In_ unsigned char const c,
1574#define _isleadbyte_l(_C, _L) use_isleadbyte_fast_internal_instead_to_prevent_casting_errors()
1577 _In_ unsigned char const c,
1602 if (expression_error == 0)
1623 if (expression_error == 0 || (expression_error != error_value1 && expression_error != error_value2))
1625 return expression_error;
1632 #define _INVOKE_WATSON_IF_ERROR(expr) _invoke_watson_if_error((expr), _CRT_WIDE(#expr), __FUNCTIONW__, __FILEW__, __LINE__, 0)
1633 #define _INVOKE_WATSON_IF_ONEOF(expr, errvalue1, errvalue2) _invoke_watson_if_oneof(expr, (errvalue1), (errvalue2), _CRT_WIDE(#expr), __FUNCTIONW__, __FILEW__, __LINE__, 0)
1635 #define _INVOKE_WATSON_IF_ERROR(expr) _invoke_watson_if_error(expr, NULL, NULL, NULL, 0, 0)
1636 #define _INVOKE_WATSON_IF_ONEOF(expr, errvalue1, errvalue2) _invoke_watson_if_oneof((expr), (errvalue1), (errvalue2), NULL, NULL, NULL, 0, 0)
1639#define _ERRCHECK(e) _INVOKE_WATSON_IF_ERROR(e)
1640#define _ERRCHECK_EINVAL(e) _INVOKE_WATSON_IF_ONEOF(e, EINVAL, EINVAL)
1641#define _ERRCHECK_EINVAL_ERANGE(e) _INVOKE_WATSON_IF_ONEOF(e, EINVAL, ERANGE)
1643#define _ERRCHECK_SPRINTF(_PrintfCall) \
1645 errno_t _SaveErrno = errno; \
1647 if ((_PrintfCall) < 0) \
1649 _ERRCHECK_EINVAL_ERANGE(errno); \
1651 errno = _SaveErrno; \
1663#ifndef _SECURECRT_FILL_BUFFER
1665 #define _SECURECRT_FILL_BUFFER 1
1667 #define _SECURECRT_FILL_BUFFER 0
1671#ifndef _SECURECRT_FILL_BUFFER_THRESHOLD
1674 #if defined _PREFAST_ || !defined _DEBUG
1675 #define _SECURECRT_FILL_BUFFER_THRESHOLD ((size_t)0)
1677 #define _SECURECRT_FILL_BUFFER_THRESHOLD (_CrtGetDebugFillThreshold())
1682#if _SECURECRT_FILL_BUFFER
1683 #define _SECURECRT__FILL_STRING(_String, _Count, _Offset) \
1684 if ((_Count) != ((size_t)-1) && \
1685 (_Count) != INT_MAX && \
1686 ((size_t)(_Offset)) < (_Count)) \
1688 size_t max_buffer_count = _SECURECRT_FILL_BUFFER_THRESHOLD; \
1690 (_String) + (_Offset), \
1691 _SECURECRT_FILL_BUFFER_PATTERN, \
1692 (max_buffer_count < ((size_t)((_Count) - (_Offset))) \
1693 ? max_buffer_count \
1694 : ((_Count) - (_Offset))) * sizeof(*(_String))); \
1697 #define _SECURECRT__FILL_STRING(_String, _Count, _Offset)
1700#if _SECURECRT_FILL_BUFFER
1701 #define _SECURECRT__FILL_BYTE(_Position) \
1702 if (_SECURECRT_FILL_BUFFER_THRESHOLD > 0) \
1704 (_Position) = _SECURECRT_FILL_BUFFER_PATTERN; \
1707 #define _SECURECRT__FILL_BYTE(_Position)
1718#define _VALIDATE_STREAM_ANSI_RETURN(stream, errorcode, retexpr) \
1720 __crt_stdio_stream const _Stream(stream); \
1722 _VALIDATE_RETURN(( \
1723 (_Stream.is_string_backed()) || \
1724 (fn = _fileno(_Stream.public_stream()), \
1725 ((_textmode_safe(fn) == __crt_lowio_text_mode::ansi) && \
1726 !_tm_unicode_safe(fn)))), \
1727 errorcode, retexpr) \
1730#define _CHECK_FH_RETURN( handle, errorcode, retexpr ) \
1732 if(handle == _NO_CONSOLE_FILENO) \
1734 errno = errorcode; \
1735 return ( retexpr ); \
1739#define _CHECK_FH_CLEAR_OSSERR_RETURN( handle, errorcode, retexpr ) \
1741 if(handle == _NO_CONSOLE_FILENO) \
1744 errno = errorcode; \
1745 return ( retexpr ); \
1749#define _CHECK_FH_CLEAR_OSSERR_RETURN_ERRCODE( handle, retexpr ) \
1751 if(handle == _NO_CONSOLE_FILENO) \
1754 return ( retexpr ); \
1766 #define _REDIRECT_TO_L_VERSION_FUNC_PROLOGUE extern "C"
1768 #define _REDIRECT_TO_L_VERSION_FUNC_PROLOGUE
1771#define _REDIRECT_TO_L_VERSION_1(_ReturnType, _FunctionName, _Type1) \
1772 _REDIRECT_TO_L_VERSION_FUNC_PROLOGUE \
1773 _ReturnType __cdecl _FunctionName(_Type1 _Arg1) \
1775 return _FunctionName##_l(_Arg1, NULL); \
1778#define _REDIRECT_TO_L_VERSION_2(_ReturnType, _FunctionName, _Type1, _Type2) \
1779 _REDIRECT_TO_L_VERSION_FUNC_PROLOGUE \
1780 _ReturnType __cdecl _FunctionName(_Type1 _Arg1, _Type2 _Arg2) \
1782 return _FunctionName##_l(_Arg1, _Arg2, NULL); \
1785#define _REDIRECT_TO_L_VERSION_3(_ReturnType, _FunctionName, _Type1, _Type2, _Type3) \
1786 _REDIRECT_TO_L_VERSION_FUNC_PROLOGUE \
1787 _ReturnType __cdecl _FunctionName(_Type1 _Arg1, _Type2 _Arg2, _Type3 _Arg3) \
1789 return _FunctionName##_l(_Arg1, _Arg2, _Arg3, NULL); \
1792#define _REDIRECT_TO_L_VERSION_4(_ReturnType, _FunctionName, _Type1, _Type2, _Type3, _Type4) \
1793 _REDIRECT_TO_L_VERSION_FUNC_PROLOGUE \
1794 _ReturnType __cdecl _FunctionName(_Type1 _Arg1, _Type2 _Arg2, _Type3 _Arg3, _Type4 _Arg4) \
1796 return _FunctionName##_l(_Arg1, _Arg2, _Arg3, _Arg4, NULL); \
1814 class __crt_cached_ptd_host;
1830 _Inout_ __crt_cached_ptd_host&
1853 _In_ size_t const current_global_state_index
1859 _In_ size_t const current_global_state_index
1862 extern "C" __inline bool __acrt_should_sync_with_global_locale(
1895 extern "C" __inline void __acrt_disable_global_locale_sync(
1900 ptd->_own_locale |= bit_value;
1903 extern "C" __inline void __acrt_enable_global_locale_sync(
1908 ptd->_own_locale &= ~bit_value;
1922 _locale_pointers = *
locale;
1924 else if (!__acrt_locale_changed())
1931 _locale_pointers.locinfo = _ptd->_locale_info;
1932 _locale_pointers.mbcinfo = _ptd->_multibyte_info;
1941 __acrt_disable_global_locale_sync(_ptd);
1947 ~_LocaleUpdate()
throw()
1951 __acrt_enable_global_locale_sync(_ptd);
1957 return &_locale_pointers;
1982 class __crt_deferred_errno_cache
1987 __crt_deferred_errno_cache()
throw()
1996 _cached_errno = &
errno;
1999 return *_cached_errno;
2016 struct __crt_errno_guard
2021 __crt_errno_guard(
errno_t*
const errno_address = &
errno)
throw()
2022 : _errno_address(errno_address), _stored_errno(*errno_address)
2027 ~__crt_errno_guard()
throw()
2029 if (*_errno_address == 0 && _stored_errno != 0)
2030 *_errno_address = _stored_errno;
2035 __crt_errno_guard(__crt_errno_guard
const&)
throw();
2036 void operator=(__crt_errno_guard
const&)
throw();
2044 class __crt_scoped_get_last_error_reset
2048 __crt_scoped_get_last_error_reset()
throw()
2053 ~__crt_scoped_get_last_error_reset()
throw()
2059 __crt_scoped_get_last_error_reset(__crt_scoped_get_last_error_reset
const&);
2060 __crt_scoped_get_last_error_reset& operator=(__crt_scoped_get_last_error_reset
const&);
2062 DWORD _old_last_error;
return __acrt_WideCharToMultiByte(code_page, 0, buffer.get(), -1, result_size !=0 ? result :nullptr, result_size, nullptr, nullptr)
BOOL __cdecl __acrt_GetStringTypeA(_locale_t const locale, DWORD const info_type, LPCSTR const string, int const string_size_in_bytes, unsigned short *const char_type, int const code_page, BOOL const error)
int __cdecl __acrt_LCMapStringA(_locale_t const plocinfo, PCWSTR const LocaleName, DWORD const dwMapFlags, PCCH const lpSrcStr, int const cchSrc, PCH const lpDestStr, int const cchDest, int const code_page, BOOL const bError)
int __cdecl __acrt_LCMapStringW(LPCWSTR const locale_name, DWORD const map_flags, LPCWSTR const source, int source_count, LPWSTR const destination, int const destination_count)
AppPolicyShowDeveloperDiagnostic
AppPolicyThreadInitializationType
AppPolicyProcessTerminationMethod
WINBASEAPI _Check_return_ _Out_ AppPolicyProcessTerminationMethod * policy
unsigned char *__cdecl __acrt_allocate_buffer_for_argv(size_t const argument_count, size_t const character_count, size_t const character_size)
errno_t __acrt_expand_wide_argv_wildcards(wchar_t **const argv, wchar_t ***const result)
errno_t __acrt_expand_narrow_argv_wildcards(char **const argv, char ***const result)
void get(int argc, const char *argv[])
wchar_t ** __acrt_capture_wide_argv(va_list *const arglist, wchar_t const *const first_argument, wchar_t **const caller_array, size_t const caller_array_count)
char ** __acrt_capture_narrow_argv(va_list *const arglist, char const *const first_argument, char **const caller_array, size_t const caller_array_count)
SIZE_T LPPROCESS_INFORMATION
__acrt_ptd *__cdecl __acrt_getptd(void)
LONG WINAPI __acrt_AppPolicyGetThreadInitializationTypeInternal(_Out_ AppPolicyThreadInitializationType *policy)
DWORD64 WINAPI __acrt_GetEnabledXStateFeatures(void)
int WINAPI __acrt_LCMapStringEx(_In_opt_ LPCWSTR locale_name, _In_ DWORD flags, _In_CRT_NLS_string_(source_count) LPCWSTR source, _In_ int source_count, _Out_writes_opt_(destination_count) LPWSTR destination, _In_ int destination_count, _In_opt_ LPNLSVERSIONINFO version, _In_opt_ LPVOID reserved, _In_opt_ LPARAM sort_handle)
bool(__cdecl * __acrt_uninitialize_pft)(bool)
bool __cdecl __acrt_uninitialize_command_line(_In_ bool terminating)
__crt_locale_pointers __acrt_initial_locale_pointers
developer_information_policy
@ developer_information_policy_ui
@ developer_information_policy_unknown
@ developer_information_policy_none
process_end_policy __cdecl __acrt_get_process_end_policy(void)
void __cdecl __acrt_unlock(_In_ __acrt_lock_id lock)
_Check_return_ int __cdecl __ascii_wcsicmp(_In_z_ const wchar_t *lhs, _In_z_ const wchar_t *rhs)
bool __cdecl __acrt_uninitialize_lowio(_In_ bool terminating)
_Check_return_ int __cdecl __ascii_wcsnicmp(_In_reads_or_z_(count) const wchar_t *lhs, _In_reads_or_z_(count) const wchar_t *rhs, _In_ size_t count)
_In_ size_t character_count
void __cdecl __acrt_release_locale_ref(__crt_locale_data *)
void WINAPI __acrt_RoUninitialize(void)
__crt_multibyte_data *__cdecl __acrt_update_thread_multibyte_data(void)
LONG WINAPI __acrt_AppPolicyGetWindowingModelInternal(_Out_ AppPolicyWindowingModel *policy)
int __cdecl __acrt_pack_wide_command_line_and_environment(_In_z_ wchar_t const *const *argv, _In_opt_z_ wchar_t const *const *envp, _Outptr_result_maybenull_ wchar_t **command_line_result, _Outptr_result_maybenull_ wchar_t **environment_block_result)
_Ret_z_ _In_z_ char const * first_argument
_Check_return_ __forceinline wint_t _towupper_fast_internal(_In_ unsigned char const c, _In_ _locale_t const locale)
_Check_return_ __forceinline unsigned char __cdecl _toupper_fast_internal(_In_ unsigned char const c, _In_ _locale_t const locale)
__acrt_ptd *__cdecl __acrt_getptd_head(void)
bool __cdecl __acrt_execute_initializers(_In_reads_(last - first) _In_ __acrt_initializer const *first, _In_reads_(0) __acrt_initializer const *last)
int WINAPI __acrt_GetLocaleInfoEx(_In_opt_ LPCWSTR locale_name, _In_ LCTYPE lc_type, _Out_writes_opt_(data_count) LPWSTR data, _In_ int data_count)
_Out_opt_ UINT _Out_opt_ __crt_locale_strings * result_strings
void __cdecl __dcrt_uninitialize_environments_nolock(void)
_Check_return_ int __cdecl __ascii_stricmp(_In_z_ char const *lhs, _In_z_ char const *rhs)
_In_ DWORD _In_ LPCWSTR _In_ int _In_ int _In_opt_ LPCSTR _LpDefaultChar
_In_ DWORD _In_ int _Out_ LPWORD _In_ int _In_ BOOL _BError
BOOL WINAPI __acrt_SetThreadStackGuarantee(_Inout_ PULONG stack_size_in_bytes)
DWORD __cdecl __acrt_GetModuleFileNameA(_In_opt_ HMODULE hModule, _When_(return< nSize, _Out_writes_to_(nSize, return+1)) _When_(return==nSize, _Out_writes_all_(nSize) _Null_terminated_) char *lpFilename, _In_range_(1, MAX_PATH) DWORD nSize)
struct lconv * __acrt_lconv
BOOL __cdecl __acrt_SetCurrentDirectoryA(_In_ LPCSTR lpPathName)
int __cdecl __acrt_CompareStringW(_In_ LPCWSTR _LocaleName, _In_ DWORD _DwCmpFlags, _In_CRT_NLS_string_(_CchCount1) PCWCH _LpString1, _In_ int _CchCount1, _In_CRT_NLS_string_(_CchCount2) PCWCH _LpString2, _In_ int _CchCount2)
#define _DEFINE_SET_FUNCTION(function_name, type, variable_name)
int WINAPI __acrt_GetUserDefaultLocaleName(_Out_writes_(locale_name_count) LPWSTR locale_name, _In_ int locale_name_count)
long __cdecl __acrt_locale_add_lc_time_reference(_In_opt_ __crt_lc_time_data const *lc_time)
bool __cdecl __acrt_initialize_lowio(void)
_In_ size_t _In_ size_t character_size
__crt_locale_string_table const __acrt_rg_language[]
int __cdecl __acrt_CompareStringA(_In_opt_ _locale_t _Plocinfo, _In_ LPCWSTR _LocaleName, _In_ DWORD _DwCmpFlags, _In_CRT_NLS_string_(_CchCount1) PCCH _LpString1, _In_ int _CchCount1, _In_CRT_NLS_string_(_CchCount2) PCCH _LpString2, _In_ int _CchCount2, _In_ int _CodePage)
BOOL WINAPI __acrt_FlsFree(_In_ DWORD dwFlsIndex)
_Check_return_ __forceinline wint_t _towlower_fast_internal(_In_ unsigned char const c, _In_ _locale_t const locale)
_In_ DWORD _In_ LPCSTR _In_ int _In_ int _CchWideChar
_Ret_z_ __inline char const * _get_sys_err_msg(size_t const m)
_In_ DWORD _In_ LPCWSTR _LpWideCharStr
size_t const __acrt_signal_action_first_fpe_index
int __cdecl __dcrt_set_variable_in_wide_environment_nolock(_In_ _Post_invalid_ wchar_t *option, _In_ int is_top_level_call)
@ __acrt_lowio_index_lock
@ __acrt_stdio_index_lock
@ __acrt_environment_lock
@ __acrt_multibyte_cp_lock
LONG WINAPI __acrt_AppPolicyGetProcessTerminationMethodInternal(_Out_ AppPolicyProcessTerminationMethod *policy)
bool __cdecl __acrt_initialize_winapi_thunks(void)
bool __cdecl __acrt_can_use_vista_locale_apis(void)
__crt_lc_time_data const __lc_time_c
bool __cdecl __acrt_app_verifier_enabled(void)
_In_ DWORD _In_ int _Out_ LPWORD _In_ int _CodePage
BOOL __cdecl __acrt_CreateProcessA(_In_opt_ LPCSTR lpApplicationName, _Inout_opt_ LPSTR lpCommandLine, _In_opt_ LPSECURITY_ATTRIBUTES lpProcessAttributes, _In_opt_ LPSECURITY_ATTRIBUTES lpThreadAttributes, _In_ BOOL bInheritHandles, _In_ DWORD dwCreationFlags, _In_opt_ LPVOID lpEnvironment, _In_opt_ LPCSTR lpCurrentDirectory, _In_ LPSTARTUPINFOW lpStartupInfo, _Out_ LPPROCESS_INFORMATION lpProcessInformation)
void __cdecl __acrt_locale_free_numeric(_Inout_ struct lconv *lconv)
void __cdecl __acrt_freeptd(void)
__crt_locale_string_table const __acrt_rg_country[]
BOOL WINAPI __acrt_EnumSystemLocalesEx(_In_ LOCALE_ENUMPROCEX enum_proc, _In_ DWORD flags, _In_ LPARAM param, _In_opt_ LPVOID reserved)
begin_thread_init_policy __cdecl __acrt_get_begin_thread_init_policy(void)
wchar_t __acrt_wide_c_locale_string[]
void __cdecl __acrt_initialize_invalid_parameter_handler(_In_opt_ void *encoded_null)
_Check_return_ int __cdecl __ascii_strnicmp(_In_reads_or_z_(count) char const *lhs, _In_reads_or_z_(count) char const *rhs, _In_ size_t count)
size_t const _sys_first_posix_error
bool __cdecl __acrt_is_interactive(void)
void __cdecl __acrt_free_locale(__crt_locale_data *)
const unsigned short _wctype[]
void __cdecl __acrt_initialize_user_matherr(void *encoded_null)
int __cdecl __acrt_errno_from_os_error(unsigned long)
bool __cdecl __acrt_has_user_matherr(void)
int __cdecl __acrt_GetLocaleInfoA(_In_opt_ _locale_t _Locale, _In_ int _LCType, _In_ LPCWSTR _LocaleName, _In_ LCTYPE _FieldType, _Out_ void *_Address)
void(__cdecl * __crt_signal_handler_t)(int)
HWND __cdecl __acrt_get_parent_window(void)
@ process_end_policy_terminate_process
@ process_end_policy_exit_process
VOID WINAPI __acrt_GetSystemTimePreciseAsFileTime(_Out_ LPFILETIME system_time)
_In_ LPCWSTR _In_ DWORD _In_ int _In_ int _CchDest
__crt_signal_handler_t __cdecl __acrt_get_sigabrt_handler(void)
@ windowing_model_policy_legacyphone
@ windowing_model_policy_unknown
@ windowing_model_policy_none
@ windowing_model_policy_corewindow
@ windowing_model_policy_hwnd
int WINAPI __acrt_MessageBoxA(_In_opt_ HWND hwnd, _In_opt_ LPCSTR text, _In_opt_ LPCSTR caption, _In_ UINT type)
_Deref_ret_opt_z_ char **__cdecl __dcrt_get_or_create_narrow_environment_nolock(void)
int WINAPI __acrt_GetDateFormatEx(_In_opt_ LPCWSTR locale_name, _In_ DWORD flags, _In_opt_ SYSTEMTIME CONST *date, _In_opt_ LPCWSTR format, _Out_writes_opt_(buffer_count) LPWSTR buffer, _In_opt_ int buffer_count, _In_opt_ LPCWSTR calendar)
bool __cdecl __acrt_execute_uninitializers(_In_reads_(last - first) __acrt_initializer const *first, _In_reads_(0) __acrt_initializer const *last)
#define _PER_THREAD_LOCALE_BIT
_Check_return_ wint_t _towlower_internal(_In_ unsigned short const c, _In_ _locale_t const locale)
_Check_return_ __forceinline unsigned char __cdecl _tolower_fast_internal(_In_ unsigned char const c, _In_ _locale_t const locale)
unsigned short const __newctype[]
void __cdecl __acrt_initialize_signal_handlers(_In_opt_ void *encoded_null)
#define _In_CRT_NLS_string_(size)
BOOL WINAPI __acrt_FlsSetValue(_In_ DWORD dwFlsIndex, _In_opt_ PVOID lpFlsData)
LONG WINAPI __acrt_AppPolicyGetShowDeveloperDiagnosticInternal(_Out_ AppPolicyShowDeveloperDiagnostic *policy)
int WINAPI __acrt_GetTempPath2W(_In_ DWORD nBufferLength, _Out_writes_to_opt_(BufferLength, return+1) LPWSTR lpBuffer)
void __cdecl __acrt_eagerly_load_locale_apis(void)
char const *const _sys_posix_errlist[]
unsigned char const __newcumap[]
HMODULE __cdecl __acrt_LoadLibraryExA(_In_ LPCSTR lpFileName, _Reserved_ HANDLE hFile, _In_ DWORD dwFlags)
wchar_t ** __dcrt_initial_wide_environment
int __cdecl __acrt_invoke_user_matherr(struct _exception *)
int __cdecl __acrt_show_wide_message_box(_In_opt_z_ wchar_t const *text, _In_opt_z_ wchar_t const *caption, _In_ unsigned type)
_Out_opt_ UINT * code_page
__crt_locale_data __acrt_initial_locale_data
size_t const __acrt_signal_action_fpe_count
bool __cdecl __acrt_uninitialize_locks(_In_ bool terminating)
int WINAPI __acrt_MessageBoxW(_In_opt_ HWND hwnd, _In_opt_ LPCWSTR text, _In_opt_ LPCWSTR caption, _In_ UINT type)
LCID __cdecl __acrt_DownlevelLocaleNameToLCID(_In_opt_ LPCWSTR localeName)
void __cdecl __acrt_initialize_new_handler(_In_opt_ void *encoded_null)
__crt_locale_data *__cdecl __acrt_update_thread_locale_data(void)
void __cdecl __acrt_lock(_In_ __acrt_lock_id lock)
__forceinline errno_t _invoke_watson_if_oneof(_In_ errno_t expression_error, _In_ errno_t error_value1, _In_ errno_t error_value2, _In_opt_z_ wchar_t const *expression, _In_opt_z_ wchar_t const *function_name, _In_opt_z_ wchar_t const *file_name, _In_ unsigned int line_number, _In_ uintptr_t reserved)
int __cdecl __dcrt_set_variable_in_narrow_environment_nolock(_In_ _Post_invalid_ char *option, _In_ int is_top_level_call)
struct __crt_signal_action_t const __acrt_exception_action_table[]
_Ret_opt_z_ wchar_t *__cdecl __dcrt_get_wide_environment_from_os(void) _CRT_NOEXCEPT
_Must_inspect_result_ BOOL WINAPI __acrt_GetXStateFeaturesMask(_In_ PCONTEXT context, _Out_ PDWORD64 feature_mask)
bool __cdecl __acrt_initialize_multibyte(void)
_Check_return_ wint_t _towupper_internal(_In_ unsigned short const c, _In_ _locale_t const locale)
bool __cdecl __acrt_initialize_heap(void)
void __cdecl __acrt_locale_free_lc_time_if_unreferenced(_In_opt_ __crt_lc_time_data const *lc_time)
_Ret_z_ _In_z_ char const _In_ size_t caller_array_count
_Ret_opt_z_ char *__cdecl __dcrt_get_narrow_environment_from_os(void) _CRT_NOEXCEPT
bool __cdecl __acrt_uninitialize_winapi_thunks(_In_ bool terminating)
bool __cdecl __acrt_can_use_xstate_apis(void)
_In_ DWORD _In_ LPCSTR _In_ int _CbMultiByte
_In_ DWORD _In_ LPCWSTR _In_ int _In_ int _In_opt_ LPCSTR _Out_opt_ LPBOOL _LpUsedDefaultChar
_Check_return_ int __cdecl __ascii_memicmp(_In_reads_bytes_(count) void const *lhs, _In_reads_bytes_(count) void const *rhs, _In_ size_t count)
void __cdecl __acrt_add_locale_ref(__crt_locale_data *)
int WINAPI __acrt_CompareStringEx(_In_opt_ LPCWSTR locale_name, _In_ DWORD flags, _In_NLS_string_(string1_count) LPCWCH string1, _In_ int string1_count, _In_NLS_string_(string2_count) LPCWCH string2, _In_ int string2_count, _Reserved_ LPNLSVERSIONINFO version, _Reserved_ LPVOID reserved, _Reserved_ LPARAM param)
void __cdecl __acrt_initialize_thread_local_exit_callback(_In_opt_ void *encoded_null)
__crt_multibyte_data __acrt_initial_multibyte_data
bool __cdecl __acrt_initialize_ptd(void)
void __cdecl __acrt_errno_map_os_error(unsigned long)
__inline int __CRTDECL __acrt_isleadbyte_l_noupdate(_In_ int const c, _In_ _locale_t const locale)
bool __cdecl __acrt_is_secure_process(void)
size_t const __acrt_rg_language_count
void __cdecl __acrt_call_reportfault(int nDbgHookCode, DWORD dwExceptionCode, DWORD dwExceptionFlags)
BOOL WINAPI __acrt_IsValidLocaleName(_In_ LPCWSTR locale_name)
long __acrt_locale_changed_data
void __cdecl __acrt_set_locale_changed(void)
bool __cdecl __acrt_initialize_command_line(void)
BOOL WINAPI __acrt_AreFileApisANSI(void)
void __cdecl __acrt_locale_free_time(_Inout_opt_ __crt_lc_time_data *lc_time_data)
int __cdecl __acrt_show_narrow_message_box(_In_opt_z_ char const *text, _In_opt_z_ char const *caption, _In_ unsigned type)
int __cdecl __acrt_pack_narrow_command_line_and_environment(_In_z_ char const *const *argv, _In_opt_z_ char const *const *envp, _Outptr_result_maybenull_ char **command_line_result, _Outptr_result_maybenull_ char **environment_block_result)
_In_ LPCWSTR _In_ DWORD _DwMapFlag
int WINAPI __acrt_GetTimeFormatEx(_In_opt_ LPCWSTR locale_name, _In_ DWORD flags, _In_opt_ SYSTEMTIME CONST *time, _In_opt_ LPCWSTR format, _Out_writes_opt_(buffer_count) LPWSTR buffer, _In_opt_ int buffer_count)
void __cdecl __acrt_report_runtime_error(_In_z_ wchar_t const *message)
bool __cdecl __acrt_can_show_message_box(void)
BOOL __cdecl __acrt_SetEnvironmentVariableA(_In_ LPCSTR lpName, _In_opt_ LPCSTR lpValue)
bool __cdecl __acrt_uninitialize_ptd(_In_ bool terminating)
windowing_model_policy __cdecl __acrt_get_windowing_model_policy(void)
unsigned char const __newclmap[]
bool __cdecl __acrt_initialize_locks(void)
BOOL WINAPI __acrt_InitializeCriticalSectionEx(_Out_ LPCRITICAL_SECTION critical_section, _In_ DWORD spin_count, _In_ DWORD flags)
size_t const _sys_last_posix_error
_Check_return_ __forceinline unsigned short __cdecl _isdigit_fast_internal(_In_ unsigned char const c, _In_ _locale_t const locale)
int WINAPI __acrt_LCIDToLocaleName(_In_ LCID locale, _Out_writes_opt_(name_count) LPWSTR name, _In_ int name_count, _In_ DWORD flags)
DWORD WINAPI __acrt_LocaleNameToLCID(_In_ LPCWSTR name, _In_ DWORD flags)
size_t const __acrt_signal_action_table_count
developer_information_policy __cdecl __acrt_get_developer_information_policy(void)
_Deref_ret_opt_z_ wchar_t **__cdecl __dcrt_get_or_create_wide_environment_nolock(void)
void __cdecl __acrt_locale_free_monetary(_Inout_ struct lconv *lconv)
_In_ DWORD _In_ int _Out_ LPWORD _LpCharType
void WINAPI __acrt_OutputDebugStringA(_In_opt_ LPCSTR text)
__acrt_ptd *__cdecl __acrt_getptd_noexit(void)
_Check_return_ __forceinline unsigned short __cdecl _isleadbyte_fast_internal(_In_ unsigned char const c, _In_ _locale_t const locale)
_CRT_ALLOC_HOOK _pfnAllocHook
long __cdecl __acrt_locale_release_lc_time_reference(_In_opt_ __crt_lc_time_data const *lc_time)
PVOID WINAPI __acrt_FlsGetValue(_In_ DWORD dwFlsIndex)
size_t const __acrt_signal_action_table_size
size_t const __acrt_rg_country_count
DWORD WINAPI __acrt_FlsAlloc(_In_opt_ PFLS_CALLBACK_FUNCTION lpCallback)
_In_ DWORD _In_ int _CchSrc
@ begin_thread_init_policy_ro_initialize
@ begin_thread_init_policy_unknown
@ begin_thread_init_policy_none
bool __cdecl __acrt_uninitialize_heap(_In_ bool terminating)
_Check_return_ __forceinline unsigned short __cdecl _ctype_fast_check_internal(_In_ unsigned char const c, _In_ int const _Mask, _In_ _locale_t const locale)
_In_ DWORD _In_ LPCSTR _LpMultiByteStr
char ** __dcrt_initial_narrow_environment
_CRT_SECURITYCRITICAL_ATTRIBUTE __forceinline void _invoke_watson_if_error(_In_ errno_t expression_error, _In_opt_z_ wchar_t const *expression, _In_opt_z_ wchar_t const *function_name, _In_opt_z_ wchar_t const *file_name, _In_ unsigned int line_number, _In_ uintptr_t reserved)
int(__cdecl * _CRT_ALLOC_HOOK)(int, void *, size_t, int, long, const unsigned char *, int)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
int const char const *const int const line_number
static BOOL is_valid(HIMAGELIST himl)
#define INVALID_HANDLE_VALUE
static const WCHAR version[]
static int __CRTDECL __acrt_locale_get_ctype_array_value(_In_reads_(_Char_value+1) unsigned short const *const locale_pctype_array, _In_range_(-1, 255) int const c, _In_ int const mask)
_Check_return_ _CRTIMP wint_t __cdecl _towupper_l(_In_ wint_t c, _In_opt_ _locale_t locale)
_Check_return_ _CRTIMP wint_t __cdecl _towlower_l(_In_ wint_t c, _In_opt_ _locale_t locale)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
__crt_state_management::dual_state_global< wchar_t ** > _wenviron_table
__crt_state_management::dual_state_global< char ** > _environ_table
void __cdecl __acrt_errno_map_os_error_ptd(unsigned long const oserrno, __crt_cached_ptd_host &ptd)
BOOL __cdecl __acrt_get_qualified_locale(const __crt_locale_strings *, UINT *, __crt_locale_strings *)
char *__cdecl __acrt_getpath(char const *const delimited_paths, char *const result, size_t const result_count)
wchar_t *__cdecl __acrt_wgetpath(wchar_t const *const delimited_paths, wchar_t *const result, size_t const result_count)
BOOL __cdecl __acrt_get_qualified_locale_downlevel(const __crt_locale_strings *lpInStr, UINT *lpOutCodePage, __crt_locale_strings *lpOutStr)
DWORD __cdecl __acrt_GetTempPath2A(DWORD nBufferLength, LPSTR lpBuffer)
GLuint GLuint GLsizei count
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLsizei GLsizei * length
GLfloat GLfloat GLfloat GLfloat h
_CRTIMP char * _sys_errlist[]
void(__cdecl * _invalid_parameter_handler)(const wchar_t *, const wchar_t *, const wchar_t *, unsigned int, uintptr_t)
_CRT_MANAGED_FP_DEPRECATE _In_ unsigned int _Mask
void(__cdecl * terminate_handler)(void)
int __cdecl __acrt_locale_initialize_ctype(__crt_locale_data *ploci)
int __cdecl __acrt_locale_initialize_monetary(__crt_locale_data *ploci)
int __cdecl __acrt_locale_initialize_numeric(__crt_locale_data *ploci)
int __cdecl __acrt_locale_initialize_time(__crt_locale_data *const locale_data)
#define _BEGIN_SECURE_CRT_DEPRECATION_DISABLE
#define _CRT_SECURITYCRITICAL_ATTRIBUTE
#define _END_SECURE_CRT_DEPRECATION_DISABLE
wchar_t const *const function_name
void __cdecl _invalid_parameter_internal(wchar_t const *const expression, wchar_t const *const function_name, wchar_t const *const file_name, unsigned int const line_number, uintptr_t const reserved, __crt_cached_ptd_host &ptd)
int __cdecl __acrt_DownlevelLCIDToLocaleName(LCID lcid, LPWSTR outLocaleName, int cchLocaleName)
void __acrt_update_multibyte_info_explicit(__acrt_ptd *const ptd, __crt_multibyte_data **const multibyte_info, size_t const current_global_state_index)
void __acrt_update_locale_info(__acrt_ptd *const ptd, __crt_locale_data **const locale_info)
void __acrt_update_multibyte_info(__acrt_ptd *const ptd, __crt_multibyte_data **const multibyte_info)
void __acrt_update_locale_info_explicit(__acrt_ptd *const ptd, __crt_locale_data **const locale_info, size_t const current_global_state_index)
__crt_state_management::dual_state_global< __crt_multibyte_data * > __acrt_current_multibyte_data
CRITICAL_SECTION critical_section
static CHAR string1[MAX_PATH]
static CHAR string2[MAX_PATH]
static unsigned(__cdecl *hash_bstr)(bstr_t s)
#define _Deref_ret_opt_z_
__crt_state_management::dual_state_global< __crt_locale_data * > __acrt_current_locale_data
#define _Out_writes_to_opt_(s, c)
#define _In_reads_bytes_(s)
#define _Out_writes_z_(s)
#define _Outptr_result_maybenull_
#define _Out_writes_opt_(s)
#define _Post_writable_byte_size_(s)
#define _Ret_range_(l, h)
#define _Null_terminated_
#define _In_reads_or_z_(s)
#define _Out_writes_opt_z_(s)
#define _Must_inspect_result_
#define _Out_writes_to_(s, c)
#define _Out_writes_bytes_(s)
#define _Out_writes_all_(s)
#define LOCALE_NAME_MAX_LENGTH
static unsigned __int64 next
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
size_t const source_count
#define _In_NLS_string_(size)
__acrt_initialize_pft _initialize
__acrt_uninitialize_pft _uninitialize
struct tm * _gmtime_buffer
__crt_qualified_locale_data_downlevel * _setloc_downlevel_data
wchar_t * _tmpnam_wide_buffer
__crt_multibyte_data * _multibyte_info
_invalid_parameter_handler _thread_local_iph
__acrt_thread_parameter * _beginthread_context
struct __crt_signal_action_t * _pxcptacttab
wchar_t * _wasctime_buffer
wchar_t * _wcserror_buffer
unsigned char _putch_buffer[MB_LEN_MAX]
unsigned short _putch_buffer_used
EXCEPTION_POINTERS * _tpxcptinfoptrs
unsigned char * _mbstok_token
terminate_handler _terminate
__crt_qualified_locale_data _setloc_data
char * _tmpnam_narrow_buffer
__crt_locale_data * _locale_info
bool _initialized_apartment
wchar_t * _W_ww_locale_name
wchar_t * _W_month_abbr[12]
wchar_t * _W_wday_abbr[7]
unsigned char const * pcumap
__crt_locale_data_public _public
long * lconv_mon_refcount
long * lconv_num_refcount
unsigned int lc_collate_cp
__crt_locale_refcount lc_category[6]
__crt_lc_time_data const * lc_time_curr
long * lconv_intl_refcount
unsigned char const * pclmap
wchar_t szLocaleName[LOCALE_NAME_MAX_LENGTH]
wchar_t szLanguage[MAX_LANG_LEN]
wchar_t szCountry[MAX_CTRY_LEN]
wchar_t szCodePage[MAX_CP_LEN]
unsigned short mbulinfo[6]
unsigned char mbcasemap[256]
unsigned char mbctype[257]
wchar_t const * mblocalename
wchar_t _cachein[MAX_LC_LEN]
wchar_t _cacheout[MAX_LC_LEN]
__crt_ctype_compatibility_data _Loc_c[5]
wchar_t const * pchCountry
wchar_t const * pchLanguage
wchar_t _cacheLocaleName[LOCALE_NAME_MAX_LENGTH]
unsigned long _exception_number
__crt_signal_handler_t _action
#define _CRT_END_C_HEADER
#define _CRT_BEGIN_C_HEADER
size_t const destination_count
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t _Inout_ size_t __crt_lc_time_data const * lc_time
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
static BOOL CALLBACK enum_proc(HWND hwnd, LPARAM lParam)
HRESULT WINAPI __acrt_RoInitialize(RO_INIT_TYPE const init_type)
BOOLEAN WINAPI __acrt_RtlGenRandom(PVOID const buffer, ULONG const buffer_count)
PVOID WINAPI __acrt_LocateXStateFeature(PCONTEXT const content, DWORD const feature_id, PDWORD const length)
DWORD WINAPI GetLastError(void)
VOID(WINAPI * PFLS_CALLBACK_FUNCTION)(PVOID)
*nSize LPSTR _Inout_ LPDWORD nSize
_In_ LPCSTR _In_opt_ LPCSTR _In_ DWORD nBufferLength
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
BOOL(CALLBACK * LOCALE_ENUMPROCEX)(LPWSTR, DWORD, LPARAM)
LPWSTR __cdecl __acrt_copy_locale_name(LPCWSTR localeName)
static unsigned int block