DirectX SDK |
The DirectDraw7.GetSurfacesEnum method returns a DirectDrawEnumSurfaces object that is used to enumerate the attached surfaces of the DirectDraw7 object.
object.GetSurfacesEnum( _ flags As CONST_DDENUMSURFACESFLAGS, _ desc As DDSURFACEDESC2) As DirectDrawEnumSurfaces
If the method succeeds, it returns a DirectDrawEnumSurfaces object that you can then query for a description of the attached surfaces.
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
DDERR_INVALIDOBJECT |
DDERR_INVALIDPARAMS |
E_OUTOFMEMORY |
If the DDENUMSURFACES_CANBECREATED flag is set, this method attempts to temporarily create a surface that meets the search criteria.