windowswinapivisual-c++modern-uiwindows-mui

How do I determine the user's language in Visual C++?


I've been searching msdn forever now without a straight answer.

Is there a way to simply get the user's language? I don't want to load any resources or anything at this point, I just want to get their language. Is there ANY simple way to do this?

I'm using visual C++,and I'm not using MFC or anything like that.


Solution

  • GetUserDefaultLangID may be what you're after. Then again, you may really be after GetUserPreferredUILanguages.