How to Find the Available Keyboard Layouts Under Windows NT

ID: Q139571


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK), used with:
    • Microsoft Windows NT 3.51
    • Microsoft Windows versions 95, 4.0


SUMMARY

In some applications, you may want to find out what keyboard layouts are currently available under Windows NT, so that the application can present a list of the available keyboard layouts to the user.

The list of keyboard layouts that are currently available is in the registry:


   HKEY_LOCAL_MACHINE, "system\currentcontrolset\control\keyboard layout" 


You can use RegEnumKeyEx() to enumerate the subkeys (available keyboard layouts). The data value for each subkey is the file name for the keyboard layout.


MORE INFORMATION

The return value of LoadKeyboardLayout() tells you whether or not one particular keyboard layout is available. The return value is 0 when the keyboard layout is not available. However, LoadKeyboardLayout is not working correctly on Japanese Windows NT version 3.51. It returns 0 even when the requested keyboard layout is available.

Additional query words: 4.00

Keywords : kbIntlDev
Version : 4.00 | 3.51
Platform : NT WINDOWS
Issue type :


Last Reviewed: March 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.