网站首页  词典首页

请输入您要查询的函数:

 

术语 getthreadlocale
释义 GetThreadLocale
语法:
LCID GetThreadLocale(void);
GetThreadLocale功能
返回调用线程的当前语言环境的区域设置标识符。
注意:此功能可以检索数据的变化之间的版本,例如,由于自定义区域。如果应用程序必须坚持或传输数据,请参阅使用持久性本地化数据。
参数
这个函数没有参数。
返回值
返回与当前线程关联的区域设置区域设置标识符。
Windows Vista的:这个功能可以返回自定义区域设置标识符。如果当前线程语言环境是一个自定义区域设置,该函数返回LOCALE_CUSTOM_DEFAULT。如果当前线程语言环境是一个补充定义区域设置,该函数可以返回LOCALE_CUSTOM_UNSPECIFIED。所有补充的locales分享这一区域设置标识符。
备注
当应用程序进程启动时,它使用标准和格式的语言环境变量。有关更多信息,请免入息审查术语。
当一个新的线程创建一个进程,它继承了创建线程的语言环境。这个区域可以是默认的标准和格式区域或不同的区域设置为在给SetThreadLocale调用创建线程设置。 GetThreadLocale和SetThreadLocale可以用来修改新线程的语言环境。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnls.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
国家语言支持
国家语言支持功能
GetSystemDefaultLCID
GetUserDefaultLCID
SetThreadLocale
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月12号
==英文原文==GetThreadLocale Function
Returns the locale identifier of the current locale for the calling thread.
Note This function can retrieve data that changes between releases, for example, due to a custom locale. If your application must persist or transmit data, see Using Persistent Locale Data .
Syntax
LCID GetThreadLocale(void);
Parameters
This function has no parameters.
Return Value
Returns the locale identifier of the locale associated with the current thread.
Windows Vista: This function can return the identifier of a custom locale . If the current thread locale is a custom locale, the function returns LOCALE_CUSTOM_DEFAULT . If the current thread locale is a supplemental custom locale, the function can return LOCALE_CUSTOM_UNSPECIFIED . All supplemental locales share this locale identifier.
Remarks
When an application process launches, it uses the Standards and Formats variable for the locale. For more information, see NLS Terminology .
When a new thread is created in a process, it inherits the locale of the creating thread. This locale can be either the default Standards and Formats locale or a different locale set for the creating thread in a call to SetThreadLocale . GetThreadLocale and SetThreadLocale can be used to modify the locale of the new thread.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnls.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
National Language Support
National Language Support Functions
GetSystemDefaultLCID
GetUserDefaultLCID
SetThreadLocale
Send comments about this topic to Microsoft
Build date: 7/12/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd318127(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:29:37