CanCreateSurface

DWORD (APIENTRY *PDD_CANCREATESURFACE)(
PDD_CANCREATESURFACEDATA lpCanCreateSurface
);

CanCreateSurface is a DirectDraw object callback that queries whether the driver can support a surface that is different from the primary surface.

Parameters

lpCanCreateSurface

Pointer to a DD_CANCREATESURFACEDATA structure.

Return Value

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

Comments

DirectDraw calls this routine to determine if the driver supports a pixel format that is different from that of the primary surface.