几个关于语言和区域的函数

 GetUserDefaultUILanguage

This function retrieves the language identifier (LANGID) for the current user's UI language selection.

http://msdn.microsoft.com/en-us/library/aa913797.aspx

 

 

 SetUserDefaultUILanguage

This function sets the LANGID for the current user's UI language selection.

http://msdn.microsoft.com/en-us/library/aa915503.aspx

 

 

  SetLocaleInfo

Sets an item of information in the user override portion of the current locale. This function does not set the system defaults.

Caution   Because this function modifies values for all applications, it should only be called by the regional and language options functionality of Control Panel, or a similar utility. If making an international change to system parameters, the calling application must broadcast the WM_SETTINGCHANGE message to avoid causing instabilities in other applications.

http://msdn.microsoft.com/en-us/library/dd374049%28VS.85%29.aspx

 

 

GetUserDefaultLCID

Returns the locale identifier for the user default locale.

Caution   If the user default locale is a custom locale, an application cannot accurately tag data with the value or exchange it. In this case, the application should use GetUserDefaultLocaleName in preference to GetUserDefaultLCID .

http://msdn.microsoft.com/en-us/library/dd318135%28VS.85%29.aspx

 

 

SetUserDefaultLCID

This function sets the locale identifier (LCID ) for the current user. This updates the user locale and the user locale descriptor.

http://msdn.microsoft.com/en-us/library/bb202902.aspx

 

 

上面的东西其实我用过的只有第一个函数,能得到想要的结果。不过这里当作收藏吧,反正能找到的这方面资料较少,防止自己忘记了。

 

这里写了原创,也不知是不是。反正是自己找出来总结的,不是抄别人的。 如果不是原创范畴,大家别见怪,知道我说明了就好。 谢谢

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值