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
上面的东西其实我用过的只有第一个函数,能得到想要的结果。不过这里当作收藏吧,反正能找到的这方面资料较少,防止自己忘记了。
这里写了原创,也不知是不是。反正是自己找出来总结的,不是抄别人的。 如果不是原创范畴,大家别见怪,知道我说明了就好。 谢谢