GetForegroundKeyboardLayoutHandle (Windows Embedded CE 6.0)

1/6/2010

This function returns the keyboard layout handle for the current foreground thread.

Syntax

HKL GetForegroundKeyboardLayoutHandle( void );

Parameters

None.

Return Value

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.

Remarks

This function is linked during the build process.

The shell uses GetForegroundKeyboardLayoutHandle to determine the keyboard layout handle for the current foreground thread. The shell can then keep the software-based input panel (SIP) or input method editor (IME) icon synchronized with the settings of the foreground thread.

Requirements

Header pwinuser.h
Windows Embedded CE Windows CE .NET 4.2 and later
Note Linked during platform build

See Also

Reference

Keyboard Functions

Other Resources

Language Identifiers and Locales