BOOL ImeProcessKey (HIMC hIMC, UINT uVirKey, DWORD lParam, CONST LPBYTE lpbKeyState)
Preprocesses keystrokes given through IMM.
hIMC
Handle of the input context.
uVirKey
Virtual key to be processed.
lParam
lParam of a key message.
lpbKeyState
Address of a 256-byte array that contains the current keyboard state. The IME should not modify the keyboard state.
The system determines a key is handled by IME by calling this function. When the function returns TRUE, the IME processes the key message before it is passed to an application. The system also calls the ImeToAsciiEx function. The function returns FALSE if the IME does not handle the key, in which case the system sends the key message to the target application.