## Graphics Adapter Device Driver Reference

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

### VMI_CMD_QUERYCHAININFO - Syntax

Description:

VMI_CMD_QUERYCHAININFO is unique to VMAN (there is no corresponding function in the Graphics Hardware Interface). This function is called to obtain a pointer to the video chain information, which contains information about every GRADD currently loaded.

Each GRADDINFO structure contains information, such as capabilities and mode information, for a single GRADD. The CHAININFO structure contains a pointer to a linked list of GRADDINFO structures. If multiple GRADD chains are in use, the head CHAININFO structure contains a pointer to the next CHAININFO structure.

    #include <GRADD.h>

    GID      gid;         /*  NULL. */

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

    PVOID    pIn;         /*  NULL. */

    PVOID    pOut;        /*  Pointer to a VMIQCI data structure. */

    ULONG    rc;          /*  Return codes. */

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