Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetDisplayMode

Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.

object.GetDisplayMode( _ 
    Mode As D3DDISPLAYMODE)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
Mode
A D3DDISPLAYMODE type containing data about the display mode of the adapter, as opposed to the display mode of the device, which may not be active if the device does not own full-screen mode.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.