cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to get the keyboard layout
How to get the keyboard layout
Jan 7, 2021 at 6:01pm UTC
hbcpp
(197)
How I am trying to get the keyboard layout name (for example US Keybord or Portuguese Keyboard) from within c++?
I used this:
HKL kb = GetKeyboardLayout(0);
But I don't know how to get the string from HKL.
Thanks!!
Last edited on
Jan 7, 2021 at 6:02pm UTC
Jan 7, 2021 at 6:37pm UTC
deleted account xyzzy
(5768)
Maybe
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getkeyboardlayoutnamea
?
Topic archived. No new replies allowed.