Expand Minimize
This topic has not yet been rated - Rate this topic

PALOBJ_cGetColors function

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

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Contained in Win32k.sys. Link to Win32k.lib.

See also

PALOBJ
DrvSetPalette

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.