4#pragma warning(disable:4200)
56#define PALETTE_UnlockPalette(pPalette) GDIOBJ_vUnlockObject((POBJ)pPalette)
57#define PALETTE_ShareLockPalette(hpal) \
58 ((PPALETTE)GDIOBJ_ShareLockObj((HGDIOBJ)hpal, GDI_OBJECT_TYPE_PALETTE))
59#define PALETTE_ShareUnlockPalette(ppal) \
60 GDIOBJ_vDereferenceObject(&ppal->BaseObject)
132 ULONG ulShift1, ulShift2;
135 ulShift2 -= ulShift1;
136 if ((
INT)ulShift2 < 0) ulShift2 += 32;
144 if (ulIndex >= ppal->
NumColors)
return 0;
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
PALETTEENTRY * IndexedColors
XLATEOBJ * logicalToSystem
PALETTEENTRY apalColors[0]
ULONG NTAPI PALETTE_ulGetNearestPaletteIndex(PPALETTE ppal, ULONG iColor)
struct _PALETTE * PPALETTE
VOID FASTCALL PALETTE_ValidateFlags(PALETTEENTRY *lpPalE, INT size)
FORCEINLINE VOID PALETTE_vSetRGBColorForIndex(PPALETTE ppal, ULONG ulIndex, COLORREF crColor)
VOID NTAPI PALETTE_vCleanup(PVOID ObjectBody)
FORCEINLINE ULONG CalculateShift(ULONG ulMask1, ULONG ulMask2)
PPALETTE NTAPI PALETTE_AllocPalWithHandle(_In_ ULONG iMode, _In_ ULONG cColors, _In_opt_ const PALETTEENTRY *pEntries, _In_ FLONG flRed, _In_ FLONG flGreen, _In_ FLONG flBlue)
HPALETTE NTAPI GreCreatePaletteInternal(IN LPLOGPALETTE pLogPal, IN UINT cEntries)
PPALETTE NTAPI PALETTE_AllocPalette(_In_ ULONG iMode, _In_ ULONG cColors, _In_opt_ const PALETTEENTRY *pEntries, _In_ FLONG flRed, _In_ FLONG flGreen, _In_ FLONG flBlue)
INT FASTCALL PALETTE_GetObject(PPALETTE pGdiObject, INT cbCount, LPLOGBRUSH lpBuffer)
NTSTATUS NTAPI InitPaletteImpl(VOID)
ULONG NTAPI PALETTE_ulGetNearestBitFieldsIndex(PPALETTE ppal, ULONG ulColor)
FORCEINLINE ULONG PALETTE_ulGetRGBColorFromIndex(PPALETTE ppal, ULONG ulIndex)
VOID NTAPI PALETTE_vGetBitMasks(PPALETTE ppal, PULONG pulColors)
ULONG NTAPI PALETTE_ulGetNearestIndex(PPALETTE ppal, ULONG iColor)
PPALETTE appalSurfaceDefault[]
_In_ UINT _In_ UINT cEntries