reactos/modules/rostests/apitests/imm32/imcc.c
Katayama Hirofumi MZ 5a9c77b3be
[IMM32_APITEST] Add clientimc testcase (#3815)
- Add clientimc testcase to imm32_apitest.
- Add "precomp.h".
CORE-11700
2021-07-14 01:19:35 +09:00

30 lines
794 B
C

/*
* PROJECT: ReactOS api tests
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Test for imm32 IMCC
* COPYRIGHT: Copyright 2021 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
*/
#include "precomp.h"
START_TEST(imcc)
{
HIMCC hImcc;
DWORD i;
for (i = 0; i < 4; ++i)
{
hImcc = ImmCreateIMCC(i);
ok_long(LocalSize(hImcc), 4);
ok_long(ImmGetIMCCSize(hImcc), 4);
ok_long(ImmGetIMCCLockCount(hImcc), (LocalFlags(hImcc) & LMEM_LOCKCOUNT));
ImmDestroyIMCC(hImcc);
}
hImcc = ImmCreateIMCC(5);
ok_long(LocalSize(hImcc), 5);
ok_long(ImmGetIMCCSize(hImcc), 5);
ok_long(ImmGetIMCCLockCount(hImcc), (LocalFlags(hImcc) & LMEM_LOCKCOUNT));
ImmDestroyIMCC(hImcc);
}