IDirectDrawSurface::EnumAttachedSurfaces
HRESULT EnumAttachedSurfaces(LPVOID lpContext,
LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback );
Enumerates all the surfaces attached to a given surface.
·Returns DD_OK if successful, or one of the following error values otherwise:
DDERR_INVALIDOBJECT DDERR_INVALIDPARAMS
lpContext
Address of the caller-defined structure that is passed to the enumeration member every time it is called.
lpEnumSurfacesCallback
Address of the EnumSurfacesCallback function that will be called for each surface that is attached to this surface.