HRESULT WINAPI lpEnumCallback(LPDIRECTDRAWSURFACE lpDDSurface,
LPDDSURFACEDESC lpDDSurfaceDesc,LPVOID lpContext);
Application-defined callback procedure for the IDirectDraw::EnumSurfaces method.
·Returns DDENUMRET_OK to continue the enumeration, or DDENUMRET_CANCEL to stop it.
lpDDSurface
Address of the DirectDrawSurface currently being enumerated if it is an existing surface (DDENUMSURFACES_DOESEXIST). The value will be NULL if a potential surface is being enumerated (DDENUMSURFACES_CANBECREATED).
lpDDSurfaceDesc
Address of the DDSURFACEDESC structure for the existing or potential surface that most closely matches the requested surface.
lpContext
Address of the caller-defined structure passed to the member every time it is invoked.