Function 26, subfunction 2 - get keyboard layout.
The keyboard layout is used to convert keyboard scancodes to
ASCII-codes for function 2.
Parameters:
- eax = 26 - function number
- ebx = 2 - subfunction number
- ecx = what layout to get:
- 1 = normal layout
- 2 = layout with pressed Shift
- 3 = layout with pressed Alt
- edx = pointer to the 128-bytes buffer, where the layout will be
copied
Returned value:
- function does not return value
Or:
- eax = 26 - function number
- ebx = 2 - subfunction number
- ecx = 9
Returned value:
- eax = country identifier (1=eng, 2=fi, 3=ger, 4=rus)
Remarks:
- If Alt is pressed, the layout with Alt is used;
if Alt is not pressed, but Shift is pressed,
the layout with Shift is used;
if Alt and Shift are not pressed, but Ctrl is pressed, the normal
layout is used and then from the code is subtracted 0x60;
if no control key is pressed, the normal layout is used.
- To set layout and country identifier use
subfunction 2 of function 21.
- Country identifier is global system variable, which is not used
by the kernel itself; however the application '@panel' displays
the corresponding icon (using this function).
- The application @panel switches layouts on user request.