内部 CRT 全局和函数Internal CRT Globals and Functions

C 运行时 (CRT) 库包含仅用于支持公用库接口的函数和全局变量。The C runtime (CRT) library contains functions and global variables that are used only to support the public library interface. 其中一些函数和全局变量作为实现详细信息公开在公共标头中。Some of them are exposed in public headers as implementation details. 虽然可通过公共导出访问这些函数和全局变量,但是不应将它们用于你的代码。Although these functions and global variables are accessible through public exports, they are not intended for use by your code. 建议你更改使用这些函数和变量的任何代码,以改为使用等效的公用库。We recommend that you change any code that uses these functions and variables to use public library equivalents instead. 这些函数可能会在版本之间发生更改。These functions may change from version to version. 将它们列在此处以帮助你进行标识。They are listed here to help you identify them. 存在其他文档时,提供链接,但一般情况下,不记录这些实现的详细信息。Links are provided when additional documentation exists, but in general, these implementation details are not documented.

内部 CRT 全局和值宏Internal CRT Globals and Value Macros

这些全局变量和宏定义用于实现 CRT。These global variables and macro definitions are used to implement the CRT.

名称Name
__badioinfo__badioinfo
_acmdln_acmdln
_commode_commode
_crtAssertBusy_crtAssertBusy
_crtBreakAlloc_crtBreakAlloc
__initenv__initenv
__lconv__lconv
__mb_cur_max__mb_cur_max
__pioinfo__pioinfo
__unguarded_readlc_active__unguarded_readlc_active
_wcmdln_wcmdln
__winitenv__winitenv

内部 CRT 函数和函数宏Internal CRT Functions and Function Macros

这些函数和函数宏用于实现 CRT 和 C++ 标准库。These functions and function macros are used to implement the CRT and the C++ Standard Library.

