Microsoft DirectX 8.1 (Visual Basic)

Direct3D8.GetAdapterModeCount

Returns the number of display modes available on this adapter.

object.GetAdapterModeCount( _ 
    Adapter As Long) As Long

Parts

object
Object expression that resolves to a Direct3D8 object.
Adapter
Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.

Return Values

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.

Error Codes

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.

See Also

Direct3D8.EnumAdapterModes