Platform SDK: DirectX

DirectDrawEnumSurfaces

Applications use the methods of the DirectDrawEnumSurfaces class to enumerate all the created surfaces. This object is created and filled with data by the DirectDrawSurface7.GetAttachedSurfaceEnum method.

DirectDraw surface enumeration GetCount
  GetItem