How to create a list of Keyboards. Extract KLID from HKL?
问题 Windows 10 / C++ / Win32 I need to make a list of 'installed' Keyboards. The components of my 'list' needs to contain: The HKL for the keyboard. The KLID for the keyboard. The values of the registry values obtained from: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts Example: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000409 Value: Layout File Value: Layout Text The only way I am aware of enumerating Keyboards is via GetKeyboardLayoutList() ,