DD_CREATESURFACEDATA

typedef struct _DD_CREATESURFACEDATA{
    PDD_DIRECTDRAW_GLOBAL        lpDD;
    PDD_SURFACEDESC              lpDDSurfaceDesc;
    PDD_SURFACE_LOCAL            *lplpSList;
    DWORD                        dwSCnt;
    HRESULT                      ddRVal;
    VOID *                       CreateSurface;
} DD_CREATESURFACEDATA;

The DD_CREATESURFACEDATA structure is passed to the DirectDraw hardware interface’s CreateSurface object callback.

Members

lpDD
Pointer to the DD_DIRECTDRAW_GLOBAL structure that describes the driver.
lpDDSurfaceDesc
Pointer to the DD_SURFACEDESC structure that describes the surface to be created. The DD_SURFACEDESC structure is filled in by the application, and is defined in ddraw.h.
lplpSList
Pointer to a pointer in which the driver returns the list of created DD_SURFACE_LOCAL surface(s). The driver should create dwSCnt surfaces, which is the number of surfaces required to fulfill the requested surface creation description in lpDDSurfaceDesc.
dwSCnt
Member in which the driver returns the number of surfaces pointed to by lplpSList.
ddRVal
Location in which the driver returns a DirectDraw status return code. The status codes are defined in ddraw.h.
CreateSurface
Unused by Windows NT.