## Presentation Device Driver Reference for OS/2

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

### GreDeviceCreatePalette Parameter - ppalinfo

ppalinfo (PPALETTEINFO) - input Pointer to table of palette data.

Pointer to table of palette data from GreCreatePalette. The structure of palinfo is as follows:

    struct _PALETTEINFO { /* palinfo */

    ULONG        flCmd;         /* Options from create                   */

    ULONG        ulFormat;      /* Specifies format of entries at create */

                                /* Must be LCOLF-CONSECRGB               */

    ULONG        clColorData;   /* Count of Palette entries              */

    RGB2   argb[0];             /* Palette entries                       */

    } PALETTEINFO; Additional RGB@ entries follow so that CLColorData-1 entries are

    defined.