Compartilhar via


CMediaType::AllocFormatBuffer (Compact 2013)

3/26/2014

Allocates a block of memory for the format block.

Syntax

BYTE* AllocFormatBuffer(
  ULONG length 
);

Parameters

  • length
    Size required for the format block.

Return Value

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.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CMediaType Class