Microsoft Windows CE 3.0  

CMediaType::AllocFormatBuffer

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Allocates a block of memory for the format block.

BYTE* AllocFormatBuffer(
ULONG
length
);

Parameters

length
Size required for the format block.

Return Values

Returns a pointer to the new block if successful; otherwise, returns NULL.

Remarks

Any previous format block is deleted and a new block is allocated and installed. The size required must be nonzero.