Function GetPaletteSize : Word;
GetPaletteSize returns the maximum number of entries in the current palette.
None.
GetPalette, SetPalette