WORD GetSystemPaletteEntries(hDC,wStartIndex,wNumEntries,lpPaletteEntries)
This function retrieves a range of palette entries from the system palette.
Parameter | Type/Description |
hDC | HDC Identifies the device context. | |
wStartIndex | WORD Specifies the first entry in the system palette to be retrieved. | |
wNumEntries | WORD Specifies the number of entries in the system 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. |
The return value is the number of entries retrieved from the system palette. It is zero if the function failed.