How to get the keyboard layout

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
Topic archived. No new replies allowed.