## Graphics Adapter Device Driver Reference

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

### VMI_CMD_VRAM - Syntax

Description:

VMI_CMD_VRAM is called to allocate off-screen video memory. VMAN sends this command to the GRADD chain identified by the GRADD ID provided by the caller.

    #include <GRADD.h>

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

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

    PVOID    pIn;         /*  Pointer to a VRAMIN data structure. */

    PVOID    pOut;        /*  Pointer to a function-specific output data structure. */

    ULONG    rc;          /*  Return codes. */

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