PALOBJ_cGetColors function (winddi.h)

The PALOBJ_cGetColors function copies RGB colors from an indexed palette.

Syntax

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

Parameters

ppalo

Pointer to the PALOBJ structure that contains the RGB colors to be copied.

iStart

Specifies the starting color index.

cColors

Specifies the number of colors to be written.

pulColors

Pointer to the buffer in which the colors are to be written.

Return value

The return value is the number of colors written if the function is successful. Otherwise, it is zero.

Remarks

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

Requirements

Requirement Value
Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Universal
Header winddi.h (include Winddi.h)
Library Win32k.lib
DLL Win32k.sys

See also

DrvSetPalette

PALOBJ