IDirectDrawSurface2::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:
lpContext
Address of the application-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.