![[Toc]](../../toc.gif)
![[Index]](/idx.gif)
GHI_CMD_PALETTE - Syntax
Description:
GHI_CMD_PALETTE is mandatory if the device supports 256-color modes. This
function is called to set or query the hardware palette. The GRADD is
expected to respond by describing the palette in a given array or by using
the palette given in the array. The GRADD is always given an HWPALETTEINFO
structure with either the PALETTE_GET or PALETTE_SET flag to specify the
operation to perform.
#include <GRADD.h>
GID gid; /* ID of the GRADD. */
ULONG ulFunction; /* Set equal to GHI_CMD_PALETTE. */
PVOID pIn; /* Pointer to an HWPALETTEINFO structure. */
PVOID pOut; /* NULL; no output structure is needed. */
ULONG rc; /* Return codes. */
rc = HWENTRY(gid, ulFunction, pIn, pOut);
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs