HowTo : Determine the language of Windows ???
-
Hello fellow programmers :) I have a simple question : how can I determine the language of windows at run-time ?? Thanx in advance for any help :) Have nice day !
-
Hello fellow programmers :) I have a simple question : how can I determine the language of windows at run-time ?? Thanx in advance for any help :) Have nice day !
-
Hello fellow programmers :) I have a simple question : how can I determine the language of windows at run-time ?? Thanx in advance for any help :) Have nice day !
GetUserDefaultLangID() and GetSystemDefaultLangID() GetUserDefaultLangID() gets you the language you've chosen from the keyboard (Alt+Shift to toggle between say Korean and French or whatever you have setup). GetSystemDefaultLangID() gets you the fact that the box is set up for Swahili or whatever. The returned value is encoded in two parts, the primary language and any appropriate sublanguage. You'll need to lookup the language codes to determine the values (For example English is 9 and is represented by LANG_ENGLISH). Cheers