unsigned get_system_palette_entries(handle device,
                                    unsigned start,
                                    unsigned count,
                                    palette_entry* entries)

This function obtains a range of entries from the system palette.


handle device

The handle of the device context.

unsigned start

The 0-based index of the first entry to be obtained.

unsigned count

The number of entries to be retrieved.

palette_entry* entries

A pointer to a buffer to hold the palette entries. If null is specified, no data is retrieved and the total number of entries in the palette is returned.



Zero The call failed.
Other The number of entries obtained or the total number of entries in the palette.


The function get_device_capabilities with capability index capability::raster may be used to determine if color palettes are supported (see enumerator capability_raster::palette).