Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
When GetConsoleKeyboardLayoutName not implemented stop calling it #1303
This eliminates recurring calls to GetConsoleKeyboardLayoutName when we get an error code that indicates that it is not implemented. These calls result in a bunch of debug out messages that appear in kernel debuggers (or DbgView when capturing the same events).
I've tested it on Windows 10 RS2 and verified that prior to my fix, the debug out matches that described in #1236. After my fix, the debug out messages about a deprecated and not implemented API call are no longer there.
Note that this does NOT fix the other debug message in the issue, about a bad handle from a call to GetConsoleDisplayMode. I concur with the issue comments that this one is a Microsoft issue that can't be fixed short of not calling that API at all.