This function retrieves the name of the active keyboard layout.
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
The layout name is read from the registry and not from the loaded keyboard layout. Windows Embedded CE does not support the LoadKeyboardLayout function or any other keyboard layout function. Therefore, to change the keyboard layout name, use an application, such as a Control Panel program, that changes the Active entry in the following registry subkey:
The value of the Active entry identifies the system keyboard layout. Its type is REG_SZ.
To use a newly specified keyboard layout, the user must reset the device.