Microsoft Windows CE 3.0  

DDRAWI_DDRAWPALETTE_GBL

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The DDRAWI_DDRAWPALETTE_GBLstructure contains the global DirectDrawPalette data that can be shared between object instances.

typedef struct _DDRAWI_DDRAWPALETTE_GBL { DWORD
dwRefCnt
;
DWORD
dwFlags
;
LPDDRAWI_DIRECTDRAW_LCL
lpDD_lcl
;
DWORD
dwProcessId
;
LPPALETTEENTRY
lpColorTable
;
union
{
DWORD
dwReserved1
;
HPALETTE
hHELGDIPalette
;
};
DWORD
dwDriverReserved
;
DWORD
dwContentsStamp
;
DWORD
dwSaveStamp
;
} DDRAWI_DDRAWPALETTE_GBL;

Members

dwRefCnt
This member is used by DirectDraw and should not be filled in by the driver.
dwFlags
Contains the palette control flags.
Flag Usage
DDRAWIPAL_16 Indicates a 16-entry palette.
DDRAWIPAL_2 Indicates a 2-entry palette.
DDRAWIPAL_256 Indicates a 256-entry palette.
DDRAWIPAL_4 Indicates a 4-entry palette.
DDRAWIPAL_ALLOW256 Indicates that the palette can be fully updated.
DDRAWIPAL_ALPHA Indicates the palette contains alpha.
DDRAWIPAL_DIRTY This flag is used by DirectDraw and should not be set by the driver.
DDRAWIPAL_EXCLUSIVE This flag is used by DirectDraw and should not be set by the driver.
DDRAWIPAL_GDI Indicates the palette is allocated through GDI.
DDRAWIPAL_INHEL This flag is used by DirectDraw and should not be set by the driver.
DDRAWIPAL_STORED_8 Indicates the palette is stored as 8 bpp per entry.
DDRAWIPAL_STORED_8INDEX Indicates the palette is stored as an 8-bit index into the destination palette.
DDRAWIPAL_STORED_16 Indicates the palette is stored as 16 bpp per entry.
DDRAWIPAL_STORED_24 Indicates the palette is stored as 24 bpp per entry.
lpDD_lcl
This member is used by DirectDraw and should not be filled in by the driver.
dwProcessId
This member is used by DirectDraw and should not be filled in by the driver.
lpColorTable
Pointer to an array of PALETTEENTRYstructures that contain the RGB values that are the colors in the palette.
dwReserved1
Reserved for use by the display driver.
hHELGDIPalette
This member is used by DirectDraw and should not be filled in by the driver.
dwDriverReserved
Reserved for use by the HAL, regardless of what created the object.
dwContentsStamp
Incremented when palette changes.
dwSaveStamp
This member is used by DirectDraw and should not be filled in by the driver.

 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.