https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f7865b8bfae46fdb67690…
commit f7865b8bfae46fdb6769032468fb3c701acbb51b
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Aug 8 09:46:13 2020 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Aug 8 09:46:13 2020 +0900
[IMM32] Add ImmSetActiveContext stub (#3026)
CORE-11700
Add imm32!ImmSetActiveContext and ImmSetActiveContextConsoleIME function stubs.
---
dll/win32/imm32/imm.c | 22 ++++++++++++++++++++++
dll/win32/imm32/imm32.spec | 4 ++--
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/dll/win32/imm32/imm.c b/dll/win32/imm32/imm.c
index 86dfa2e4837..cfa7d6dea39 100644
--- a/dll/win32/imm32/imm.c
+++ b/dll/win32/imm32/imm.c
@@ -3174,3 +3174,25 @@ BOOL WINAPI ImmDisableLegacyIME(void)
FIXME("stub\n");
return TRUE;
}
+#ifdef __REACTOS__
+
+/***********************************************************************
+ * ImmSetActiveContext(IMM32.@)
+ */
+BOOL WINAPI ImmSetActiveContext(HWND hwnd, HIMC hIMC, BOOL fFlag)
+{
+ FIXME("stub\n");
+ return FALSE;
+}
+
+/***********************************************************************
+ * ImmSetActiveContextConsoleIME(IMM32.@)
+ */
+BOOL WINAPI ImmSetActiveContextConsoleIME(HWND hwnd, BOOL fFlag)
+{
+ HIMC hIMC = ImmGetContext(hwnd);
+ if (hIMC)
+ return ImmSetActiveContext(hwnd, hIMC, fFlag);
+ return FALSE;
+}
+#endif
diff --git a/dll/win32/imm32/imm32.spec b/dll/win32/imm32/imm32.spec
index 4197bb81e21..84ddfaca1f7 100644
--- a/dll/win32/imm32/imm32.spec
+++ b/dll/win32/imm32/imm32.spec
@@ -86,8 +86,8 @@
@ stub ImmSendIMEMessageExA
@ stub ImmSendIMEMessageExW
@ stub ImmSendMessageToActiveDefImeWndW
-@ stub ImmSetActiveContext
-@ stub ImmSetActiveContextConsoleIME
+@ stdcall ImmSetActiveContext(ptr ptr long)
+@ stdcall ImmSetActiveContextConsoleIME(ptr long)
@ stdcall ImmSetCandidateWindow(long ptr)
@ stdcall ImmSetCompositionFontA(long ptr)
@ stdcall ImmSetCompositionFontW(long ptr)