xref: /reactos/modules/rostests/apitests/imm32/imcc.c (revision 9393fc32)
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 imm32 IMCC
5  * COPYRIGHT:   Copyright 2021 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
6  */
7 
8 #include "precomp.h"
9 
10 START_TEST(imcc)
11 {
12     HIMCC hImcc;
13     DWORD i;
14 
15     for (i = 0; i < 4; ++i)
16     {
17         hImcc = ImmCreateIMCC(i);
18         ok_long(LocalSize(hImcc), 4);
19         ok_long(ImmGetIMCCSize(hImcc), 4);
20         ok_long(ImmGetIMCCLockCount(hImcc), (LocalFlags(hImcc) & LMEM_LOCKCOUNT));
21         ImmDestroyIMCC(hImcc);
22     }
23 
24     hImcc = ImmCreateIMCC(5);
25     ok_long(LocalSize(hImcc), 5);
26     ok_long(ImmGetIMCCSize(hImcc), 5);
27     ok_long(ImmGetIMCCLockCount(hImcc), (LocalFlags(hImcc) & LMEM_LOCKCOUNT));
28     ImmDestroyIMCC(hImcc);
29 }
30