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

后端 未结 2 830
臣服心动
臣服心动 2020-12-30 05:58

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

Thanks, Sourabh

2条回答
  •  不知归路
    2020-12-30 06:51

    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

提交回复
热议问题