SetPalette

VOID SetPalette(
  WORD nStartIndex, 
  WORD nNumEntries, 
  RGBQUAD lpPalette
 );
 

Sets one or more entries in the hardware-color palette to the specified colors.

nStartIndex
Zero-based, color-palette index. The function copies color values to the corresponding hardware-palette entry and to subsequent entries up to the number specified by the nNumEntries parameter.
nNumEntries
Number of entries to set in the hardware palette.
lpPalette
Address of an array of RGBQUAD structures that specifies the colors to which to set the hardware-palette entries.

The export ordinal for this function is 22.

A graphics driver must export the GetPalette function if the RC_PALETTE value is set in the dpRaster member of the driver's GDIINFO structure.