Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Win32 API for getting the language(localization info) of the OS?

Can anybody please help me with how to get the language(english,chinese etc) of Windows OS through win32 API(C/C++)??

Thanks, Sourabh

like image 356
sourabh jaiswal Avatar asked Aug 24 '09 13:08

sourabh jaiswal


1 Answers

If you're asking about "Which language the OS menus and dialogs are dispalyed in" (i.e. which MUI - Multilingual User Interface kit - is installed), use the following:

  • GetSystemDefaultUILanguage to get the original language of the system,
  • GetUserDefaultUILanguage to get the current user's selection,
  • EnumUILanguages to see which languages are available.

More info:

  • Windows 2000/XP language specific APIs
  • FAQ Windows 2000/XP/2003 MUI
like image 64
MaxVT Avatar answered Oct 07 '22 01:10

MaxVT