Function Reference


Retrieves the all input locale identifiers corresponding to the current set of input locales in the system

#include <WinAPISys.au3>
_WinAPI_GetKeyboardLayoutList ( )

Return Value

Success: The array of input locale identifiers. The zeroth array element contains the number of identifiers.
Failure: Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information.

See Also

Search GetKeyboardLayoutList in MSDN Library.


#include <APILocaleConstants.au3>
#include <Array.au3>
#include <WinAPILocale.au3>
#include <WinAPISys.au3>

Local $aData = _WinAPI_GetKeyboardLayoutList()
If IsArray($aData) Then
    For $i = 1 To $aData[0]
        $aData[$i] = '0x' & Hex($aData[$i]) & ' (' & _WinAPI_GetLocaleInfo(BitAND($aData[$i], 0xFFFF), $LOCALE_SENGLANGUAGE) & ')'

_ArrayDisplay($aData, '_WinAPI_GetKeyboardLayoutList')