## Graphics Adapter Device Driver Reference

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

### VMI_CMD_QUERYMODES

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description:

VMI_CMD_QUERYMODES returns video mode information for a particular GRADD. VMAN passes this command directly to the GRADD chain identified by the GRADD ID provided by the caller.

VMI_CMD_QUERYMODES is not typically used by translation layers because the VMI_CMD_QUERYCHAININFO function returns the supported modes of all GRADDs, as opposed to just one. VMI_CMD_QUERYCHAININFO is the recommended way of querying the available modes of all GRADDs in the system.

    #include <GRADD.h>

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

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

    PVOID    pIn;         /*  Pointer that identifies a QUERYMODE operation. */

    PVOID    pOut;        /*  Pointer to the pIn operation. */

    ULONG    rc;          /*  Return codes. */

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