xref: /reactos/dll/ime/msctfime/msctfime.h (revision 7d6fc57e)
1 /*
2  * PROJECT:     ReactOS msctfime.ime
3  * LICENSE:     LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4  * PURPOSE:     Supporting IME interface of Text Input Processors (TIPs)
5  * COPYRIGHT:   Copyright 2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
6  */
7 
8 #pragma once
9 
10 #include <stdlib.h>
11 
12 #define WIN32_NO_STATUS
13 #define COBJMACROS
14 #define INITGUID
15 
16 #include <windows.h>
17 #include <imm.h>
18 #include <ddk/immdev.h>
19 #include <cguid.h>
20 #include <msctf.h>
21 #include <ctffunc.h>
22 #include <shlwapi.h>
23 #include <strsafe.h>
24 
25 #include <cicero/cicbase.h>
26 #include <cicero/cicarray.h>
27 #include <cicero/cicimc.h>
28 
29 class CicInputContext;
30 
31 typedef struct tagCTFIMECONTEXT
32 {
33     CicInputContext *m_pCicIC;
34     DWORD m_dwCicFlags;
35 } CTFIMECONTEXT, *PCTFIMECONTEXT;
36 
37 #include <wine/debug.h>
38 
39 #include "resource.h"
40 
41 #define IS_IME_HKL(hKL) ((((ULONG_PTR)(hKL)) & 0xF0000000) == 0xE0000000)
42 
43 extern HINSTANCE g_hInst;
44