## Graphics Adapter Device Driver Reference

[prev][next][parent][TOC]

### GetCurrentDesktopMode

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description:

GetCurrentDesktopMode retrieves the current desktop mode information stored in the Registry. The desktop mode information includes X and Y resolutions, bits per pixel, vertical and horizontal refresh rates, vertical and horizontal polarity positives, and screen top, bottom, left, and right.

    #include <svgadefs.h>

    VIDEO_ADAPTER    *pVideoAdapter;  /*  Pointer to the VIDEO_ADAPTER data structure. */

    ULONG            rc;              /*  Return codes. */

    rc = GetCurrentDesktopMode(*pVideoAdapter);