DD_SETCOLORKEYDATA

typedef struct _DD_SETCOLORKEYDATA {

    PDD_DIRECTDRAW_GLOBAL       lpDD;

    PDD_SURFACE_LOCAL           lpDDSurface;

    DWORD                       dwFlags;

    DDCOLORKEY                  ckNew;

    HRESULT                     ddRVal;

    VOID *                      SetColorKey;

} DD_SETCOLORKEYDATA;

The DD_SETCOLORKEYDATA structure is passed to the DirectDraw hardware interface’s SetColorKey surface object callback.

Members

lpDD

Pointer to the DD_DIRECTDRAW_GLOBAL structure that describes the driver.

lpDDSurface

Pointer to the DD_SURFACE_LOCAL structure that describes the surface whose color key is to be set.

dwFlags

Specifies how the driver should handle the color key. This field can be a combination of the following values:

Value Meaning
DDCKEY_SRCBLT Specifies the default source color key for Blt operations.
DDCKEY_DESTBLT Specifies the default destination color key for Blt operations.
DDCKEY_SRCOVERLAY Specifies the source color key for the overlay.
DDCKEY_DESTOVERLAY Specifies the destination color key for the overlay.

ckNew

Specifies the DD_COLORKEY structure that describes the color key.

ddRVal

Location in which the driver returns a DirectDraw status return code. The status codes are defined in ddraw.h.

SetColorKey

Unused by Windows NT.