DirectX SDK

DirectDrawSurface7.GetAttachedSurfaceEnum

The DirectDrawSurface7.GetAttachedSurfaceEnum method returns a DirectDrawEnumSurfaces object that is filled with attached surfaces information .

object.GetAttachedSurfaceEnum() As DirectDrawEnumSurfaces

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.

Return Values

If the method succeeds, it returns a DirectDrawEnumSurfaces enumeration interface.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_SURFACELOST

Remarks

The number of attached surfaces is obtained with a call to DirectDrawEnumSurfaces.GetCount, and a description of the attached surface is obtained with a call to DirectDrawEnumSurfaces.GetItem

The object returned by a successful function call must be assigned to a DirectDrawEnumSurfaces object variable. For example:

Dim SurfaceEnum as DirectDrawEnumSurfaces
Set SurfaceEnum = object.GetAttachedSurfacesEnum()