ReactOS 0.4.15-dev-7906-g1b85a5f
NtGdiEngCreatePalette.c File Reference
#include "../win32nt.h"
Include dependency graph for NtGdiEngCreatePalette.c:

Go to the source code of this file.

Functions

 START_TEST (NtGdiEngCreatePalette)
 

Function Documentation

◆ START_TEST()

START_TEST ( NtGdiEngCreatePalette  )

Definition at line 10 of file NtGdiEngCreatePalette.c.

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 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