BRUSHOBJ_ulGetBrushColor function (winddi.h)

The BRUSHOBJ_ulGetBrushColor function returns the RGB color of the specified solid brush.

Syntax

ENGAPI ULONG BRUSHOBJ_ulGetBrushColor(
  BRUSHOBJ *pbo
);

Parameters

pbo

Pointer to the BRUSHOBJ structure whose color is being queried.

Return value

BRUSHOBJ_ulGetBrushColor returns the RGB color of a solid brush. If the specified brush is not solid, this function returns -1.

Remarks

The color stored in the iSolidColor member of the BRUSHOBJ structure is an index value that has been translated to the target surface's palette. BRUSHOBJ_ulGetBrushColor allows the driver to query the original RGB color value of iSolidColor.

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

BRUSHOBJ