Share via


GetKeyboardLayout

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

HKL GetKeyboardLayout( 
  DWORD idThread
);

Parameters

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

Return Values

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.

Remarks

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.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.
Link Library: Coreimm.lib.

See Also

Keyboard Functions | Language Identifiers and Locales | HIWORD | LOWORD | Keyboard Drivers

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.