DirectX SDK

DirectDrawEnumSurfaces.GetCount

The DirectDrawEnumSurfaces.GetCount method returns the number of created surfaces.

object.GetCount() As Long

Parameters

object
Object expression that resolves to a DirectDrawEnumSurfaces object.

Return Values

If the method succeeds, it returns the number of created surfaces.

Error Codes

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

Remarks

Each entry represents created DirectDraw surfaces. To get a description of a surface, use DirectDrawEnumSurfaces.GetItem.