Partager via


PALOBJ_cGetColors (Windows Embedded CE 6.0)

1/6/2010

This function copies colors from an indexed palette.

Syntax

ULONG PALOBJ_cGetColors(
  PALOBJ* ppalo,
  ULONG iStart,
  ULONG cColors,
  ULONG* pulColors
);

Parameters

  • ppalo
    [in] Pointer to the PALOBJ structure that contains the colors to be copied.
  • iStart
    [in] Index of the starting color.
  • cColors
    [in] Number of colors to be written.
  • pulColors
    [out] Pointer to the buffer in which to write the colors.

Return Value

If the function call succeeds, this function returns the number of colors written. Otherwise, this function returns zero.

Remarks

A display driver can call this function in its implementation of the DrvSetPalette function.

Requirements

Header winddi.h
Library Ddi_ati_lib.lib, Ddi_flat_lib.lib, Ddi_gx_lib.lib, Ddi_mq200_lib.lib, Ddi_nop_lib.lib, Ddi_rflat_lib.lib, Ddi_rgx_lib.lib, Ddi_tvia5_lib.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

GDI Functions for Display Drivers
DrvSetPalette