术语 | enumlanguagegrouplocales |
释义 | EnumLanguageGroupLocales 语法: BOOL EnumLanguageGroupLocales( __in LANGGROUPLOCALE_ENUMPROC lpLangGroupLocaleEnumProc, __in LGRPID LanguageGroup, __in DWORD dwFlags, __in LONG_PTR lParam ); EnumLanguageGroupLocales功能 列举了一组特定的语言区域设置。 注意:对于自定义区域设置,应用程序应调用优先EnumSystemLocalesEx的EnumLanguageGroupLocales。 参数 lpLangGroupLocaleEnumProc [in] 指向一个应用程序定义的回调函数。有关更多信息,请参阅EnumLanguageGroupLocalesProc。 LanguageGroup [in] 识别的语言组的枚举语言环境。此参数可以具有下列值之一: LGRPID_ARABIC LGRPID_ARMENIAN LGRPID_BALTIC LGRPID_CENTRAL_EUROPE LGRPID_CYRILLIC LGRPID_GEORGIAN LGRPID_GREEK LGRPID_HEBREW LGRPID_INDIC LGRPID_JAPANESE LGRPID_KOREAN LGRPID_SIMPLIFIED_CHINESE LGRPID_TRADITIONAL_CHINESE LGRPID_THAI LGRPID_TURKIC LGRPID_TURKISH LGRPID_VIETNAMESE LGRPID_WESTERN_EUROPE dwFlags [in] 版权所有;必须为0。 lparam的 [in] 一个应用程序定义的值传递给回调函数。此值可用于错误检查。它也可以用来确保在回调函数的线程安全。 返回值 返回一个非零值如果成功,或否则为0。为了获得更多错误信息,应用程序可以调用GetLastError函数,可以返回以下错误代码之一: ERROR_BADDB。该函数不能访问数据。这种情况不应该normall发生,通常表明一个坏的安装,磁盘的问题,或类似。 ERROR_INVALID_FLAGS。旗帜提供的值不是有效的。 ERROR_INVALID_PARAMETER。该参数值的任何无效。 备注 这个函数枚举在指定的区域设置的语言组标识符传递区域,一次一个,应用程序定义的回调函数。这个过程一直持续到EnumLanguageGroupLocales找到最后设置标识符或回调函数返回FALSE。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinnls.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll Unicode和ANSI namesEnumLanguageGroupLocalesW(Unicode)和EnumLanguageGroupLocalesA(ANSI)的 参见 国家语言支持 国家语言支持功能 EnumLanguageGroupLocalesProc EnumSystemLanguageGroups EnumSystemLocalesEx IsValidLanguageGroup 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月12号 ==英文原文==EnumLanguageGroupLocales Function Enumerates the locales in a specified language group. Note For custom locales, your application should call EnumSystemLocalesEx in preference to EnumLanguageGroupLocales. Syntax BOOL EnumLanguageGroupLocales( __in LANGGROUPLOCALE_ENUMPROC lpLangGroupLocaleEnumProc, __in LGRPID LanguageGroup, __in DWORD dwFlags, __in LONG_PTR lParam ); Parameters lpLangGroupLocaleEnumProc [in] Pointer to an application-defined callback function. For more information, see EnumLanguageGroupLocalesProc . LanguageGroup [in] Identifier of the language group for which to enumerate locales. This parameter can have one of the following values: LGRPID_ARABIC LGRPID_ARMENIAN LGRPID_BALTIC LGRPID_CENTRAL_EUROPE LGRPID_CYRILLIC LGRPID_GEORGIAN LGRPID_GREEK LGRPID_HEBREW LGRPID_INDIC LGRPID_JAPANESE LGRPID_KOREAN LGRPID_SIMPLIFIED_CHINESE LGRPID_TRADITIONAL_CHINESE LGRPID_THAI LGRPID_TURKIC LGRPID_TURKISH LGRPID_VIETNAMESE LGRPID_WESTERN_EUROPE dwFlags [in] Reserved; must be 0. lParam [in] An application-defined value to pass to the callback function. This value can be used for error checking. It can also be used to ensure thread safety in the callback function. 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 This function enumerates locales in the specified language group by passing locale identifiers, one at a time, to the application-defined callback function. This process continues until EnumLanguageGroupLocales finds the last locale identifier 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 namesEnumLanguageGroupLocalesW (Unicode) and EnumLanguageGroupLocalesA (ANSI) See Also National Language Support National Language Support Functions EnumLanguageGroupLocalesProc EnumSystemLanguageGroups EnumSystemLocalesEx IsValidLanguageGroup Send comments about this topic to Microsoft Build date: 7/12/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd317819(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。