DDHAL_DDPALETTECALLBACKS

The DDHAL_DDPALETTECALLBACKS structure contains the palette callback functions used by the driver. This structure is part of the DDHALINFO structure.

typedef struct _DDHAL_DDPALETTECALLBACKS
{
DWORD                          dwSize;
DWORD                          dwFlags;
LPDDHALPALCB_DESTROYPALETTE    DestroyPalette;
LPDDHALPALCB_SETENTRIES        SetEntries;
} DDHAL_DDPALETTECALLBACKS;
typedef DDHAL_DDPALETTECALLBACKS FAR *LPDDHAL_DDPALETTECALLBACKS;

Members

  • dwSize
    Size of the structure. This parameter must be initialized before the structure is used.

  • dwFlags
    Indicates which of the DirectDrawPalette functions are implemented in 32-bit code. One or more of the following flags:

    Flag Usage
    DDHAL_PALCB32_DESTROYPALETTE Indicates that the DestroyPalette callback is implemented in 32-bit code.
    DDHAL_PALCB32_SETENTRIES Indicates that the SetEntries callback is implemented in 32-bit code.
  • DestroyPalette
    Pointer to the driver's implementation of the DestroyPalette callback.

  • SetEntries
    Pointer to the driver's implementation of the SetEntries callback.

Remarks

This structure contains the entry points in the display driver that DirectDraw calls. Entries that the display driver does not use should be set to NULL.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.