网站首页  词典首页

请输入您要查询的函数:

 

术语 enumuilanguages
释义 EnumUILanguages
语法:
BOOL EnumUILanguages(
__in UILANGUAGE_ENUMPROC lpUILanguageEnumProc,
__in DWORD dwFlags,
__in LONG_PTR lParam
);
EnumUILanguages功能
枚举用户界面语言上提供的操作系统,并呼吁与列表中的每个语言的回调函数。
参数
lpUILanguageEnumProc [in]
指向一个应用程序定义的EnumUILanguagesProc回调函数。 EnumUILanguages反复调用该函数来枚举列表中的语言。
dwFlags [in]
标志识别的语言格式和过滤。以下标志指定的语言格式传递给回调函数。该格式标志是相互排斥的,MUI_LANGUAGE_ID是默认的。
ValueMeaning
MUI_LANGUAGE_IDPass在语言中的字符串语言标识符的回调函数。
MUI_LANGUAGE_NAMEPass语言中的语言名称字符串的回调函数。
以下标志指定该函数的过滤使用列举的语言。该过滤标志是互相排斥的,并且默认是MUI_LICENSED_LANGUAGES。
ValueMeaning
MUI_ALL_INSTALLED_LANGUAGESEnumerate所有已安装的语言提供给操作系统。
MUI_LICENSED_LANGUAGESEnumerate安装的所有可用的语言和使用许可。
MUI_GROUP_POLICYEnumerate安装的所有可用的语言和授权,是该集团的政策允许的。
Windows Vista和更高版本:应用程序可以设置为0 dwFlags,或一个或更多指定的标志。设置为0的原因的参数值默认为MUI_LANGUAGE_ID | MUI_LICENSED_LANGUAGES。
Windows 2000中,Windows XP中,Windows Server 2003的:申请表必须设置为0 dwFlags。
lparam的 [in]
应用程序定义的值。
返回值
返回TRUE,如果成功,否则返回FALSE。为了获得更多错误信息,应用程序可以调用GetLastError函数,可以返回以下错误代码之一:
ERROR_INVALID_FLAGS。旗帜提供的值不是有效的。
ERROR_INVALID_PARAMETER。该参数值的任何无效。
备注
这个函数列举了用户界面语言可用,并根据指定的标志,因为在操作系统上使用授权。它通过语言识别码或语言的名称,一次一个,到EnumUILanguagesProc回调函数。该EnumUILanguages函数继续传递,直到最后语言的语言标识符或回调函数名被发现或回调函数返回FALSE。
对于应用程序只能运行在Windows Vista和更高版本,MUI_LANGUAGE_NAME超过MUI_LANGUAGE_ID建议。 MUI_LANGUAGE_NAME使语言之间的差异是与语言环境相关的补充。
如果MUI_LANGUAGE_ID标志是在调用此函数指定,值“1000”传递给回调函数的补充与区域关联的任何语言。此值对应于LOCALE_CUSTOM_UNSPECIFIED十六进制值。它不区分补充语言环境,即使选择的语言,在用户界面的首选语言的列表或系统的首选UI语言的名单。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnls.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesEnumUILanguagesW(Unicode)和EnumUILanguagesA(ANSI)的
参见
多语言用户界面
多语言用户界面功能
EnumUILanguagesProc
GetSystemDefaultUILanguage
GetUserDefaultUILanguage
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月12号
==英文原文==EnumUILanguages Function
Enumerates the user interface languages that are available on the operating system and calls the callback function with every language in the list.
Syntax
BOOL EnumUILanguages(
__in UILANGUAGE_ENUMPROC lpUILanguageEnumProc,
__in DWORD dwFlags,
__in LONG_PTR lParam
);
Parameters
lpUILanguageEnumProc [in]
Pointer to an application-defined EnumUILanguagesProc callback function. EnumUILanguages calls this function repeatedly to enumerate the languages in the list.
dwFlags [in]
Flags identifying language format and filtering. The following flags specify the format of the language to pass to the callback function. The format flags are mutually exclusive, and MUI_LANGUAGE_ID is the default.
ValueMeaning
MUI_LANGUAGE_IDPass the language identifier in the language string to the callback function.
MUI_LANGUAGE_NAMEPass the language name in the language string to the callback function.

The following flags specify the filtering for the function to use in enumerating the languages. The filtering flags are mutually exclusive, and the default is MUI_LICENSED_LANGUAGES.
ValueMeaning
MUI_ALL_INSTALLED_LANGUAGESEnumerate all installed languages available to the operating system.
MUI_LICENSED_LANGUAGESEnumerate all installed languages that are available and licensed for use.
MUI_GROUP_POLICYEnumerate all installed languages that are available and licensed, and that are allowed by the group policy.

Windows Vista and later: The application can set dwFlags to 0, or to one or more of the specified flags. A setting of 0 causes the parameter value to default to MUI_LANGUAGE_ID | MUI_LICENSED_LANGUAGES.
Windows 2000, Windows XP, Windows Server 2003: The application must set dwFlags to 0.
lParam [in]
Application-defined value.
Return Value
Returns TRUE if successful or FALSE otherwise. To get extended error information, the application can call GetLastError , which can return one of the following error codes:
ERROR_INVALID_FLAGS. The values supplied for flags were not valid.
ERROR_INVALID_PARAMETER. Any of the parameter values was invalid.
Remarks
This function enumerates the user interface languages that are available and, depending on the flag specified, licensed for use on the operating system. It passes language identifiers or language names, one at a time, to the EnumUILanguagesProc callback function. The EnumUILanguages function continues to pass language identifiers or names to the callback function until the last language is found or the callback function returns FALSE.
For applications that run only on Windows Vista and later, MUI_LANGUAGE_NAME is recommended over MUI_LANGUAGE_ID. MUI_LANGUAGE_NAME allows differentiation between languages that are associated with a supplemental locale .
If the MUI_LANGUAGE_ID flag is specified in the call to this function, the value "1000" is passed to the callback function for any language associated with a supplemental locale. This value corresponds to the hexadecimal value of LOCALE_CUSTOM_UNSPECIFIED . It does not distinguish among supplemental locales, even if the selected language is in the user preferred UI languages list or the system preferred UI languages list.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnls.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesEnumUILanguagesW (Unicode) and EnumUILanguagesA (ANSI)
See Also
Multilingual User Interface
Multilingual User Interface Functions
EnumUILanguagesProc
GetSystemDefaultUILanguage
GetUserDefaultUILanguage
Send comments about this topic to Microsoft
Build date: 7/12/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd317834(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:16:25