Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
GetPalette
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
VOID GetPalette(nStartIndex, nNumEntries, lpPalette)
WORD nStartIndex;
WORD nNumEntries;
LPRGBQUAD lpPalette;
 
The GetPalette function retrieves the logical colors (RGB values) for the
given color indexes. The function copies RGB structure color values to the
buffer pointed to by the lpPalette parameter.
 
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.
 
Parameter    Description
────────────────────────────────────────────────────────────────────────────
 
 
nStartIndex  Specifies the color index of the first color to retrieve.
 
nNumEntries  Specifies the total number of entries to retrieve from the
             device's hardware palette.
 
lpPalette    Points to the buffer to receive the RGB colors.
 
Return Value
 
This function has no return value.
 
Comments
 
The export ordinal for this function is 23.
 
See Also
 
SetPalette