https://git.reactos.org/?p=reactos.git;a=commitdiff;h=211de1257ec12d1cf4dd4…
commit 211de1257ec12d1cf4dd4f3ac0fb371a68d14213
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Jul 8 14:23:25 2021 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Jul 8 14:23:25 2021 +0900
[IMM32] Rewrite ImmIsIME (Retry) (#3803)
- Rewrite ImmIsIME function.
- Fix enum IMEINFOEXCLASS.
CORE-11700
---
dll/win32/imm32/imm.c | 6 ++++++
win32ss/include/ntuser.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/dll/win32/imm32/imm.c b/dll/win32/imm32/imm.c
index 31bd2ac339f..75e0c024ead 100644
--- a/dll/win32/imm32/imm.c
+++ b/dll/win32/imm32/imm.c
@@ -2200,10 +2200,16 @@ HKL WINAPI ImmInstallIMEW(
*/
BOOL WINAPI ImmIsIME(HKL hKL)
{
+#ifdef __REACTOS__
+ IMEINFOEX info;
+ TRACE("ImmIsIME(%p)\n", hKL);
+ return !!ImmGetImeInfoEx(&info, ImeInfoExImeWindow, &hKL);
+#else
ImmHkl *ptr;
TRACE("(%p):\n", hKL);
ptr = IMM_GetImmHkl(hKL);
return (ptr && ptr->hIME);
+#endif
}
/***********************************************************************
diff --git a/win32ss/include/ntuser.h b/win32ss/include/ntuser.h
index 22538c84818..ff34bd12a5a 100644
--- a/win32ss/include/ntuser.h
+++ b/win32ss/include/ntuser.h
@@ -1179,6 +1179,7 @@ typedef struct tagIMEINFOEX
typedef enum IMEINFOEXCLASS
{
ImeInfoExKeyboardLayout,
+ ImeInfoExImeWindow,
ImeInfoExImeFileName
} IMEINFOEXCLASS;