msi: Make WHEREVIEW able to deal directly with multiple tables.
[wine] / include / imm.h
1 /*
2  * Declarations for IMM32
3  *
4  * Copyright (C) the Wine project
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #ifndef __WINE_IMM_H
22 #define __WINE_IMM_H
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 typedef HANDLE HIMC;
29 typedef HANDLE HIMCC;
30
31 typedef struct tagREGISTERWORDA {
32     LPSTR lpReading;
33     LPSTR lpWord;
34 } REGISTERWORDA, *PREGISTERWORDA, *NPREGISTERWORDA, *LPREGISTERWORDA;
35
36 typedef struct tagREGISTERWORDW {
37     LPWSTR lpReading;
38     LPWSTR lpWord;
39 } REGISTERWORDW, *PREGISTERWORDW, *NPREGISTERWORDW, *LPREGISTERWORDW;
40
41 typedef int (CALLBACK *REGISTERWORDENUMPROCA)(LPCSTR, DWORD, LPCSTR, LPVOID);
42 typedef int (CALLBACK *REGISTERWORDENUMPROCW)(LPCWSTR, DWORD, LPCWSTR, LPVOID);
43
44 typedef struct tagCANDIDATEFORM
45 {
46                                 DWORD   dwIndex;
47                                 DWORD   dwStyle;
48                                 POINT ptCurrentPos;
49                                 RECT  rcArea;
50 } CANDIDATEFORM, *LPCANDIDATEFORM;
51
52 typedef struct tagCANDIDATELIST
53 {
54                                 DWORD dwSize;
55                                 DWORD dwStyle;
56                                 DWORD dwCount;
57                                 DWORD dwSelection;
58                                 DWORD dwPageStart;
59                                 DWORD dwPageSize;
60                                 DWORD dwOffset[1];
61 } CANDIDATELIST, *LPCANDIDATELIST;
62
63 typedef struct tagSTYLEBUFA
64 {
65                                 DWORD dwStyle;
66                                 CHAR  szDescription[32];
67 } STYLEBUFA, *LPSTYLEBUFA;
68
69 typedef struct tagSTYLEBUFW
70 {
71                                 DWORD dwStyle;
72                                 WCHAR  szDescription[32];
73 } STYLEBUFW, *LPSTYLEBUFW;
74
75 DECL_WINELIB_TYPE_AW(STYLEBUF)
76 DECL_WINELIB_TYPE_AW(LPSTYLEBUF)
77
78 typedef struct tagRECONVERTSTRING
79 {
80         DWORD   dwSize;
81         DWORD   dwVersion;
82         DWORD   dwStrLen;
83         DWORD   dwStrOffset;
84         DWORD   dwCompStrLen;
85         DWORD   dwCompStrOffset;
86         DWORD   dwTargetStrLen;
87         DWORD   dwTargetStrOffset;
88 } RECONVERTSTRING, *LPRECONVERTSTRING;
89
90
91 #define IMEMENUITEM_STRING_SIZE 80
92
93 typedef struct tagIMEMENUITEMINFOA
94 {
95         UINT            cbSize;
96         UINT            fType;
97         UINT            fState;
98         UINT            wID;
99         HBITMAP         hbmpChecked;
100         HBITMAP         hbmpUnchecked;
101         DWORD           dwItemData;
102         CHAR            szString[IMEMENUITEM_STRING_SIZE];
103         HBITMAP         hbmpItem;
104 } IMEMENUITEMINFOA, *LPIMEMENUITEMINFOA;
105
106 typedef struct tagIMEMENUITEMINFOW
107 {
108         UINT            cbSize;
109         UINT            fType;
110         UINT            fState;
111         UINT            wID;
112         HBITMAP         hbmpChecked;
113         HBITMAP         hbmpUnchecked;
114         DWORD           dwItemData;
115         WCHAR           szString[IMEMENUITEM_STRING_SIZE];
116         HBITMAP         hbmpItem;
117 } IMEMENUITEMINFOW, *LPIMEMENUITEMINFOW;
118
119 DECL_WINELIB_TYPE_AW(IMEMENUITEMINFO)
120 DECL_WINELIB_TYPE_AW(LPIMEMENUITEMINFO)
121
122
123 typedef struct _tagCOMPOSITIONFORM
124 {
125                                 DWORD   dwStyle;
126                                 POINT ptCurrentPos;
127                                 RECT  rcArea;
128 } COMPOSITIONFORM, *LPCOMPOSITIONFORM;
129
130 typedef BOOL (CALLBACK* IMCENUMPROC)(HIMC, LPARAM);
131
132 /* wParam for WM_IME_CONTROL */
133 #define IMC_GETCANDIDATEPOS             0x0007
134 #define IMC_SETCANDIDATEPOS             0x0008
135 #define IMC_GETCOMPOSITIONFONT          0x0009
136 #define IMC_SETCOMPOSITIONFONT          0x000A
137 #define IMC_GETCOMPOSITIONWINDOW        0x000B
138 #define IMC_SETCOMPOSITIONWINDOW        0x000C
139 #define IMC_GETSTATUSWINDOWPOS          0x000F
140 #define IMC_SETSTATUSWINDOWPOS          0x0010
141 #define IMC_CLOSESTATUSWINDOW           0x0021
142 #define IMC_OPENSTATUSWINDOW            0x0022
143
144 /*
145  * wParam for WM_IME_CONTROL to the soft keyboard
146  * dwAction for ImmNotifyIME
147  */
148 #define NI_OPENCANDIDATE                0x0010
149 #define NI_CLOSECANDIDATE               0x0011
150 #define NI_SELECTCANDIDATESTR           0x0012
151 #define NI_CHANGECANDIDATELIST          0x0013
152 #define NI_FINALIZECONVERSIONRESULT     0x0014
153 #define NI_COMPOSITIONSTR               0x0015
154 #define NI_SETCANDIDATE_PAGESTART       0x0016
155 #define NI_SETCANDIDATE_PAGESIZE        0x0017
156 #define NI_IMEMENUSELECTED              0x0018
157
158 /* lParam for WM_IME_SETCONTEXT */
159 #define ISC_SHOWUICANDIDATEWINDOW       0x00000001
160 #define ISC_SHOWUICOMPOSITIONWINDOW     0x80000000
161 #define ISC_SHOWUIGUIDELINE             0x40000000
162 #define ISC_SHOWUIALLCANDIDATEWINDOW    0x0000000F
163 #define ISC_SHOWUIALL                   0xC000000F
164
165
166 /* dwIndex for ImmNotifyIME/NI_COMPOSITIONSTR */
167 #define CPS_COMPLETE                    0x0001
168 #define CPS_CONVERT                     0x0002
169 #define CPS_REVERT                      0x0003
170 #define CPS_CANCEL                      0x0004
171
172
173 /* the modifiers of hot key */
174 #define MOD_ALT                         0x0001
175 #define MOD_CONTROL                     0x0002
176 #define MOD_SHIFT                       0x0004
177
178 #define MOD_LEFT                        0x8000
179 #define MOD_RIGHT                       0x4000
180
181 #define MOD_ON_KEYUP                    0x0800
182 #define MOD_IGNORE_ALL_MODIFIER         0x0400
183
184
185 /* Windows for Simplified Chinese Edition hot key ID from 0x10 - 0x2F */
186 #define IME_CHOTKEY_IME_NONIME_TOGGLE           0x10
187 #define IME_CHOTKEY_SHAPE_TOGGLE                0x11
188 #define IME_CHOTKEY_SYMBOL_TOGGLE               0x12
189
190 /* Windows for Japanese Edition hot key ID from 0x30 - 0x4F */
191 #define IME_JHOTKEY_CLOSE_OPEN                  0x30
192
193 /* Windows for Korean Edition hot key ID from 0x50 - 0x6F */
194 #define IME_KHOTKEY_SHAPE_TOGGLE                0x50
195 #define IME_KHOTKEY_HANJACONVERT                0x51
196 #define IME_KHOTKEY_ENGLISH                     0x52
197 /* Windows for Tranditional Chinese Edition hot key ID from 0x70 - 0x8F */
198 #define IME_THOTKEY_IME_NONIME_TOGGLE           0x70
199 #define IME_THOTKEY_SHAPE_TOGGLE                0x71
200 #define IME_THOTKEY_SYMBOL_TOGGLE               0x72
201
202 /* direct switch hot key ID from 0x100 - 0x11F */
203 #define IME_HOTKEY_DSWITCH_FIRST                0x100
204 #define IME_HOTKEY_DSWITCH_LAST                 0x11F
205
206 /* IME private hot key from 0x200 - 0x21F */
207 #define IME_HOTKEY_PRIVATE_FIRST                0x200
208 #define IME_ITHOTKEY_RESEND_RESULTSTR           0x200
209 #define IME_ITHOTKEY_PREVIOUS_COMPOSITION       0x201
210 #define IME_ITHOTKEY_UISTYLE_TOGGLE             0x202
211 #define IME_ITHOTKEY_RECONVERTSTRING            0x203
212 #define IME_HOTKEY_PRIVATE_LAST                 0x21F
213
214
215 /*
216  * dwSystemInfoFlags bits
217  * parameter of ImmGetCompositionString
218  */
219 #define GCS_COMPREADSTR                 0x0001
220 #define GCS_COMPREADATTR                0x0002
221 #define GCS_COMPREADCLAUSE              0x0004
222 #define GCS_COMPSTR                     0x0008
223 #define GCS_COMPATTR                    0x0010
224 #define GCS_COMPCLAUSE                  0x0020
225 #define GCS_CURSORPOS                   0x0080
226 #define GCS_DELTASTART                  0x0100
227 #define GCS_RESULTREADSTR               0x0200
228 #define GCS_RESULTREADCLAUSE            0x0400
229 #define GCS_RESULTSTR                   0x0800
230 #define GCS_RESULTCLAUSE                0x1000
231
232 /* style bit flags for WM_IME_COMPOSITION */
233 #define CS_INSERTCHAR                   0x2000
234 #define CS_NOMOVECARET                  0x4000
235
236
237 /*
238  * bits of fdwInit of INPUTCONTEXT
239  * IME version constants
240  */
241 #define IMEVER_0310                     0x0003000A
242 #define IMEVER_0400                     0x00040000
243
244
245 /* IME property bits */
246 #define IME_PROP_AT_CARET               0x00010000
247 #define IME_PROP_SPECIAL_UI             0x00020000
248 #define IME_PROP_CANDLIST_START_FROM_1  0x00040000
249 #define IME_PROP_UNICODE                0x00080000
250 #define IME_PROP_COMPLETE_ON_UNSELECT   0x00100000
251
252
253 /* IME UICapability bits */
254 #define UI_CAP_2700                     0x00000001
255 #define UI_CAP_ROT90                    0x00000002
256 #define UI_CAP_ROTANY                   0x00000004
257 /* ImmSetCompositionString Capability bits */
258 #define SCS_CAP_COMPSTR                 0x00000001
259 #define SCS_CAP_MAKEREAD                0x00000002
260 #define SCS_CAP_SETRECONVERTSTRING      0x00000004
261
262
263 /* IME WM_IME_SELECT inheritance Capability bits */
264 #define SELECT_CAP_CONVERSION           0x00000001
265 #define SELECT_CAP_SENTENCE             0x00000002
266
267
268 /* ID for deIndex of ImmGetGuideLine */
269 #define GGL_LEVEL                       0x00000001
270 #define GGL_INDEX                       0x00000002
271 #define GGL_STRING                      0x00000003
272 #define GGL_PRIVATE                     0x00000004
273
274 /* ID for dwLevel of GUIDELINE Structure */
275 #define GL_LEVEL_NOGUIDELINE            0x00000000
276 #define GL_LEVEL_FATAL                  0x00000001
277 #define GL_LEVEL_ERROR                  0x00000002
278 #define GL_LEVEL_WARNING                0x00000003
279 #define GL_LEVEL_INFORMATION            0x00000004
280
281 /* ID for dwIndex of GUIDELINE Structure */
282 #define GL_ID_UNKNOWN                   0x00000000
283 #define GL_ID_NOMODULE                  0x00000001
284 #define GL_ID_NODICTIONARY              0x00000010
285 #define GL_ID_CANNOTSAVE                0x00000011
286 #define GL_ID_NOCONVERT                 0x00000020
287 #define GL_ID_TYPINGERROR               0x00000021
288 #define GL_ID_TOOMANYSTROKE             0x00000022
289 #define GL_ID_READINGCONFLICT           0x00000023
290 #define GL_ID_INPUTREADING              0x00000024
291 #define GL_ID_INPUTRADICAL              0x00000025
292 #define GL_ID_INPUTCODE                 0x00000026
293 #define GL_ID_INPUTSYMBOL               0x00000027
294 #define GL_ID_CHOOSECANDIDATE           0x00000028
295 #define GL_ID_REVERSECONVERSION         0x00000029
296 #define GL_ID_PRIVATE_FIRST             0x00008000
297 #define GL_ID_PRIVATE_LAST              0x0000FFFF
298
299 /* ID for dwIndex of ImmGetProperty */
300 #define IGP_GETIMEVERSION               (DWORD)(-4)
301 #define IGP_PROPERTY                    0x00000004
302 #define IGP_CONVERSION                  0x00000008
303 #define IGP_SENTENCE                    0x0000000c
304 #define IGP_UI                          0x00000010
305 #define IGP_SETCOMPSTR                  0x00000014
306 #define IGP_SELECT                      0x00000018
307
308
309 /* dwIndex for ImmSetCompositionString API */
310 #define SCS_SETSTR          (GCS_COMPREADSTR|GCS_COMPSTR)
311 #define SCS_CHANGEATTR      (GCS_COMPREADATTR|GCS_COMPATTR)
312 #define SCS_CHANGECLAUSE    (GCS_COMPREADCLAUSE|GCS_COMPCLAUSE)
313 #define SCS_SETRECONVERTSTRING          0x00010000
314 #define SCS_QUERYRECONVERTSTRING        0x00020000
315
316 /* attribute for COMPOSITIONSTRING Structure */
317 #define ATTR_INPUT                      0x00
318 #define ATTR_TARGET_CONVERTED           0x01
319 #define ATTR_CONVERTED                  0x02
320 #define ATTR_TARGET_NOTCONVERTED        0x03
321 #define ATTR_INPUT_ERROR                0x04
322 #define ATTR_FIXEDCONVERTED             0x05
323
324
325 /* bit field for IMC_SETCOMPOSITIONWINDOW, IMC_SETCANDIDATEWINDOW */
326 #define CFS_DEFAULT                     0x0000
327 #define CFS_RECT                        0x0001
328 #define CFS_POINT                       0x0002
329 #define CFS_FORCE_POSITION              0x0020
330 #define CFS_CANDIDATEPOS                0x0040
331 #define CFS_EXCLUDE                     0x0080
332
333 /* conversion direction for ImmGetConversionList */
334 #define GCL_CONVERSION                  0x0001
335 #define GCL_REVERSECONVERSION           0x0002
336 #define GCL_REVERSE_LENGTH              0x0003
337
338
339 /* bit field for conversion mode */
340 #define IME_CMODE_ALPHANUMERIC          0x0000
341 #define IME_CMODE_NATIVE                0x0001
342 #define IME_CMODE_CHINESE               IME_CMODE_NATIVE
343 /* IME_CMODE_HANGEUL is old name of IME_CMODE_HANGUL. It will be gone eventually. */
344 #define IME_CMODE_HANGEUL               IME_CMODE_NATIVE
345 #define IME_CMODE_HANGUL                IME_CMODE_NATIVE
346 #define IME_CMODE_JAPANESE              IME_CMODE_NATIVE
347 #define IME_CMODE_KATAKANA              0x0002  /* only effect under IME_CMODE_NATIVE */
348 #define IME_CMODE_LANGUAGE              0x0003
349 #define IME_CMODE_FULLSHAPE             0x0008
350 #define IME_CMODE_ROMAN                 0x0010
351 #define IME_CMODE_CHARCODE              0x0020
352 #define IME_CMODE_HANJACONVERT          0x0040
353 #define IME_CMODE_SOFTKBD               0x0080
354 #define IME_CMODE_NOCONVERSION          0x0100
355 #define IME_CMODE_EUDC                  0x0200
356 #define IME_CMODE_SYMBOL                0x0400
357 #define IME_CMODE_FIXED                 0x0800
358
359
360 #define IME_SMODE_NONE                  0x0000
361 #define IME_SMODE_PLAURALCLAUSE         0x0001
362 #define IME_SMODE_SINGLECONVERT         0x0002
363 #define IME_SMODE_AUTOMATIC             0x0004
364 #define IME_SMODE_PHRASEPREDICT         0x0008
365 #define IME_SMODE_CONVERSATION          0x0010
366
367 /* style of candidate */
368 #define IME_CAND_UNKNOWN                0x0000
369 #define IME_CAND_READ                   0x0001
370 #define IME_CAND_CODE                   0x0002
371 #define IME_CAND_MEANING                0x0003
372 #define IME_CAND_RADICAL                0x0004
373 #define IME_CAND_STROKE                 0x0005
374
375
376 /* wParam of report message WM_IME_NOTIFY */
377 #define IMN_CLOSESTATUSWINDOW           0x0001
378 #define IMN_OPENSTATUSWINDOW            0x0002
379 #define IMN_CHANGECANDIDATE             0x0003
380 #define IMN_CLOSECANDIDATE              0x0004
381 #define IMN_OPENCANDIDATE               0x0005
382 #define IMN_SETCONVERSIONMODE           0x0006
383 #define IMN_SETSENTENCEMODE             0x0007
384 #define IMN_SETOPENSTATUS               0x0008
385 #define IMN_SETCANDIDATEPOS             0x0009
386 #define IMN_SETCOMPOSITIONFONT          0x000A
387 #define IMN_SETCOMPOSITIONWINDOW        0x000B
388 #define IMN_SETSTATUSWINDOWPOS          0x000C
389 #define IMN_GUIDELINE                   0x000D
390 #define IMN_PRIVATE                     0x000E
391
392
393 /* wParam of report message WM_IME_REQUEST */
394 #define IMR_COMPOSITIONWINDOW           0x0001
395 #define IMR_CANDIDATEWINDOW             0x0002
396 #define IMR_COMPOSITIONFONT             0x0003
397 #define IMR_RECONVERTSTRING             0x0004
398 #define IMR_CONFIRMRECONVERTSTRING      0x0005
399 #define IMR_QUERYCHARPOSITION           0x0006
400 #define IMR_DOCUMENTFEED                0x0007
401
402
403 /* error code of ImmGetCompositionString */
404 #define IMM_ERROR_NODATA                (-1)
405 #define IMM_ERROR_GENERAL               (-2)
406
407
408 /* dialog mode of ImmConfigureIME */
409 #define IME_CONFIG_GENERAL              1
410 #define IME_CONFIG_REGISTERWORD         2
411 #define IME_CONFIG_SELECTDICTIONARY     3
412
413 /* dialog mode of ImmEscape */
414 #define IME_ESC_QUERY_SUPPORT           0x0003
415 #define IME_ESC_RESERVED_FIRST          0x0004
416 #define IME_ESC_RESERVED_LAST           0x07FF
417 #define IME_ESC_PRIVATE_FIRST           0x0800
418 #define IME_ESC_PRIVATE_LAST            0x0FFF
419 #define IME_ESC_SEQUENCE_TO_INTERNAL    0x1001
420 #define IME_ESC_GET_EUDC_DICTIONARY     0x1003
421 #define IME_ESC_SET_EUDC_DICTIONARY     0x1004
422 #define IME_ESC_MAX_KEY                 0x1005
423 #define IME_ESC_IME_NAME                0x1006
424 #define IME_ESC_SYNC_HOTKEY             0x1007
425 #define IME_ESC_HANJA_MODE              0x1008
426 #define IME_ESC_AUTOMATA                0x1009
427 #define IME_ESC_PRIVATE_HOTKEY          0x100a
428 #define IME_ESC_GETHELPFILENAME         0x100b
429
430
431 /* style of word registration */
432 #define IME_REGWORD_STYLE_EUDC          0x00000001
433 #define IME_REGWORD_STYLE_USER_FIRST    0x80000000
434 #define IME_REGWORD_STYLE_USER_LAST     0xFFFFFFFF
435
436
437 /* dwFlags for ImmAssociateContextEx */
438 #define IACE_CHILDREN                   0x0001
439 #define IACE_DEFAULT                    0x0010
440 #define IACE_IGNORENOCONTEXT            0x0020
441
442 /* dwFlags for ImmGetImeMenuItems */
443 #define IGIMIF_RIGHTMENU                0x0001
444
445 /* dwType for ImmGetImeMenuItems */
446 #define IGIMII_CMODE                    0x0001
447 #define IGIMII_SMODE                    0x0002
448 #define IGIMII_CONFIGURE                0x0004
449 #define IGIMII_TOOLS                    0x0008
450 #define IGIMII_HELP                     0x0010
451 #define IGIMII_OTHER                    0x0020
452 #define IGIMII_INPUTTOOLS               0x0040
453
454 /* fType of IMEMENUITEMINFO structure */
455 #define IMFT_RADIOCHECK                 0x00001
456 #define IMFT_SEPARATOR                  0x00002
457 #define IMFT_SUBMENU                    0x00004
458
459 /* fState of IMEMENUITEMINFO structure */
460 #define IMFS_GRAYED                     MFS_GRAYED
461 #define IMFS_DISABLED                   MFS_DISABLED
462 #define IMFS_CHECKED                    MFS_CHECKED
463 #define IMFS_HILITE                     MFS_HILITE
464 #define IMFS_ENABLED                    MFS_ENABLED
465 #define IMFS_UNCHECKED                  MFS_UNCHECKED
466 #define IMFS_UNHILITE                   MFS_UNHILITE
467 #define IMFS_DEFAULT                    MFS_DEFAULT
468
469
470 /*
471  * type of soft keyboard
472  * for Windows Tranditional Chinese Edition
473  */
474 #define SOFTKEYBOARD_TYPE_T1            0x0001
475 /* for Windows Simplified Chinese Edition */
476 #define SOFTKEYBOARD_TYPE_C1            0x0002
477
478
479 HIMC   WINAPI ImmAssociateContext(HWND, HIMC);
480 BOOL   WINAPI ImmAssociateContextEx(HWND, HIMC, DWORD);
481 BOOL   WINAPI ImmConfigureIMEA(HKL, HWND, DWORD, LPVOID);
482 BOOL   WINAPI ImmConfigureIMEW(HKL, HWND, DWORD, LPVOID);
483 #define  ImmConfigureIME WINELIB_NAME_AW(ImmConfigureIME)
484 HIMC   WINAPI ImmCreateContext(void);
485 BOOL   WINAPI ImmDestroyContext(HIMC hIMC);
486 BOOL   WINAPI ImmDisableIME(DWORD idThread);
487 BOOL   WINAPI ImmEnumInputContext(DWORD, IMCENUMPROC, LPARAM);
488 UINT   WINAPI ImmEnumRegisterWordA(HKL, REGISTERWORDENUMPROCA, LPCSTR, DWORD, LPCSTR, LPVOID);
489 UINT   WINAPI ImmEnumRegisterWordW(HKL, REGISTERWORDENUMPROCW, LPCWSTR, DWORD, LPCWSTR, LPVOID);
490 #define  ImmEnumRegisterWord WINELIB_NAME_AW(ImmEnumRegisterWord)
491 LRESULT  WINAPI ImmEscapeA(HKL, HIMC, UINT, LPVOID);
492 LRESULT  WINAPI ImmEscapeW(HKL, HIMC, UINT, LPVOID);
493 #define  ImmEscape WINELIB_NAME_AW(ImmEscape)
494 DWORD    WINAPI ImmGetCandidateListA(HIMC, DWORD, LPCANDIDATELIST, DWORD);
495 DWORD    WINAPI ImmGetCandidateListW(HIMC, DWORD, LPCANDIDATELIST, DWORD);
496 #define  ImmGetCandidateList WINELIB_NAME_AW(ImmGetCandidateList)
497 DWORD    WINAPI ImmGetCandidateListCountA(HIMC, LPDWORD);
498 DWORD    WINAPI ImmGetCandidateListCountW(HIMC, LPDWORD);
499 #define  ImmGetCandidateListCount WINELIB_NAME_AW(ImmGetCandidateListCount)
500 BOOL   WINAPI ImmGetCandidateWindow(HIMC, DWORD, LPCANDIDATEFORM);
501 #if defined(_WINGDI_) && !defined(NOGDI)
502 BOOL   WINAPI ImmGetCompositionFontA(HIMC, LPLOGFONTA);
503 BOOL   WINAPI ImmGetCompositionFontW(HIMC, LPLOGFONTW);
504 #define  ImmGetCompositionFont WINELIB_NAME_AW(ImmGetCompositionFont)
505 BOOL   WINAPI ImmSetCompositionFontA(HIMC, LPLOGFONTA);
506 BOOL   WINAPI ImmSetCompositionFontW(HIMC, LPLOGFONTW);
507 #define  ImmSetCompositionFont WINELIB_NAME_AW(ImmSetCompositionFont)
508 #endif
509 LONG     WINAPI ImmGetCompositionStringA(HIMC, DWORD, LPVOID, DWORD);
510 LONG     WINAPI ImmGetCompositionStringW(HIMC, DWORD, LPVOID, DWORD);
511 #define  ImmGetCompositionString WINELIB_NAME_AW(ImmGetCompositionString)
512 BOOL   WINAPI ImmGetCompositionWindow(HIMC, LPCOMPOSITIONFORM);
513 HIMC   WINAPI ImmGetContext(HWND);
514 DWORD    WINAPI ImmGetConversionListA(HKL, HIMC, LPCSTR, LPCANDIDATELIST, DWORD, UINT);
515 DWORD    WINAPI ImmGetConversionListW(HKL, HIMC, LPCWSTR, LPCANDIDATELIST, DWORD, UINT);
516 #define  ImmGetConversionList WINELIB_NAME_AW(ImmGetConversionList)
517 BOOL   WINAPI ImmGetConversionStatus(HIMC, LPDWORD, LPDWORD);
518 HWND   WINAPI ImmGetDefaultIMEWnd(HWND);
519 UINT   WINAPI ImmGetDescriptionA(HKL, LPSTR, UINT);
520 UINT   WINAPI ImmGetDescriptionW(HKL, LPWSTR, UINT);
521 #define  ImmGetDescription WINELIB_NAME_AW(ImmGetDescription)
522 DWORD    WINAPI ImmGetGuideLineA(HIMC, DWORD, LPSTR, DWORD);
523 DWORD    WINAPI ImmGetGuideLineW(HIMC, DWORD, LPWSTR, DWORD);
524 #define  ImmGetGuideLine WINELIB_NAME_AW(ImmGetGuideLine)
525 UINT   WINAPI ImmGetIMEFileNameA(HKL, LPSTR, UINT);
526 UINT   WINAPI ImmGetIMEFileNameW(HKL, LPWSTR, UINT);
527 #define  ImmGetIMEFileName WINELIB_NAME_AW(ImmGetIMEFileName)
528 DWORD  WINAPI ImmGetImeMenuItemsA(HIMC, DWORD, DWORD, LPIMEMENUITEMINFOA, LPIMEMENUITEMINFOA, DWORD);
529 DWORD  WINAPI ImmGetImeMenuItemsW(HIMC, DWORD, DWORD, LPIMEMENUITEMINFOW, LPIMEMENUITEMINFOW, DWORD);
530 #define ImmGetImeMenuItems  WINELIB_NAME_AW(ImmGetImeMenuItems)
531 BOOL   WINAPI ImmGetOpenStatus(HIMC);
532 DWORD    WINAPI ImmGetProperty(HKL, DWORD);
533 UINT   WINAPI ImmGetRegisterWordStyleA(HKL, UINT, LPSTYLEBUFA);
534 UINT   WINAPI ImmGetRegisterWordStyleW(HKL, UINT, LPSTYLEBUFW);
535 #define  ImmGetRegisterWordStyle WINELIB_NAME_AW(ImmGetRegisterWordStyle)
536 BOOL   WINAPI ImmGetStatusWindowPos(HIMC, LPPOINT);
537 UINT   WINAPI ImmGetVirtualKey(HWND);
538 HKL    WINAPI ImmInstallIMEA(LPCSTR, LPCSTR);
539 HKL    WINAPI ImmInstallIMEW(LPCWSTR, LPCWSTR);
540 #define  ImmInstallIME WINELIB_NAME_AW(ImmInstallIME)
541 BOOL   WINAPI ImmIsIME(HKL);
542 BOOL   WINAPI ImmIsUIMessageA(HWND, UINT, WPARAM, LPARAM);
543 BOOL   WINAPI ImmIsUIMessageW(HWND, UINT, WPARAM, LPARAM);
544 #define  ImmIsUIMessage WINELIB_NAME_AW(ImmIsUIMessage)
545 BOOL   WINAPI ImmNotifyIME(HIMC, DWORD, DWORD, DWORD);
546 BOOL   WINAPI ImmProcessKey(HWND, HKL, UINT, LPARAM, DWORD);
547 BOOL   WINAPI ImmRegisterWordA(HKL, LPCSTR, DWORD, LPCSTR);
548 BOOL   WINAPI ImmRegisterWordW(HKL, LPCWSTR, DWORD, LPCWSTR);
549 #define  ImmRegisterWord WINELIB_NAME_AW(ImmRegisterWord)
550 BOOL   WINAPI ImmReleaseContext(HWND, HIMC);
551 BOOL   WINAPI ImmSetCandidateWindow(HIMC, LPCANDIDATEFORM);
552 BOOL   WINAPI ImmSetCompositionStringA(HIMC, DWORD, LPCVOID, DWORD, LPCVOID, DWORD);
553 BOOL   WINAPI ImmSetCompositionStringW(HIMC, DWORD, LPCVOID, DWORD, LPCVOID, DWORD);
554 #define  ImmSetCompositionString WINELIB_NAME_AW(ImmSetCompositionString)
555 BOOL   WINAPI ImmSetCompositionWindow(HIMC, LPCOMPOSITIONFORM);
556 BOOL   WINAPI ImmSetConversionStatus(HIMC, DWORD, DWORD);
557 BOOL   WINAPI ImmSetOpenStatus(HIMC, BOOL);
558 BOOL   WINAPI ImmSetStatusWindowPos(HIMC, LPPOINT);
559 BOOL   WINAPI ImmSimulateHotKey(HWND, DWORD);
560 BOOL   WINAPI ImmUnregisterWordA(HKL, LPCSTR, DWORD, LPCSTR);
561 BOOL   WINAPI ImmUnregisterWordW(HKL, LPCWSTR, DWORD, LPCWSTR);
562 #define  ImmUnregisterWord WINELIB_NAME_AW(ImmUnregisterWord)
563
564
565 #ifdef __cplusplus
566 }
567 #endif
568
569 #endif  /* __WINE_IMM_H */