Group: Keyboard Input - Library: user32
The GetKeyboardLayoutList function retrieves the input locale identifiers (formerly called keyboard layout handles) corresponding to the current set of input locales in the system.
Switching between keyboard layouts
UINT GetKeyboardLayoutList(
int nBuff, // size of array
HKL FAR *lpList // array of input locale identifiers
);
DECLARE INTEGER GetKeyboardLayoutList IN user32;
INTEGER nBuff,;
STRING @ lpList
nBuff [in] Specifies the maximum number of handles that the buffer can hold.
lpList [out] Pointer to the buffer that receives the array of input locale identifiers.
If the function succeeds, the return value is the number of input locale identifiers copied to the buffer.