This function retrieves the active keyboard layout for a specified thread.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 2.10 and later |
Syntax
HKL GetKeyboardLayout( DWORD dwThreadId );
Parameters
dwThreadId
[in] Set to NULL to get the keyboard layout of the active thread. No other value is supported.
Return Values
The keyboard layout handle for the thread indicates success. The low-order word contains a language identifier for the input language and the high-order word contains a device handle for the physical layout of the keyboard. For more information about language identifiers, see Language Identifiers and Locales.
See Also