VC 获取操作系统语言信息 Language Sublanguage
来源:互联网 发布:大数据100a净值 编辑:程序博客网 时间:2024/05/01 22:18
通过函数
GetSystemDefaultLCID();
GetSystemDefaultLanguageID();
可以获取系统的default language信息。
From MSDN:
The GetSystemDefaultLCID function retrieves the system default locale identifier.
LCID GetSystemDefaultLCID(void);
Parameters
This function has no parameters.
Return Values
The return value is the system default locale identifier.
Remarks
For more information about locale identifiers, see Locales.
Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Winnls.h; include Windows.h.
Library: Use Kernel32.lib.
////////////////////////////////////////////////////////////////////////////////////////
GetSystemDefaultLangID
The GetSystemDefaultLangID function retrieves the language identifier of the system locale.
LANGID GetSystemDefaultLangID(void);
Parameters
This function has no parameters.
Return Values
The return value is the language identifier of the system locale.
Remarks
For more information about language identifiers, see Language Identifiers and Locale Information.
Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Winnls.h; include Windows.h.
Library: Use Kernel32.lib.
///////////////////////////////////////////////////////////////////////////////////////////
GetUserDefaultLCID
The GetUserDefaultLCID function retrieves the user defaultlocale identifier.
LCID GetUserDefaultLCID(void);
Parameters
This function has no parameters.
Return Values
The return value is the user defaultlocale identifier.
Remarks
On single-user systems, the return value is the same as that returned by GetSystemDefaultLCID.
For more information about locale identifiers, see Locales.
/////////////////////////////////////////////////////////////
GetUserDefaultLangID
The GetUserDefaultLangID function retrieves the language identifier of the current user locale.
LANGID GetUserDefaultLangID(void);
Parameters
This function has no parameters.
Return Values
The return value is the language identifier of the current user locale.
Remarks
The return value is not necessarily the same as that returned by GetSystemDefaultLangID, even if the computer is a single-user system.
For more information about language identifiers, see Language Identifiers and Locale Information.
Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Winnls.h; include Windows.h.
Library: Use Kernel32.lib.
具体使用可以参考:
GetUserDefaultLCID(); // 一般同GetSystemDefaultLCID
GetUserDefaultLanguageID(); // 可以与GetSystemDefaultLanguageID返回不同值
- VC 获取操作系统语言信息 Language Sublanguage
- VC获取操作系统版本信息
- VC++获取操作系统实时信息
- VC获取操作系统相关信息
- vc获取操作系统的语言
- vc获取操作系统的语言
- vc获取操作系统的语言
- C语言获取windows操作系统信息
- Java语言获取jdk、jre和操作系统版本等信息
- php获取浏览器信息 访客语言 操作系统 IP地址
- 获取操作系统信息
- Java获取操作系统信息
- Java获取操作系统信息
- Java获取操作系统信息
- java获取操作系统信息
- java获取操作系统信息
- Java获取操作系统信息
- Java获取操作系统信息
- DSP/BIOS学习笔记——2.SWI
- 拦截器(实际应用)
- Mdx语句集锦
- php+mysql+nigix
- asp.net获取客户端IP地址方法
- VC 获取操作系统语言信息 Language Sublanguage
- 整型数转换为指定位数的字符串,位数不足前面补零
- SSH架构简单总结
- How To Read a File From Your Application Bundle
- 性能监控工具
- 学习算法导论-插入查询
- db2整理
- [OOAD]设计模式之适配器(Adapter)模式
- 关于多元线性回归