Microsoft DirectX 8.1 (Visual Basic) |
Returns the number of display modes available on this adapter.
object.GetAdapterModeCount( _ Adapter As Long) As Long
This method returns the number of display modes on this adapter, or 0 (zero) if Adapter is greater than or equal to the number of adapters on the system.
If the method fails, an error is raised and Err.Number can be set to one of the following values.
D3DERR_INVALIDCALL |
D3DERR_OUTOFVIDEOMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.