VOID GetPalette(WORD nStartIndex, WORD nNumEntries, RGBQUAD lpPalette);
Retrieves the logical colors (RGB values) for the given color indices. The function copies color values in the RGB structure to the buffer pointed to by the lpPalette parameter.
nStartIndex
Color index of the first color to retrieve.
nNumEntries
Total number of entries to retrieve from the device's hardware palette.
lpPalette
Address of the buffer to receive the RGB colors.
The export ordinal for this function is 23.
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.