ReactOS 0.4.16-dev-92-g0c2cdca
NtGdiEngCreatePalette.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 NtGdiEngCreatePalette
5 * PROGRAMMERS:
6 */
7
8#include "../win32nt.h"
9
11{
12 HPALETTE hPal;
13 ULONG Colors[3] = {1,2,3};
15
16 hPal = NtGdiEngCreatePalette(PAL_RGB, 3, Colors, 0xff000000, 0x00ff0000, 0x0000ff00);
17
18 ok(hPal != NULL, "hPal was NULL.\n");
21 ok(pEntry->einfo.pobj != NULL, "pEntry->einfo.pobj was NULL.\n");
22 ok_long(pEntry->ObjectOwner.ulObj, GetCurrentProcessId());
23 ok_ptr(pEntry->pUser, NULL);
24 //TEST(pEntry->Type == (((UINT)hPal >> 16) | GDI_OBJECT_TYPE_PALETTE));
25}
Colors
Definition: ansiprsr.h:4
#define ok_long(expression, result)
Definition: atltest.h:133
#define ok(value,...)
Definition: atltest.h:57
#define START_TEST(x)
Definition: atltest.h:75
#define ok_int(expression, result)
Definition: atltest.h:134
#define ok_ptr(expression, result)
Definition: atltest.h:108
#define NULL
Definition: types.h:112
PLIST_ENTRY pEntry
Definition: fxioqueue.cpp:4484
#define GDI_HANDLE_GET_INDEX(h)
Definition: gdi.h:28
#define GDI_HANDLE_GET_TYPE(h)
Definition: gdi.h:31
#define GDI_OBJECT_TYPE_PALETTE
Definition: gdi.h:49
__kernel_entry W32KAPI HPALETTE APIENTRY NtGdiEngCreatePalette(_In_ ULONG iMode, _In_ ULONG cColors, _In_ ULONG *pulColors, _In_ FLONG flRed, _In_ FLONG flGreen, _In_ FLONG flBlue)
Definition: palette.c:1267
Definition: ntgdihdl.h:218
uint32_t ULONG
Definition: typedefs.h:59
#define GdiHandleTable
Definition: win32nt.h:37
DWORD WINAPI GetCurrentProcessId(void)
Definition: proc.c:1158
#define PAL_RGB
Definition: winddi.h:1563