ImmSetHotKey

BOOL WINAPI ImmSetHotKey(DWORD dwHotKeyID, UINT uModifiers, UINT uVKey, 
    HKL hKL)
 

Sets the value of the IME hot key. This function is called by control panel.

If successful, the return value is TRUE. Otherwise, it is FALSE.

dwHotKeyID
Hot key identifier.
uModifiers
Value that specifies the keys that must be combined with lpuVKey to trigger the hot key. Can be a combination of these values.
Value Meaning
MOD_ALT ALT key.
MOD_CONTROL CTRL key.
MOD_SHIFT SHIFT key.
MOD_LEFT Use key on the left side of keyboard.
MOD_RIGHT Use key on the right side of keyboard.
MOD_ON_KEYUP Trigger hot key when hot key is released.
MOD_IGNORE_ALL_MODIFIER Ignore modifier keys.

For a key that does not occur on both sides of the keyboard, uModifiers should specify both sides (MOD_LEFT | MODE_RIGHT).

uVKey
Virtual key code of this hot key.
hKL
Handle of the keyboard layout for the IME. If this parameter is specified, this hot key can switch to the IME with this keyboard layout.