The BRUSHOBJ_ulGetBrushColor function returns the RGB color of the specified solid brush.
ULONG
BRUSHOBJ_ulGetBrushColor(
IN BRUSHOBJ *pbo
);
BRUSHOBJ_ulGetBrushColor returns the RGB color of a solid brush. If the specified brush is not solid, this function returns -1.
Declared in winddi.h. Include winddi.h.
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.