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
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.