## Graphics Adapter Device Driver Reference

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

### GHI_CMD_QUERYMODES - Syntax

Description:

GHI_CMD_QUERYMODES is mandatory and is called to query the available video mode information. The GRADD is expected to respond with information regarding the video graphics modes supported by the GRADD.

    #include <GRADD.h>

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

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

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

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

    ULONG    rc;          /*  Return codes. */

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