ReactOS  0.4.15-dev-4857-g47842d7
ctf.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS IMM32
3  * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4  * PURPOSE: Implementing IMM32 Cicero (modern input method)
5  * COPYRIGHT: Copyright 2022 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
6  */
7 
8 #include "precomp.h"
9 
11 
12 // Win: LoadCtfIme
14 {
15  FIXME("()\n");
16  return NULL;
17 }
18 
19 // Win: Internal_CtfImeDestroyInputContext
21 {
22  if (!Imm32LoadCtfIme())
23  return E_FAIL;
24 #if 1
25  FIXME("(%p)\n", hIMC);
26  return E_NOTIMPL;
27 #else
28  return g_pfnCtfImeDestroyInputContext(hIMC);
29 #endif
30 }
31 
32 // Win: CtfImmTIMDestroyInputContext
34 {
35  if (!Imm32IsCiceroMode() || (GetWin32ClientInfo()->dwCompatFlags2 & 2))
36  return E_NOINTERFACE;
37 
38  return Imm32CtfImeDestroyInputContext(hIMC);
39 }
40 
41 // Win: CtfImmTIMCreateInputContext
43 {
44  TRACE("(%p)\n", hIMC);
45  return E_NOTIMPL;
46 }
47 
48 /***********************************************************************
49  * CtfImmIsCiceroEnabled (IMM32.@)
50  */
52 {
53  return Imm32IsCiceroMode();
54 }
55 
56 /***********************************************************************
57  * CtfImmIsTextFrameServiceDisabled(IMM32.@)
58  */
60 {
61  return !!(GetWin32ClientInfo()->CI_flags & CI_TFSDISABLED);
62 }
63 
64 /***********************************************************************
65  * CtfImmTIMActivate(IMM32.@)
66  */
68 {
69  FIXME("(%p)\n", hKL);
70  return E_NOTIMPL;
71 }
72 
73 /***********************************************************************
74  * CtfImmRestoreToolbarWnd(IMM32.@)
75  */
77 {
78  FIXME("(0x%lx)\n", dwStatus);
79 }
80 
81 /***********************************************************************
82  * CtfImmHideToolbarWnd(IMM32.@)
83  */
85 {
86  FIXME("()\n");
87  return 0;
88 }
89 
90 /***********************************************************************
91  * CtfImmDispatchDefImeMessage(IMM32.@)
92  */
94 {
95  FIXME("(%p, %u, %p, %p)\n", hWnd, uMsg, wParam, lParam);
96  return 0;
97 }
BOOL WINAPI CtfImmIsTextFrameServiceDisabled(VOID)
Definition: ctf.c:59
#define E_NOINTERFACE
Definition: winerror.h:2364
HWND hWnd
Definition: settings.c:17
HRESULT APIENTRY CtfImmTIMCreateInputContext(HIMC hIMC)
Definition: ctf.c:42
UINT_PTR WPARAM
Definition: windef.h:207
#define GetWin32ClientInfo()
Definition: ntuser.h:335
DWORD WINAPI CtfImmHideToolbarWnd(VOID)
Definition: ctf.c:84
#define E_FAIL
Definition: ddrawi.h:102
WPARAM wParam
Definition: combotst.c:138
LRESULT WINAPI CtfImmDispatchDefImeMessage(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: ctf.c:93
unsigned int BOOL
Definition: ntddk_ex.h:94
#define FIXME(fmt,...)
Definition: debug.h:111
LONG_PTR LPARAM
Definition: windef.h:208
DWORD HIMC
Definition: dimm.idl:75
#define CI_TFSDISABLED
Definition: ntuser.h:298
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
HRESULT APIENTRY Imm32CtfImeDestroyInputContext(HIMC hIMC)
Definition: ctf.c:20
WINE_DEFAULT_DEBUG_CHANNEL(imm)
UINT_PTR HKL
Definition: msctf.idl:101
HMODULE APIENTRY Imm32LoadCtfIme(VOID)
Definition: ctf.c:13
DWORD dwStatus
Definition: mediaobj.idl:95
#define E_NOTIMPL
Definition: ddrawi.h:99
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
BOOL WINAPI CtfImmIsCiceroEnabled(VOID)
Definition: ctf.c:51
HRESULT APIENTRY CtfImmTIMDestroyInputContext(HIMC hIMC)
Definition: ctf.c:33
LONG_PTR LRESULT
Definition: windef.h:209
VOID WINAPI CtfImmRestoreToolbarWnd(DWORD dwStatus)
Definition: ctf.c:76
LPARAM lParam
Definition: combotst.c:139
#define Imm32IsCiceroMode()
Definition: precomp.h:118
#define APIENTRY
Definition: api.h:79
HRESULT WINAPI CtfImmTIMActivate(HKL hKL)
Definition: ctf.c:67