DD_SETPALETTEDATA structure (ddrawint.h)
The DD_SETPALETTEDATA structure contains information necessary to set a palette for a specific surface.
Syntax
typedef struct _DD_SETPALETTEDATA {
PDD_DIRECTDRAW_GLOBAL lpDD;
PDD_SURFACE_LOCAL lpDDSurface;
PDD_PALETTE_GLOBAL lpDDPalette;
HRESULT ddRVal;
VOID *SetPalette;
BOOL Attach;
} *PDD_SETPALETTEDATA, DD_SETPALETTEDATA;
Members
lpDD
Points to a DD_DIRECTDRAW_GLOBAL structure that describes the driver's device.
lpDDSurface
Points to a DD_SURFACE_LOCAL structure that represents the DirectDrawSurface object.
lpDDPalette
Points to a DD_PALETTE_GLOBAL structure that specifies the palette to set to the surface.
ddRVal
Specifies the location in which the driver writes the return value of the DdSetPalette callback. A return code of DD_OK indicates success. For more information, see Return Values for DirectDraw.
SetPalette
Used by the Microsoft DirectDraw API and should not be filled in by the driver.
Attach
Indicates whether to attach this palette to the surface.
Requirements
Requirement | Value |
---|---|
Header | ddrawint.h (include Winddi.h) |