Microsoft DirectX 9.0

HEADER

The HEADER macro returns the address of the BITMAPINFOHEADER within a VIDEOINFOHEADER.

Syntax

HEADER(pVideoInfo)

Parameters

pVideoInfo

Pointer to a VIDEOINFOHEADER structure or VIDEOINFO structure.

Return Value

Returns the address of the VIDEOINFOHEADER structure's bmiHeader member.

Example Code

LONG size = GetBitmapFormatSize(&bmi);
VIDEOINFO *pVi = static_cast<VIDEOINFO*>(CoTaskMemAlloc(size));
if (pVi != NULL)
{
    CopyMemory(HEADER(pVi), &bmi, sizeof(BITMAPINFOHEADER));
}

See Also