GetPaletteEntries

Version 3.0

Syntax

WORD GetPaletteEntries(hPalette,wStartIndex,wNumEntries,lpPaletteEntries)

This function retrieves a range of palette entries in a logical palette.

Parameter Type/Description  

hPalette HPALETTE Identifies the logical palette.  
wStartIndex WORD Specifies the first entry in the logical palette to be retrieved.  
wNumEntries WORD Specifies the number of entries in the logical palette to be retrieved.  
lpPaletteEntries LPPALETTEENTRY Points to an array of PALETTEENTRY data structures to receive the palette entries. The array must contain at least as many data structures as specified by the wNumEntries parameter.  

Return Value

The return value is the number of entries retrieved from the logical palette. It is zero if the function failed.