在Windows下如何获取当前的语言区域信息

来源:百度知道 编辑:UC知道 时间:2024/09/12 22:37:59
有相关的API函数吗?

int GetLocaleInfo(
LCID Locale, // locale identifier
LCTYPE LCType, // information type
LPTSTR lpLCData, // information buffer
int cchData // size of buffer
); 函数
第一个参数指定LOCALE_SYSTEM_DEFAULT,就是系统当前的区域信息。
如果你只取得语言的,也可以用GetSystemDefaultLangID获得语言ID