DD_SURFACECALLBACKS

typedef struct DD_SURFACECALLBACKS{

    DWORD                                    dwSize;

    DWORD                                    dwFlags;

    PDD_SURFCB_DESTROYSURFACE                DestroySurface;

    PDD_SURFCB_FLIP                          Flip;

    PDD_SURFCB_SETCLIPLIST                   SetClipList;

    PDD_SURFCB_LOCK                          Lock;

    PDD_SURFCB_UNLOCK                        Unlock;

    PDD_SURFCB_BLT                           Blt;

    PDD_SURFCB_SETCOLORKEY                   SetColorKey;

    PDD_SURFCB_ADDATTACHEDSURFACE            AddAttachedSurface;

    PDD_SURFCB_GETBLTSTATUS                  GetBltStatus;

    PDD_SURFCB_GETFLIPSTATUS                 GetFlipStatus;

    PDD_SURFCB_UPDATEOVERLAY                 UpdateOverlay;

    PDD_SURFCB_SETOVERLAYPOSITION            SetOverlayPosition;

    LPVOID                                   reserved4;

    PDD_SURFCB_SETPALETTE                    SetPalette;

} DD_SURFACECALLBACKS;

The DD_SURFACECALLBACKS structure contains pointers to the DirectDraw surface callbacks that a device driver supports. The driver initializes this structure in DrvEnableDirectDraw.

Members

dwSize

Size, in bytes, of the DD_SURFACECALLBACKS structure. This field is unused by Windows NT.

dwFlags

Bitmask that the driver initializes to indicate which DirectDraw surface callbacks it supports. For every bit set in dwFlags, the driver must initialize the corresponding function pointer member of this structure. Bitfields are enumerated in ddrawint.h as DDHAL_SURFCB32_Xxx.

DestroySurface

Pointer to the driver-supplied DestroySurface surface callback.

Flip

Pointer to the driver-supplied Flip surface callback.

SetClipList

Pointer to the driver-supplied SetClipList surface callback.

Lock

Pointer to the driver-supplied Lock surface callback.

Unlock

Pointer to the driver-supplied Unlock surface callback.

Blt

Pointer to the driver-supplied Blt surface callback.

SetColorKey

Pointer to the driver-supplied SetColorKey surface callback.

AddAttachedSurface

Pointer to the driver-supplied AddAttachedSurface surface callback.

GetBltStatus

Pointer to the driver-supplied GetBltStatus surface callback.

GetFlipStatus

Pointer to the driver-supplied GetFlipStatus surface callback.

UpdateOverlay

Pointer to the driver-supplied UpdateOverlay surface callback.

SetOverlayPosition

Pointer to the driver-supplied SetOverlayPosition surface callback.

reserved4

Reserved for system use.

SetPalette

Pointer to the driver-supplied SetPalette surface callback.

See Also

DD_CALLBACKS, DD_PALETTECALLBACKS, DrvEnableDirectDraw