Microsoft Windows CE 3.0  

CMediaType::SetFormat

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.

Sets the variable-length format block.

BOOL
SetFormat(
BYTE
*pFormat
,
ULONG
length
);

Parameters

pFormat
Block of memory containing type-specific information.
length
Overall length of the format block.

Return Values

Returns one of the following values.

TRUE Format block was set.
FALSE An error occurred; most likely there was no memory available.

Remarks

The function takes a copy of the format block and stores that internally.