DD_PALETTECALLBACKS structure (ddrawint.h)

The DD_PALETTECALLBACKS structure contains entry pointers to the DirectDraw palette callback functions that a device driver supports.

Syntax

typedef struct DD_PALETTECALLBACKS {
  DWORD                    dwSize;
  DWORD                    dwFlags;
  PDD_PALCB_DESTROYPALETTE DestroyPalette;
  PDD_PALCB_SETENTRIES     SetEntries;
} DD_PALETTECALLBACKS;

Members

dwSize

Specifies the size in bytes of this DD_PALETTECALLBACKS structure.

dwFlags

Indicates what DirectDrawPalette callback functions the driver has implemented. For every bit set in dwFlags, the driver must initialize the corresponding function pointer member of this structure. This member can be one or more of the following flags:

DDHAL_PALCB32_DESTROYPALETTE
DDHAL_PALCB32_SETENTRIES

DestroyPalette

Points to the driver-supplied DdDestroyPalette palette callback.

SetEntries

Points to the driver-supplied DdSetEntries palette callback.

Remarks

Entries that the display driver does not use should be set to NULL. The driver initializes this structure in DrvEnableDirectDraw.

Requirements

Requirement Value
Header ddrawint.h (include Winddi.h)

See also

DD_COLORCONTROLCALLBACKS

DD_KERNELCALLBACKS

DD_MISCELLANEOUSCALLBACKS

DD_MOTIONCOMPCALLBACKS

DD_NTCALLBACKS

DD_SURFACECALLBACKS

DD_VIDEOPORTCALLBACKS

DdDestroyPalette

DdSetEntries

DrvEnableDirectDraw