ReactOS  0.4.14-dev-293-g2b39b42
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};
14  PENTRY pEntry;
15 
16  hPal = NtGdiEngCreatePalette(PAL_RGB, 3, Colors, 0xff000000, 0x00ff0000, 0x0000ff00);
17 
18  ok(hPal != NULL, "hPal was NULL.\n");
20  pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(hPal)];
21  ok(pEntry->einfo.pobj != NULL, "pEntry->einfo.pobj was NULL.\n");
23  ok_ptr(pEntry->pUser, NULL);
24  //TEST(pEntry->Type == (((UINT)hPal >> 16) | GDI_OBJECT_TYPE_PALETTE));
25 }
#define GDI_HANDLE_GET_INDEX(h)
Definition: gdi.h:28
PVOID pUser
Definition: ntgdihdl.h:251
struct _BASEOBJECT * pobj
Definition: ntgdihdl.h:234
#define ok_ptr(expression, result)
Definition: atltest.h:108
#define ok_long(expression, result)
Definition: atltest.h:133
union _ENTRY::_EINFO einfo
smooth NULL
Definition: ftsmooth.c:416
#define ok_int(expression, result)
Definition: atltest.h:134
#define GDI_OBJECT_TYPE_PALETTE
Definition: gdi.h:49
#define GDI_HANDLE_GET_TYPE(h)
Definition: gdi.h:31
#define GdiHandleTable
Definition: win32nt.h:35
Colors
Definition: ansiprsr.h:4
ULONG ulObj
Definition: ntgdihdl.h:245
#define ok(value,...)
Definition: atltest.h:57
__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:1272
unsigned int ULONG
Definition: retypes.h:1
union _ENTRY::_OBJECTOWNER ObjectOwner
Definition: ntgdihdl.h:230
DWORD WINAPI GetCurrentProcessId(VOID)
Definition: proc.c:1158