The ImmGetIMEFileName function gets the filename of the IME associated with the specified keyboard layout.
BOOL ImmGetIMEFileName(
HKL hKL, | |
LPTSTR lpszFileName, | |
UINT uBufLen | |
); |
The return value is the number of bytes in the filename copied to the buffer, or if uBufLen is zero, the return value is the buffer size needed for the filename. In either case, the terminating null character is not included.
In the registry, the system stores the filename as the IME name value in HKEY_LOCAL_MACHINE root under the \System\CurrentControlSet\control\keyboard layouts\hKL key.