Group: Keyboard Input - Library: user32
The GetKeyboardLayoutName function retrieves the name of the active input locale identifier (formerly called the keyboard layout).
Switching between keyboard layouts
BOOL GetKeyboardLayoutName(
LPTSTR pwszKLID // input locale identifier name
);
DECLARE INTEGER GetKeyboardLayoutName IN user32;
STRING @pwszKLID
pwszKLID [out] Pointer to the buffer (of at least KL_NAMELENGTH characters in length) that receives the name of the input locale identifier
If the function succeeds, the return value is nonzero.