网站首页  词典首页

请输入您要查询的函数:

 

术语 convertdefaultlocale
释义 ConvertDefaultLocale
语法:
LCID ConvertDefaultLocale(
__in LCID Locale
);
ConvertDefaultLocale功能
默认区域设置转换为实际值区域设置标识符。
注意:此功能仅提供了部分区域设置标识符转换。您的应用程序应该使用地区名称,而不是标识符。该LCIDToLocaleName功能可用于将设置标识符一个有效的区域名称。您的应用程序也可以使用GetUserDefaultLocaleName检索当前用户的区域设置的名称; GetSystemDefaultLocaleName检索当前系统区域设置的名称,以及与LOCALE_SNAME GetLocaleInfoEx以检索任何输入法区域设置的区域设置的名称,包括默认常量。
参数
区域设置 [in]
默认区域设置标识符值转换。您可以使用MAKELCID宏创建一个区域设置标识符或使用下列预定义的值之一。
LOCALE_INVARIANT
LOCALE_SYSTEM_DEFAULT
LOCALE_USER_DEFAULT
Windows Vista和更高版本:下面的自定义区域设置标识符也支持。
LOCALE_CUSTOM_DEFAULT
LOCALE_CUSTOM_UI_DEFAULT
LOCALE_CUSTOM_UNSPECIFIED
返回值
返回适当的区域设置标识符如果成功。
此函数返回的区域设置参数的值,如果它不会成功。该函数失败时,区域设置值不是上面列出的值默认之一。
备注
一个ConvertDefaultLocale调用指定LOCALE_SYSTEM_DEFAULT相当于调用GetSystemDefaultLCID。 一个ConvertDefaultLocale调用指定LOCALE_USER_DEFAULT相当于调用GetUserDefaultLCID。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnls.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
国家语言支持
国家语言支持功能
GetLocaleInfoEx
GetSystemDefaultLCID
GetSystemDefaultLocaleName
GetUserDefaultLCID
GetUserDefaultLocaleName
LCIDToLocaleName
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月12号
==英文原文==ConvertDefaultLocale Function
Converts a default locale value to an actual locale identifier .
Note This function is only provided for converting partial locale identifiers. Your applications should use locale names instead of identifiers. The LCIDToLocaleName function can be used to convert a locale identifier to a valid locale name. Your application can also use GetUserDefaultLocaleName to retrieve the current user locale name; GetSystemDefaultLocaleName to retrieve the current system locale name; and GetLocaleInfoEx with LOCALE_SNAME to retrieve the locale name for any input locale, including the default constants.
Syntax
LCID ConvertDefaultLocale(
__in LCID Locale
);
Parameters
Locale [in]
Default locale identifier value to convert. You can use the MAKELCID macro to create a locale identifier or use one of the following predefined values.
LOCALE_INVARIANT
LOCALE_SYSTEM_DEFAULT
LOCALE_USER_DEFAULT
Windows Vista and later: The following custom locale identifiers are also supported.
LOCALE_CUSTOM_DEFAULT
LOCALE_CUSTOM_UI_DEFAULT
LOCALE_CUSTOM_UNSPECIFIED
Return Value
Returns the appropriate locale identifier if successful.
This function returns the value of the Locale parameter if it does not succeed. The function fails when the Locale value is not one of the default values listed above.
Remarks
A call to ConvertDefaultLocale specifying LOCALE_SYSTEM_DEFAULT is equivalent to a call to GetSystemDefaultLCID . A call to ConvertDefaultLocale specifying LOCALE_USER_DEFAULT is equivalent to a call to GetUserDefaultLCID .
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
GetLocaleInfoEx
GetSystemDefaultLCID
GetSystemDefaultLocaleName
GetUserDefaultLCID
GetUserDefaultLocaleName
LCIDToLocaleName
Send comments about this topic to Microsoft
Build date: 7/12/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd317768(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:28:30