DDSETSURFACESTATE structure (ddkmapi.h)

The DDSETSURFACESTATE structure contains the surface state information.

Syntax

typedef struct _DDSETSURFACETATE {
  HANDLE hDirectDraw;
  HANDLE hSurface;
  DWORD  dwState;
  DWORD  dwStartField;
} DDSETSURFACESTATE, *LPDDSETSURFACESTATE;

Members

hDirectDraw

Specifies the Microsoft DirectDraw handle.

hSurface

Specifies the DirectDrawSurface handle.

dwState

Indicates the surface state. One of the following:

Flag Meaning
DDSTATE_BOB Bob mode is to be used on this surface.
DDSTATE_WEAVE Weave mode is to be used on this surface.

dwStartField

Indicates the field on which the state change should occur. A value of 0 indicates it should occur at the start of the next field, a value of 1 indicates the start of the following field, and so on.

Requirements

Requirement Value
Header ddkmapi.h (include Ddkmapi.h)

See also

DD_DXAPI_SET_SURFACE_STATE

DxApi