Last active
August 29, 2015 14:19
-
-
Save rzl24ozi/20aa4cfaaa7256bd3aa3 to your computer and use it in GitHub Desktop.
disable w32-ime by using ImmDisableIME()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./src/w32fns.c.orig 2015-04-02 16:23:06.000000000 +0900 | |
+++ ./src/w32fns.c 2015-04-25 20:00:47.429173300 +0900 | |
@@ -8664,6 +8664,9 @@ | |
{ | |
HMODULE imm32_lib = GetModuleHandle ("imm32.dll"); | |
+ BOOL (WINAPI * disable_ime_fn) (DWORD) = (BOOL (WINAPI *) (DWORD)) | |
+ GetProcAddress (imm32_lib, "ImmDisableIME"); | |
+ if (disable_ime_fn) disable_ime_fn (-1); | |
get_composition_string_fn = (ImmGetCompositionString_Proc) | |
GetProcAddress (imm32_lib, "ImmGetCompositionStringW"); | |
get_ime_context_fn = (ImmGetContext_Proc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment