dinput: Clear DIA_APPNOMAP BuildActionMap flag with specific device semantic.
[wine.git] / dlls / imm32 / imm_private.h
blob4cc4acda6c1cee5aaba421c75a94b1e9bff0a4b1
1 /*
2 * Copyright 2023 RĂ©mi Bernon for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include <stdarg.h>
20 #include <stddef.h>
22 #include "ntstatus.h"
23 #define WIN32_NO_STATUS
24 #include "windef.h"
25 #include "winbase.h"
26 #include "wingdi.h"
27 #include "winuser.h"
28 #include "winnls.h"
29 #include "winreg.h"
31 #include "imm.h"
32 #include "immdev.h"
33 #include "ntuser.h"
34 #include "objbase.h"
36 #include "wine/debug.h"
37 #include "wine/list.h"
39 extern HMODULE imm32_module;
41 /* MSIME messages */
42 extern UINT WM_MSIME_SERVICE;
43 extern UINT WM_MSIME_RECONVERTOPTIONS;
44 extern UINT WM_MSIME_MOUSE;
45 extern UINT WM_MSIME_RECONVERTREQUEST;
46 extern UINT WM_MSIME_RECONVERT;
47 extern UINT WM_MSIME_QUERYPOSITION;
48 extern UINT WM_MSIME_DOCUMENTFEED;
50 static const char *debugstr_wm_ime( UINT msg )
52 switch (msg)
54 case WM_IME_STARTCOMPOSITION: return "WM_IME_STARTCOMPOSITION";
55 case WM_IME_ENDCOMPOSITION: return "WM_IME_ENDCOMPOSITION";
56 case WM_IME_COMPOSITION: return "WM_IME_COMPOSITION";
57 case WM_IME_SETCONTEXT: return "WM_IME_SETCONTEXT";
58 case WM_IME_NOTIFY: return "WM_IME_NOTIFY";
59 case WM_IME_CONTROL: return "WM_IME_CONTROL";
60 case WM_IME_COMPOSITIONFULL: return "WM_IME_COMPOSITIONFULL";
61 case WM_IME_SELECT: return "WM_IME_SELECT";
62 case WM_IME_CHAR: return "WM_IME_CHAR";
63 case WM_IME_REQUEST: return "WM_IME_REQUEST";
64 case WM_IME_KEYDOWN: return "WM_IME_KEYDOWN";
65 case WM_IME_KEYUP: return "WM_IME_KEYUP";
66 default:
67 if (msg == WM_MSIME_SERVICE) return "WM_MSIME_SERVICE";
68 else if (msg == WM_MSIME_RECONVERTOPTIONS) return "WM_MSIME_RECONVERTOPTIONS";
69 else if (msg == WM_MSIME_MOUSE) return "WM_MSIME_MOUSE";
70 else if (msg == WM_MSIME_RECONVERTREQUEST) return "WM_MSIME_RECONVERTREQUEST";
71 else if (msg == WM_MSIME_RECONVERT) return "WM_MSIME_RECONVERT";
72 else if (msg == WM_MSIME_QUERYPOSITION) return "WM_MSIME_QUERYPOSITION";
73 else if (msg == WM_MSIME_DOCUMENTFEED) return "WM_MSIME_DOCUMENTFEED";
74 return wine_dbg_sprintf( "%#x", msg );