Compartilhar via


GetKeyboardLayout

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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 Value

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

Header winuser.h
Library Coreimm.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Keyboard Functions

Other Resources

Language Identifiers and Locales
Keyboard Drivers