ReactOS
0.4.16-dev-737-g3368adc
RealizePalette.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS api tests
3
* LICENSE: GPL - See COPYING in the top level directory
4
* PURPOSE: Test for RealizePalette
5
* PROGRAMMERS: Timo Kreuzer
6
*/
7
8
#include "
precomp.h
"
9
10
#include "
init.h
"
11
12
START_TEST
(
RealizePalette
)
13
{
14
InitStuff
();
15
ok_int
(
RealizePalette
(
NULL
),
GDI_ERROR
);
16
ok_int
(
RealizePalette
((
HDC
)
UlongToHandle
(0xdeadc0de)),
GDI_ERROR
);
17
ok_int
(
RealizePalette
((
HDC
)
UlongToHandle
(0x00010001)), 0);
18
ok_int
(
RealizePalette
(
ghdcDIB32
), 0);
19
20
}
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
ok_int
#define ok_int(expression, result)
Definition:
atltest.h:134
UlongToHandle
#define UlongToHandle(ul)
Definition:
basetsd.h:97
NULL
#define NULL
Definition:
types.h:112
ghdcDIB32
HDC ghdcDIB32
Definition:
init.c:8
InitStuff
BOOL InitStuff(void)
Definition:
init.c:95
init.h
HDC
static HDC
Definition:
imagelist.c:88
precomp.h
RealizePalette
UINT WINAPI RealizePalette(_In_ HDC)
Definition:
palette.c:138
GDI_ERROR
#define GDI_ERROR
Definition:
wingdi.h:1309
modules
rostests
apitests
gdi32
RealizePalette.c
Generated on Wed Feb 12 2025 06:07:27 for ReactOS by
1.9.6