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.
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 left side of keyboard |
MOD_RIGHT | Use key on 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 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.