How to Find the Available Keyboard Layouts Under Windows NTLast reviewed: January 15, 1998Article ID: Q139571 |
4.00 | 3.51WINDOWS | WINDOWS NT kbprg kbhowto The information in this article applies to:
SUMMARYIn 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 INFORMATIONThe 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 reference words: 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |