Windows has several functions, depending on the format in which you want to receive the information. Prior to Windows Vista, language information was encoded in LCID (locale identifier), which includes the language, as well as some sorting and formatting information.
For Windows Vista and Windows 7, a more flexible system called Locale Names was developed.
GetSystemDefaultLocaleName
Use this if you want to work with Win2k and WinXP.
GetSystemDefaultLCID
source
share