DirectX SDK |
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)
If the method fails, it raises an error, and Err.Number is set.
The number of video modes in the DirectDrawEnumModes object can be obtained from the DirectDrawEnumModes.GetCount.