DD_VPORTCOLORDATA structure (ddrawint.h)

The DD_VPORTCOLORDATA structure contains the video port extensions (VPE) object color control information.

Syntax

typedef struct _DD_VPORTCOLORDATA {
  PDD_DIRECTDRAW_LOCAL lpDD;
  PDD_VIDEOPORT_LOCAL  lpVideoPort;
  DWORD                dwFlags;
  LPDDCOLORCONTROL     lpColorData;
  HRESULT              ddRVal;
  VOID                 *ColorControl;
} *PDD_VPORTCOLORDATA, DD_VPORTCOLORDATA;

Members

lpDD

Points to a DD_DIRECTDRAW_LOCAL structure that is relevant to the current Microsoft DirectDraw process only.

lpVideoPort

Points to a DD_VIDEOPORT_LOCAL structure that represents this VPE object.

dwFlags

Specifies the color control operation to be performed by the driver. This member can be one of the following values:

Flag Meaning
DDRAWI_VPORTGETCOLOR The driver should write the current VPE object color controls into the DDCOLORCONTROL structure to which lpColorData points.
DDRAWI_VPORTSETCOLOR The driver should set new values for the VPE object color controls based on the contents of the DDCOLORCONTROL structure to which lpColorData points.

lpColorData

Points to a DDCOLORCONTROL structure that defines the color control associated with the VPE object to which lpVideoPort points. The value of dwFlags determines whether the driver reads from or writes to this structure.

ddRVal

Specifies the location in which the driver writes the return value of the DdVideoPortColorControl callback. A return code of DD_OK indicates success. For more information, see Return Values for DirectDraw.

ColorControl

Used by the DirectDraw API and should not be filled in by the driver.

Requirements

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

See also

DDCOLORCONTROL

DdVideoPortColorControl