## Graphics Adapter Device Driver Reference

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

### VMI_CMD_SETMODE

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description:

VMI_CMD_SETMODE sets the video display adapter to a given mode. VMAN passes this command directly to the GRADD chain identified by the GRADD ID provided by the caller. The GRADD is expected to set the video mode, given an ID of the chosen mode.

    #include <GRADD.h>

    GID      gid;         /*  ID of the GRADD. */

    ULONG    ulFunction;  /*  Set equal to VMI_CMD_SETMODE. */

    PVOID    pIn;         /*  Pointer to PULONG containing the ID of the requested mode. */

    PVOID    pOut;        /*  NULL. */

    ULONG    rc;          /*  Return codes. */

    rc = HWENTRY(gid, ulFunction, pIn, pOut);