SetColorKey

DWORD (APIENTRY *PDD_SETCOLORKEY)(
PDD_DRVSETCOLORKEYDATA lpSetColorKey
);

SetColorKey sets the color key value.

Parameters

lpSetColorKey

Pointer to a DD_SETCOLORKEYDATA structure that contains the information required to set the color key.

Return Value

SetColorKey returns a DDHAL_DRIVER_Xxx callback code that indicates how the driver handled the call. These return codes are defined in ddrawint.h.

Comments

SetColorKey usually needs to be implemented only for drivers that support overlays with color key capabilities; it is used to specify a source or destination color key.