## Graphics Adapter Device Driver Reference

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

### HWEntry - Syntax

Description:

HWEntry is the single exported function from a graphics adapter device driver (GRADD). It is part of the Graphics Hardware Interface (GHI) protocol for GRADDs and receives all of the operations from the Video Manager (VMAN) component.

    #include <GRADD.h>

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

    ULONG    ulFunction;  /*  Set to appropriate GHI_CMD_ function. */

    PVOID    pIn;         /*  Pointer to a GHI_-specific input data structure. */

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

    ULONG    rc;          /*  Return codes. */

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