DirectX SDK

DirectDrawEnumSurfaces.GetItem

The DirectDrawEnumSurfaces.GetItem method returns a specific surface from the list of created surfaces of the DirectDrawEnumSurfaces object.

object.GetItem(index As Long) As DirectDrawSurface7

Parameters

object
Object expression that resolves to a DirectDrawEnumSurfaces object.
index
Number specifying which element of the array to be accessed. Each element represents a created surface.

Return Values

DirectDrawSurface7 object describing the surface is returned.

Error Codes

If the method fails, it raises an error, and Err.Number is set.

Remarks

To obtain the number of created surfaces, call the DirectDrawEnumSurfaces.GetCount method.