I need to get the layout name of active window.
Calling GetKeyboardLayoutName API from my app, only gets the layout name of the app itself.
As far as I know, every open window, can have it's own active layout. So changing keyboard layout from one windows, does not make any change to the code returned from GetKeyboardLayoutName function in my app, but when in my app's active windows, I change keyboard layout, it catches the layout change code.
All I need if to find the current keyboard layout name (for example windows returns 409 for English keyboard) of the current active window.