Microsoft DirectX 9.0

COLORS

The COLORS macro retrieves the palette entries from a VIDEOINFO structure.

Syntax

COLORS(pbmi)

Parameters

pbmi

Pointer to a VIDEOINFO structure.

Return Value

Returns a pointer to an array of RGBQUAD structures.

Remarks

This macro calculates the address as an offset from the start of the BITMAPINFOHEADER structure, using the value of bmiHeader.biSize. Make sure to initialize the VIDEOINFO structure before calling this macro.

See Also