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 10 START_TEST(NtGdiEngCreatePalette) 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"); 19 ok_int((int)GDI_HANDLE_GET_TYPE(hPal), (int)GDI_OBJECT_TYPE_PALETTE); 20 pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(hPal)]; 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 } 26