HOWTO: Determine Default Language ID of Windows 95 or WinNT

ID: Q181604

The information in this article applies to:

SUMMARY

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.

MORE INFORMATION

The following methods are available to get the installed operating system's language ID:

Additional query words:
Keywords          : kbIntlDev 
Version           : WINNT:4.0;WIN95
Platform          : Win95 winnt
Issue type        : kbinfo

Last Reviewed: April 3, 1998