ID: Q181604
The information in this article applies to:
Some applications need to get the operating system's language ID. GetSystemDefaultLangID doesn't work, because the user can change it in the Control Panel.
For example, on English Windows 95, the user opens Control Panel, clicks Regional Settings, and changes the setting from English US to French France in the Regional Settings Properties dialog box. As a result, GetSystemDefaultLangID changes to French too. On Windows NT, the user clicks Control Panel, clicks Regional Settings, and opens the Regional Settings Properties dialog box. In the Regional Settings Properties dialog box, the user selects a different Locale in a different language, selects the "Set as system default locale" check box, and then restarts the computer. As a result GetSystemDefaultLangID changes too the new language too.
This article explains more reliable methods you can use to get the installed operating system's language ID.
The following methods are available to get the installed operating system's language ID:
NOTE: This key does not exist under Windows NT, therefore, this method does not work under Windows NT.
NOTE: This method only works under Windows 95 after user profile has been turned on. Otherwise, it does not work under Windows 95.
NOTE: This method is the most reliable. It works well under both Windows NT and Windows 95. This method also works for Windows 3.1.
Keywords : kbIntlDev
Version : WINNT:4.0;WIN95
Platform : Win95 winnt
Issue type : kbinfo
Last Reviewed: April 3, 1998