get_keyboard_layout


handle get_keyboard_layout(unsigned thread)

This function obtains the active keyboard layout of a thread.

Parameters

unsigned thread

The identity of the thread for which the layout is required. If zero is specified, the layout of the calling thread is returned.

Return

handle

The keyboard layout handle for the thread. The low part contains the identity of the input language and the high part contains a handle of the physical layout of the keyboard.