| Microsoft DirectX 8.1 (C++) |
Determines if the palette on a VIDEOINFO structure is correct.
Syntax
BOOL CheckPaletteHeader(
const VIDEOINFO *pInput
);
Parameters
pInput
Pointer to the VIDEOINFO structure to validate.
Return Value
Returns one of the following values.
| Value | Description |
| TRUE | Palette is correct. |
| FALSE | No valid palette. |
Remarks
This member function returns FALSE if the format specifies that no palette is available (it might be a true-color format). It also returns FALSE if the number of palette colors used (or those that are important) exceeds the number specified for the video format.
See Also