术语 | isvalidlocale |
释义 | IsValidLocale 语法: BOOL IsValidLocale( __in LCID Locale, __in DWORD dwFlags ); IsValidLocale功能 确定是否指定的地点安装或操作系统支持。有关更多信息,查看Locales和语言。 注意任何应用程序只能在Windows Vista和以后应优先使用IsValidLocaleName这一职能,以确定是否有效的补充区域运行。 参数 区域设置 [in] 区域设置的区域设置标识符来验证。您可以使用MAKELCID宏创建一个区域设置标识符或使用下列预定义的值之一。 LOCALE_INVARIANT LOCALE_SYSTEM_DEFAULT LOCALE_USER_DEFAULT Windows Vista的:下面的自定义区域设置标识符也支持。 LOCALE_CUSTOM_DEFAULT LOCALE_CUSTOM_UI_DEFAULT LOCALE_CUSTOM_UNSPECIFIED dwFlags [in] 旗指定的有效性测试,适用于该区域设置标识符。此参数可以有以下值之一。 ValueMeaning LCID_INSTALLEDDetermine如果设置标识符既支持和安装。 LCID_SUPPORTEDDetermine如果区域设置标识符支持。 返回值 返回一个非零值,如果设置标识符传递指定时间的考验。该函数返回0,如果没有成功。 备注 如果LCID_INSTALLED标志被指定这个函数返回一个非零值,设置标识符既支持,在操作系统上安装。有一个标识符安装意味着,语言支持的全部费用是可以指定的语言环境。全面支持包括代码页转换表,键盘布局,字体,以及排序和本地化数据。 如果LCID_SUPPORTED被指定,这个函数返回0,该区域设置标识符是支持释放,但不一定在操作系统上安装。 这个功能可以处理自定义区域设置的数据。数据不能保证从同一计算机到计算机之间或应用程序的运行。如果应用程序必须坚持或传输数据,请参阅使用持久性本地化数据。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinnls.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 国家语言支持 国家语言支持功能 GetLocaleInfo IsValidLocaleName 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月12号 ==英文原文==IsValidLocale Function Determines if the specified locale is installed or supported on the operating system. For more information, see Locales and Languages . Note Any application that runs only on Windows Vista and later should use IsValidLocaleName in preference to this function to determine the validity of a supplemental locale . Syntax BOOL IsValidLocale( __in LCID Locale, __in DWORD dwFlags ); Parameters Locale [in] Locale identifier of the locale to validate. 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: The following custom locale identifiers are also supported. LOCALE_CUSTOM_DEFAULT LOCALE_CUSTOM_UI_DEFAULT LOCALE_CUSTOM_UNSPECIFIED dwFlags [in] Flag specifying the validity test to apply to the locale identifier. This parameter can have one of the following values. ValueMeaning LCID_INSTALLEDDetermine if the locale identifier is both supported and installed. LCID_SUPPORTEDDetermine if the locale identifier is supported. Return Value Returns a nonzero value if the locale identifier passes the specified validity test. The function returns 0 if it does not succeed. Remarks If the LCID_INSTALLED flag is specified and this function returns a nonzero value, the locale identifier is both supported and installed on the operating system. Having an identifier installed implies that the full level of language support is available for the indicated locale. Full support includes code page translation tables, keyboard layouts, fonts, and sorting and locale data. If LCID_SUPPORTED is specified and this function returns 0, the locale identifier is supported in the release, but not necessarily installed on the operating system. This function can handle data from custom locales . Data is not guaranteed to be the same from computer to computer or between runs of an application. If your application must persist or transmit data, see Using Persistent Locale Data . 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 GetLocaleInfo IsValidLocaleName Send comments about this topic to Microsoft Build date: 7/12/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd318679(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。