名称Name
__acrt_iob_func__acrt_iob_func
__AdjustPointer__AdjustPointer
_assert_assert
__BuildCatchObject__BuildCatchObject
__BuildCatchObjectHelper__BuildCatchObjectHelper
__C_specific_handler__C_specific_handler
_calloc_base_calloc_base
_chkesp_chkesp
__chkstk__chkstk
_chkstk_chkstk
_chvalidator_chvalidator
_chvalidator_l_chvalidator_l
_CIacos_CIacos
_CIasin_CIasin
_CIatan_CIatan
_CIatan2_CIatan2
_CIcos_CIcos
_CIcosh_CIcosh
_CIexp_CIexp
_CIfmod_CIfmod
_CIlog_CIlog
_CIlog10_CIlog10
_CIpow_CIpow
_CIsin_CIsin
_CIsinh_CIsinh
_CIsqrt_CIsqrt
_CItan_CItan
_CItanh_CItanh
__clean_type_info_names_internal__clean_type_info_names_internal
_configure_narrow_argv_configure_narrow_argv
_configure_wide_argv_configure_wide_argv
__conio_common_vcprintf__conio_common_vcprintf
__conio_common_vcprintf_p__conio_common_vcprintf_p
__conio_common_vcprintf_s__conio_common_vcprintf_s
__conio_common_vcscanf__conio_common_vcscanf
__conio_common_vcwprintf__conio_common_vcwprintf
__conio_common_vcwprintf_p__conio_common_vcwprintf_p
__conio_common_vcwprintf_s__conio_common_vcwprintf_s
__conio_common_vcwscanf__conio_common_vcwscanf
__CppXcptFilter__CppXcptFilter
__create_locale__create_locale
_crt_atexit_crt_atexit
_crt_at_quick_exit_crt_at_quick_exit
__crtCompareStringA__crtCompareStringA
__crtCompareStringEx__crtCompareStringEx
__crtCompareStringW__crtCompareStringW
__crtCreateEventExW__crtCreateEventExW
__crtCreateSemaphoreExW__crtCreateSemaphoreExW
__crtCreateSymbolicLinkW__crtCreateSymbolicLinkW
__crtEnumSystemLocalesEx__crtEnumSystemLocalesEx
__crtFlsAlloc__crtFlsAlloc
__crtFlsFree__crtFlsFree
__crtFlsGetValue__crtFlsGetValue
__crtFlsSetValue__crtFlsSetValue
_CrtGetCheckCount_CrtGetCheckCount
__crtGetDateFormatEx__crtGetDateFormatEx
__crtGetFileInformationByHandleEx__crtGetFileInformationByHandleEx
__crtGetLocaleInfoEx__crtGetLocaleInfoEx
__crtGetShowWindowMode__crtGetShowWindowMode
__crtGetTickCount64__crtGetTickCount64
__crtGetTimeFormatEx__crtGetTimeFormatEx
__crtGetUserDefaultLocaleName__crtGetUserDefaultLocaleName
__crtInitializeCriticalSectionEx__crtInitializeCriticalSectionEx
__crtIsPackagedApp__crtIsPackagedApp
__crtIsValidLocaleName__crtIsValidLocaleName
__crtLCMapStringA__crtLCMapStringA
__crtLCMapStringEx__crtLCMapStringEx
__crtLCMapStringW__crtLCMapStringW
_CrtSetCheckCount_CrtSetCheckCount
_CrtSetDbgBlockType_CrtSetDbgBlockType
__crtSetFileInformationByHandle__crtSetFileInformationByHandle
__crtSetThreadStackGuarantee__crtSetThreadStackGuarantee
__crtSetUnhandledExceptionFilter__crtSetUnhandledExceptionFilter
__crtSleep__crtSleep
__crtTerminateProcess__crtTerminateProcess
__crtUnhandledException__crtUnhandledException
__CxxDetectRethrow__CxxDetectRethrow
__CxxExceptionFilter__CxxExceptionFilter
__CxxFrameHandler__CxxFrameHandler
__CxxFrameHandler2__CxxFrameHandler2
__CxxFrameHandler3__CxxFrameHandler3
__CxxLongjmpUnwind__CxxLongjmpUnwind
__CxxQueryExceptionSize__CxxQueryExceptionSize
__CxxRegisterExceptionObject__CxxRegisterExceptionObject
_CxxThrowException_CxxThrowException
__CxxUnregisterExceptionObject__CxxUnregisterExceptionObject
__daylight__daylight
_dclass_dclass
__DestructExceptionObject__DestructExceptionObject
__dllonexit__dllonexit
__doserrno__doserrno
_dosmaperr_dosmaperr
_dpcomp_dpcomp
_dsign_dsign
__dstbias__dstbias
_dtest_dtest
_EH_prolog_EH_prolog
_errno_errno
_except_handler2_except_handler2
_except_handler3_except_handler3
_except_handler4_common_except_handler4_common
_except1_except1
_execute_onexit_table_execute_onexit_table
_fdclass_fdclass
_fdpcomp_fdpcomp
_fdsign_fdsign
_fdtest_fdtest
_filbuf_filbuf
_FindAndUnlinkFrame_FindAndUnlinkFrame
_flsbuf_flsbuf
__fpe_flt_rounds__fpe_flt_rounds
_FPE_Raise_FPE_Raise
__fpecode__fpecode
__FrameUnwindFilter__FrameUnwindFilter
_fread_nolock_s_fread_nolock_s
_free_base_free_base
__free_locale__free_locale
_freea_s_freea_s
_freefls_freefls
_ftol_ftol
__get_current_locale__get_current_locale
__get_flsindex__get_flsindex
_get_initial_narrow_environment_get_initial_narrow_environment
_get_initial_wide_environment_get_initial_wide_environment
_get_narrow_winmain_command_line_get_narrow_winmain_command_line
_get_stream_buffer_pointers_get_stream_buffer_pointers
__get_tlsindex__get_tlsindex
_get_wide_winmain_command_line_get_wide_winmain_command_line
_Getdays_Getdays
__getmainargs__getmainargs
_Getmonths_Getmonths
__GetPlatformExceptionInfo__GetPlatformExceptionInfo
_getptd_getptd
_Gettnames_Gettnames
_global_unwind2_global_unwind2
_inconsistency_inconsistency
_initialize_lconv_for_unsigned_char_initialize_lconv_for_unsigned_char
_initialize_narrow_environment_initialize_narrow_environment
_initialize_onexit_table_initialize_onexit_table
_initialize_wide_environment_initialize_wide_environment
_initptd_initptd
_invalid_parameter_invalid_parameter
_invoke_watson_invoke_watson
__iob_func__iob_func
_IsExceptionObjectToBeDestroyed_IsExceptionObjectToBeDestroyed
___lc_codepage_func___lc_codepage_func
___lc_collate_cp_func___lc_collate_cp_func
___lc_locale_name_func___lc_locale_name_func
__lconv_init__lconv_init
_ldclass_ldclass
_ldpcomp_ldpcomp
_ldsign_ldsign
_ldtest_ldtest
__libm_sse2_acos__libm_sse2_acos
_libm_sse2_acos_precise_libm_sse2_acos_precise
__libm_sse2_acosf__libm_sse2_acosf
__libm_sse2_asin__libm_sse2_asin
_libm_sse2_asin_precise_libm_sse2_asin_precise
__libm_sse2_asinf__libm_sse2_asinf
__libm_sse2_atan__libm_sse2_atan
_libm_sse2_atan_precise_libm_sse2_atan_precise
__libm_sse2_atan2__libm_sse2_atan2
__libm_sse2_atanf__libm_sse2_atanf
__libm_sse2_cos__libm_sse2_cos
_libm_sse2_cos_precise_libm_sse2_cos_precise
__libm_sse2_cosf__libm_sse2_cosf
__libm_sse2_exp__libm_sse2_exp
_libm_sse2_exp_precise_libm_sse2_exp_precise
__libm_sse2_expf__libm_sse2_expf
__libm_sse2_log__libm_sse2_log
_libm_sse2_log_precise_libm_sse2_log_precise
__libm_sse2_log10__libm_sse2_log10
_libm_sse2_log10_precise_libm_sse2_log10_precise
__libm_sse2_log10f__libm_sse2_log10f
__libm_sse2_logf__libm_sse2_logf
__libm_sse2_pow__libm_sse2_pow
_libm_sse2_pow_precise_libm_sse2_pow_precise
__libm_sse2_powf__libm_sse2_powf
__libm_sse2_sin__libm_sse2_sin
_libm_sse2_sin_precise_libm_sse2_sin_precise
__libm_sse2_sinf__libm_sse2_sinf
_libm_sse2_sqrt_precise_libm_sse2_sqrt_precise
__libm_sse2_tan__libm_sse2_tan
_libm_sse2_tan_precise_libm_sse2_tan_precise
__libm_sse2_tanf__libm_sse2_tanf
_local_unwind2_local_unwind2
_local_unwind4_local_unwind4
_lock_locales_lock_locales
_longjmpex_longjmpex
_malloc_base_malloc_base
___mb_cur_max_func___mb_cur_max_func
___mb_cur_max_l_func___mb_cur_max_l_func
_mbctype_mbctype
_NLG_Dispatch2_NLG_Dispatch2
_NLG_Return_NLG_Return
_NLG_Return2_NLG_Return2
__p___argc__p___argc
__p___argv__p___argv
__p___initenv__p___initenv
__p___mb_cur_max__p___mb_cur_max
__p___wargv__p___wargv
__p___winitenv__p___winitenv
__acmdln__p__acmdln
__p__commode__p__commode
__p__crtAssertBusy__p__crtAssertBusy
__p__crtBreakAlloc__p__crtBreakAlloc
__p__crtDbgFlag__p__crtDbgFlag
__p__daylight__p__daylight
__p__dstbias__p__dstbias
__p__environ__p__environ
__p__fmode__p__fmode
__p__iob__p__iob
__p__mbcasemap__p__mbcasemap
__p__mbctype__p__mbctype
__p__pctype__p__pctype
__p__pgmptr__p__pgmptr
__p__pwctype__p__pwctype
__p__timezone__p__timezone
__p__tzname__p__tzname
__p__wcmdln__p__wcmdln
__p__wenviron__p__wenviron
__p__wpgmptr__p__wpgmptr
_pctype_pctype
__pctype_func__pctype_func
_pwctype_pwctype
__pwctype_func__pwctype_func
__pxcptinfoptrs__pxcptinfoptrs
_realloc_base_realloc_base
_register_onexit_function_register_onexit_function
_register_thread_local_exe_atexit_callback_register_thread_local_exe_atexit_callback
__report_gsfailure__report_gsfailure
__RTCastToVoid__RTCastToVoid
__RTDynamicCast__RTDynamicCast
__RTtypeid__RTtypeid
_seh_filter_dll_seh_filter_dll
_seh_filter_exe_seh_filter_exe
_seh_longjmp_unwind_seh_longjmp_unwind
_seh_longjmp_unwind4_seh_longjmp_unwind4
__set_app_type__set_app_type
_set_malloc_crt_max_wait_set_malloc_crt_max_wait
_setjmp3_setjmp3
__setlc_active__setlc_active
___setlc_active_func___setlc_active_func
__setusermatherr__setusermatherr
_SetWinRTOutOfMemoryExceptionCallback_SetWinRTOutOfMemoryExceptionCallback
_sopen_dispatch_sopen_dispatch
__std_exception_copy__std_exception_copy
__std_exception_destroy__std_exception_destroy
__std_type_info_destroy_list__std_type_info_destroy_list
__stdio_common_vfprintf__stdio_common_vfprintf
__stdio_common_vfprintf_p__stdio_common_vfprintf_p
__stdio_common_vfprintf_s__stdio_common_vfprintf_s
__stdio_common_vfscanf__stdio_common_vfscanf
__stdio_common_vfwprintf__stdio_common_vfwprintf
__stdio_common_vfwprintf_p__stdio_common_vfwprintf_p
__stdio_common_vfwprintf_s__stdio_common_vfwprintf_s
__stdio_common_vfwscanf__stdio_common_vfwscanf
__stdio_common_vsnprintf_s__stdio_common_vsnprintf_s
__stdio_common_vsnwprintf_s__stdio_common_vsnwprintf_s
__stdio_common_vsprintf__stdio_common_vsprintf
__stdio_common_vsprintf_p__stdio_common_vsprintf_p
__stdio_common_vsprintf_s__stdio_common_vsprintf_s
__stdio_common_vsscanf__stdio_common_vsscanf
__stdio_common_vswprintf__stdio_common_vswprintf
__stdio_common_vswprintf_p__stdio_common_vswprintf_p
__stdio_common_vswprintf_s__stdio_common_vswprintf_s
__stdio_common_vswscanf__stdio_common_vswscanf
_Strftime_Strftime
__STRINGTOLD__STRINGTOLD
__STRINGTOLD_L__STRINGTOLD_L
__strncnt__strncnt
__sys_errlist__sys_errlist
__sys_nerr__sys_nerr
__threadhandle__threadhandle
__threadid__threadid
__timezone__timezone
__TypeMatch__TypeMatch
__tzname__tzname
__unDName__unDName
__unDNameEx__unDNameEx
__unDNameHelper__unDNameHelper
__unguarded_readlc_active__unguarded_readlc_active
___unguarded_readlc_active_add_func___unguarded_readlc_active_add_func
_unloaddll_unloaddll
_unlock_locales_unlock_locales
_vacopy_vacopy
_ValidateExecute_ValidateExecute
_ValidateRead_ValidateRead
_ValidateWrite_ValidateWrite
_VCrtDbgReportA_VCrtDbgReportA
_VCrtDbgReportW_VCrtDbgReportW
_W_Getdays_W_Getdays
_W_Getmonths_W_Getmonths
_W_Getnames_W_Getnames
_wassert_wassert
_Wcsftime_Wcsftime
__wcsncnt__wcsncnt
__wgetmainargs__wgetmainargs
_wsopen_dispatch_wsopen_dispatch
_Xbad_alloc_Xbad_alloc
_Xlength_error_Xlength_error

另请参阅See Also

按类别分的运行时例程Run-Time Routines by Category