How to get OS language using C++ API?

后端 未结 3 1143
暗喜
暗喜 2021-01-03 09:00

I am in the process of developing a application which displays dialogs depending on the OS language. How I can get the OS language using C++ or Windows APIs (Windows 2008/Vi

3条回答
  •  伪装坚强ぢ
    2021-01-03 09:22

    Do you resolve this problem?
    If answer is No,
    LPWSTR lpLocalName=NULL is wrong.
    LPWSTR lpLocalName=NULL ----> WCHAR localName[LOCALE_NAME_MAX_LENGTH] is right. Because No memory allocation is in GetUserDefaultLocalName.

提交回复
热议问题