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 	TEST(hPal != 0);
19 	TEST(GDI_HANDLE_GET_TYPE(hPal) == GDI_OBJECT_TYPE_PALETTE);
20 	pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(hPal)];
21 	TEST(pEntry->einfo.pobj != NULL);
22 	TEST(pEntry->ObjectOwner.ulObj == GetCurrentProcessId());
23 	TEST(pEntry->pUser == 0);
24 	//TEST(pEntry->Type == (((UINT)hPal >> 16) | GDI_OBJECT_TYPE_PALETTE));
25 
26 }
27