Platform SDK: DirectX

DirectDrawEnumModes.GetItem

The DirectDrawEnumModes.GetItem method returns a video mode description for the specified element in the enumeration object.

object.GetItem(index As Long, info As DDSURFACEDESC2)

Parameters

object
Object expression that resolves to a DirectDrawEnumModes object.
index
Number specifying which element of the array to be accessed. Each element is an available video mode.
info
DDSURFACEDESC2 type to be filled with video-mode information.

Error Codes

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

Remarks

The number of video modes in the DirectDrawEnumModes object can be obtained from the DirectDrawEnumModes.GetCount.