| 字词 | isvalidlocalename |
| 释义 | IsValidLocaleName 语法: BOOL IsValidLocaleName( __in LPCWSTR lpLocaleName ); IsValidLocaleName功能 确定是否在指定的区域名称是一个已安装或操作系统支持的区域设置有效。 注意:应用程序只能在Windows Vista下运行,后来应优先调用这个函数IsValidLocale确定的补充区域的有效性。 参数 lpLocaleName [in] 指针语言环境的名称来验证。 返回值 返回一个非零值,如果是有效的语言环境的名称,或返回一个无效的名称0。 备注 在Windows Vista和后,所有支持的语言环境应该安装在所有的操作系统。 这个功能可以处理自定义的区域名称。数据不能保证从同一计算机到计算机之间或应用程序的运行。如果应用程序必须坚持或传输数据,请参阅使用持久性本地化数据。 实例 一个例子显示了使用这功能,可以找到免入息审查:产品名称为基础的API示例。 要求: client最低支持Vista server最低支持 Windows Server 2008 HeaderWinnls.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 国家语言支持 国家语言支持功能 GetLocaleInfoEx IsValidLocale 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月12号 ==英文原文==IsValidLocaleName Function Determines if the specified locale name is valid for a locale that is installed or supported on the operating system. Note An application running only on Windows Vista and later should call this function in preference to IsValidLocale to determine the validity of a supplemental locale . Syntax BOOL IsValidLocaleName( __in LPCWSTR lpLocaleName ); Parameters lpLocaleName [in] Pointer to the locale name to validate. Return Value Returns a nonzero value if the locale name is valid, or returns 0 for an invalid name. Remarks On Windows Vista and later, all supported locales should be installed on all operating systems. This function can handle the name of a custom locale . 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 . Examples An example showing the use of this function can be found in NLS: Name-based APIs Sample . Requirements Minimum supported clientWindows Vista Minimum supported serverWindows Server 2008 HeaderWinnls.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also National Language Support National Language Support Functions GetLocaleInfoEx IsValidLocale Send comments about this topic to Microsoft Build date: 7/12/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd318681(VS.85).aspx\n |
| 随便看 |
|
计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。