I'm trying to get the layout used in the application by calling
HKL lt = GetKeyboardLayout (0);
Вut I get the same result - lt = 04190419x, regardless of which layout is currently being used. The program is written in Delphi under Windows, GUI is used, runs on OS AstraLinux using wine-3.0. The AstraLinux system has 2 layouts - English[US] and Russian. When running this application under Windows, the layout used is determined correctly - GetKeyboardLayout (0) = 04090409x on the English[US] layout and GetKeyboardLayout (0) = 04190419x on the Russian layout. But when working under AstraLinux, GetKeyboardLayout (0) always returns 04190419x, regardless of the layout used - English[US] or Russian.