网站首页  词典首页

请输入您要查询的函数:

 

术语 enumsystemlocales
释义 EnumSystemLocales
语法:
BOOL EnumSystemLocales(
__in LOCALE_ENUMPROC lpLocaleEnumProc,
__in DWORD dwFlags
);
EnumSystemLocales功能
列举了要么在安装或支持的操作系统区域设置。
注意:对于互操作性的原因,应用程序应更喜欢EnumSystemLocalesEx功能EnumSystemLocales,因为微软是对的,而不是新的区域设置的区域设置标识符地区名称的使用迁移。任何将只运行在Windows Vista和以后应使用EnumSystemLocalesEx申请。
参数
lpLocaleEnumProc [in]
指向一个应用程序定义的回调函数。有关更多信息,请参阅EnumLocalesProc。
dwFlags [in]
旗指定的区域设置标识符枚举。该标志可单独使用或合并使用二进制或。如果应用程序指定此参数为0,函数的行为作为LCID_SUPPORTED。
ValueMeaning
LCID_INSTALLEDEnumerate只安装的区域设置标识符。此值不能用于LCID_SUPPORTED。
LCID_SUPPORTEDEnumerate所有受支持的语言环境标识符。此值不能用于LCID_INSTALLED。
LCID_ALTERNATE_SORTSEnumerate只有备用排序区域设置标识符。如果此值用于要么LCID_INSTALLED或LCID_SUPPORTED,安装或支持的语言环境的检索,以及候补排序区域设置标识符。
返回值
返回一个非零值如果成功,或否则为0。为了获得更多错误信息,应用程序可以调用GetLastError函数,可以返回以下错误代码之一:
ERROR_BADDB。该函数不能访问数据。这种情况不应该normall发生,通常表明一个坏的安装,磁盘的问题,或类似。
ERROR_INVALID_FLAGS。旗帜提供的值不是有效的。
ERROR_INVALID_PARAMETER。该参数值的任何无效。
备注
枚举函数传递区域设置标识符,一次一个,到指定的应用程序语言环境定义的回调函数。这种情况持续下去,直到所有的安装或支持的区域设置标识符已经传递给回调函数或回调函数返回FALSE。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnls.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesEnumSystemLocalesW(Unicode)和EnumSystemLocalesA(ANSI)的
参见
国家语言支持
国家语言支持功能
EnumLocalesProc
EnumSystemLocalesEx
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月12号
==英文原文==EnumSystemLocales Function
Enumerates the locales that are either installed on or supported by an operating system.
Note For interoperability reasons, the application should prefer the EnumSystemLocalesEx function to EnumSystemLocales because Microsoft is migrating toward the use of locale names instead of locale identifiers for new locales. Any application that will be run only on Windows Vista and later should use EnumSystemLocalesEx .
Syntax
BOOL EnumSystemLocales(
__in LOCALE_ENUMPROC lpLocaleEnumProc,
__in DWORD dwFlags
);
Parameters
lpLocaleEnumProc [in]
Pointer to an application-defined callback function. For more information, see EnumLocalesProc .
dwFlags [in]
Flags specifying the locale identifiers to enumerate. The flags can be used singly or combined using a binary OR. If the application specifies 0 for this parameter, the function behaves as for LCID_SUPPORTED.
ValueMeaning
LCID_INSTALLEDEnumerate only installed locale identifiers. This value cannot be used with LCID_SUPPORTED.
LCID_SUPPORTEDEnumerate all supported locale identifiers. This value cannot be used with LCID_INSTALLED.
LCID_ALTERNATE_SORTSEnumerate only the alternate sort locale identifiers. If this value is used with either LCID_INSTALLED or LCID_SUPPORTED, the installed or supported locales are retrieved, as well as the alternate sort locale identifiers.

Return Value
Returns a nonzero value if successful, or 0 otherwise. To get extended error information, the application can call GetLastError , which can return one of the following error codes:
ERROR_BADDB. The function could not access the data. This situation should not normall occur, and typically indicates a bad installation, a disk problem, or the like.
ERROR_INVALID_FLAGS. The values supplied for flags were not valid.
ERROR_INVALID_PARAMETER. Any of the parameter values was invalid.
Remarks
The function enumerates locales by passing locale identifiers, one at a time, to the specified application-defined callback function. This continues until all of the installed or supported locale identifiers have been passed to the callback function or the callback function returns FALSE.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnls.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesEnumSystemLocalesW (Unicode) and EnumSystemLocalesA (ANSI)
See Also
National Language Support
National Language Support Functions
EnumLocalesProc
EnumSystemLocalesEx
Send comments about this topic to Microsoft
Build date: 7/12/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd317828(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 13:21:07