## Graphics Adapter Device Driver Reference

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

### VMI_CMD_INIT - Syntax

Description:

VMI_CMD_INIT informs the Video Manager (VMAN) that a translation layer has been loaded and that VMAN may need to be initialized. VMAN initializes itself once only; subsequent VMI_CMD_INIT calls are ignored.

During the first initialization, VMAN loads SOFTDRAW and all of the GRADDs specified by the environment variables.

    #include <GRADD.h>

    GID      gid;         /*  NULL. */

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

    PVOID    pIn;         /*  NULL. */

    PVOID    pOut;        /*  NULL. */

    ULONG    rc;          /*  Return codes. */

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