[NTUSER] Implement NtUserSetImeHotKey (#4350)

- Modify NtUserGetImeHotKey and NtUserSetImeHotKey prototypes.
- Define enum SETIMEHOTKEY_ACTION in <undocuser.h>.
- Define IMEHOTKEY structure in ime.c.
- Add IntGetImeHotKeyLangId, IntAddImeHotKey, IntGetImeHotKeyById, IntGetImeHotKeyByKeyAndLang, IntDeleteImeHotKey, IntFreeImeHotKeys, and IntSetImeHotKey helper functions.
- Implement NtUserGetImeHotKey and NtUserSetImeHotKey functions.
- Cleanup the IME hotkeys at process exit.
CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-02-09 11:27:44 +09:00 committed by GitHub
parent e0fc48d6e2
commit 5d5cc57869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 280 additions and 36 deletions

View file

@ -2388,11 +2388,12 @@ NtUserGetIconSize(
LONG *plcx,
LONG *plcy);
BOOL NTAPI
NtUserGetImeHotKey(IN DWORD dwHotKey,
OUT LPUINT lpuModifiers,
OUT LPUINT lpuVKey,
OUT LPHKL lphKL);
BOOL
NTAPI
NtUserGetImeHotKey(DWORD dwHotKeyId,
LPUINT lpuModifiers,
LPUINT lpuVirtualKey,
LPHKL lphKL);
BOOL
NTAPI
@ -3184,14 +3185,14 @@ NTAPI
NtUserSetFocus(
HWND hWnd);
DWORD
BOOL
NTAPI
NtUserSetImeHotKey(
DWORD Unknown0,
DWORD Unknown1,
DWORD Unknown2,
DWORD Unknown3,
DWORD Unknown4);
DWORD dwHotKeyId,
UINT uModifiers,
UINT uVirtualKey,
HKL hKL,
DWORD dwAction);
BOOL
NTAPI