static HKL USKB; if (!(int)USKB) USKB = LoadKeyboardLayout("00000409", 0); result = ToAsciiEx(keycode, scancode, keys, (LPWORD) buf, 0, USKB);