次の方法で共有


GetForegroundKeyboardLayoutHandle (Compact 2013)

3/28/2014

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.

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

See Also

Reference

Keyboard Functions

Other Resources

Language Identifiers