DirectX SDK

CONST_DDENUMSURFACESFLAGS

The CONST_DDENUMSURFACESFLAGS enumeration is used by the DirectDraw7.GetSurfacesEnum method to control how the method enumerates attached surfaces.

Enum CONST_DDENUMSURFACESFLAGS
    DDENUMSURFACES_ALL          =  1
    DDENUMSURFACES_CANBECREATED =  8
    DDENUMSURFACES_DOESEXIST    = 16
    DDENUMSURFACES_MATCH        =  2
    DDENUMSURFACES_NOMATCH      =  4
End Enum
Search type flags
DDENUMSURFACES_CANBECREATED
Enumerates the first surface that can be created and meets the search criterion. This flag can only be used with the DDENUMSURFACES_MATCH flag.
DDENUMSURFACES_DOESEXIST
Enumerates the already existing surfaces that meet the search criterion.
Matching flags
DDENUMSURFACES_ALL
Enumerates all the surfaces that meet the search criterion. This flag can only be used with the DDENUMSURFACES_DOESEXIST search type flag.
DDENUMSURFACES_MATCH
Searches for any surface that matches the surface description.
DDENUMSURFACES_NOMATCH
Searches for any surface that does not match the surface description.