CMediaType::ReallocFormatBuffer (Compact 2013)

3/26/2014

Reallocates the format block to a new size.

Syntax

BYTE* ReallocFormatBuffer(
  ULONG length 
);

Parameters

  • length
    New size required for the format block.

Return Value

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

Remarks

Any current format block is copied into the newly allocated block up to its maximum size.

Any excess is lost when the new block is smaller than the old one.

When the new block is larger, the excess is not filled with zeros.

The size required must be nonzero.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CMediaType Class