Microsoft DirectX 8.1 (C++)

CImageDisplay::CheckHeaderValidity

Determines if a BITMAPINFOHEADER structure is valid.

Syntax

BOOL CheckHeaderValidity(
    const VIDEOINFO *pInput
);

Parameters

pInput

Pointer to the VIDEOINFO structure that contains the bitmap details.

Return Value

Returns one of the following values.

Value Description
TRUE Format is valid.
FALSE Format contains an error.

Remarks

The BITMAPINFOHEADER structure might be rejected for a number of reasons. These might include a number-of-planes entry greater or less than one, the size of the structure not being equal to the size of BITMAPINFOHEADER, or, perhaps, being asked to validate a YUV format (this member function only validates RGB formats; it will always return FALSE for YUV types).

See Also