## Graphics Adapter Device Driver Reference

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

### GHI_CMD_EXTENSION

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description:

GHI_CMD_EXTENSION is optional and is called to send an extension command to a GRADD. The extension subfunction is placed in the ulXSubFunction field of the pIn input packet.

    #include <GRADD.h>

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

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

    PVOID    pIn;         /*  Pointer to an HWEXTENSION structure. */

    PVOID    pOut;        /*  Pointer to an extension-specific output structure. */

    ULONG    rc;          /*  Return codes. */

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