## Graphics Adapter Device Driver Reference

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

### GHI_CMD_INIT

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description:

GHI_CMD_INIT is mandatory and is called to initialize the GRADD. It is the first command a GRADD receives from the Video Manager (VMAN).

    #include <GRADD.h>

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

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

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

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

    ULONG    rc;          /*  Return codes. */

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