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.
CanCreateSurface returns a DDHAL_DRIVER_Xxx callback code that indicates how the driver handled the call. These return codes are defined in ddrawint.h.
DirectDraw calls this routine to determine if the driver supports a pixel format that is different from that of the primary surface.