Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.12 KB

GetKeyboardLayout.md

File metadata and controls

41 lines (28 loc) · 1.12 KB

Home

Function name : GetKeyboardLayout

Group: Keyboard Input - Library: user32


The GetKeyboardLayout function retrieves the active input locale identifier (formerly called the keyboard layout) for the specified thread. If the idThread parameter is zero, the input locale identifier for the active thread is returned.


Code examples:

Switching between keyboard layouts

Declaration:

HKL GetKeyboardLayout(
  DWORD idThread  // thread identifier
);  

FoxPro declaration:

DECLARE INTEGER GetKeyboardLayout IN user32;
	INTEGER idThread  

Parameters:

idThread [in] Identifies the thread to query or is zero for the current thread.


Return value:

The return value is the input locale identifier for the thread. The low word contains a language identifier for the input language and the high word contains a device handle for the physical layout of the keyboard.