ResizePalette
short size; the number of entries for new size
ResizePalette sets the palette specified in srcPalette to the number of entries indicated in the size parameter. If ResizePalette adds entries at the end of the palette, it sets them to pmCourteous, with the RGB values set to
(0,0,0)-that is, black. If ResizePalette deletes entries from the end of the palette, it safely disposes of them.