GetKeyboardLayout() doesn't work properly in some cases

前端 未结 1 1519
滥情空心
滥情空心 2021-01-19 00:31

I\'m writting console app that should indicate keyboard layout. I\'m using GetForegroundWindow() function to get current active window, function GetWindow

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-19 01:25

    Your code is right, It's Microsoft's problem. I run this code in a third-party shell, babun and get the right result. You can try this shell, I think it's the best shell on Windows.

    0 讨论(0)
提交回复
热议问题