ReactOS 0.4.16-dev-297-gc569aee
ImmIsUIMessage.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Test for ImmIsUIMessage
5 * COPYRIGHT: Copyright 2021 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
6 */
7
8#include "precomp.h"
9
11{
12 UINT uMsg;
13 BOOL ret;
14 for (uMsg = 0x100; uMsg < 0x300; ++uMsg)
15 {
16 ret = ImmIsUIMessageA(NULL, uMsg, 0, 0);
17 switch (uMsg)
18 {
19 case WM_IME_STARTCOMPOSITION: case WM_IME_ENDCOMPOSITION:
20 case WM_IME_COMPOSITION: case WM_IME_SETCONTEXT: case WM_IME_NOTIFY:
22 ok_int(ret, TRUE);
23 break;
24 default:
26 break;
27 }
28 }
29}
#define START_TEST(x)
Definition: atltest.h:75
#define ok_int(expression, result)
Definition: atltest.h:134
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
#define ImmIsUIMessage
Definition: imm.h:832
BOOL WINAPI ImmIsUIMessageA(HWND hWndIME, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: keymsg.c:610
unsigned int UINT
Definition: ndis.h:50
#define WM_IME_SYSTEM
Definition: undocuser.h:60
int ret
#define WM_IME_NOTIFY
Definition: winuser.h:1833
#define WM_IME_SETCONTEXT
Definition: winuser.h:1832
#define WM_IME_COMPOSITIONFULL
Definition: winuser.h:1835
#define WM_IME_SELECT
Definition: winuser.h:1836