Export (0) Print
Expand All


Windows Mobile 6.5
A version of this page is also available for

This function retrieves the active input language identifier for a specified thread.

HKL GetKeyboardLayout(
  DWORD idThread


[in] Set to NULL to get the keyboard layout of the active thread. No other value is supported.

The input language identifier 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.

If the idThread parameter is zero, the input language identifier for the active thread is returned.

The input language identifier can include a speech-to-text converter, an IME, or any other form of input.

Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

© 2014 Microsoft