mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
5a9c77b3be
- Add clientimc testcase to imm32_apitest. - Add "precomp.h". CORE-11700
29 lines
794 B
C
29 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);
|
|
}
|