Simple PAL Format

The simple PAL format is defined as follows:

RIFF('PAL' data( <palette:LOGPALETTE> ))

LOGPALETTE is the Windows 3.0 logical palette structure, defined as follows:

typedef struct tagLOGPALETTE {
  USHORT          palVersion;
  USHORT          palNumEntries;
  PALETTEENTRY      palPalEntry[];
} LOGPALETTE;

The LOGPALETTE structure fields are as follows: