Compartilhar via


CMediaType::SetFormat (Compact 2013)

3/26/2014

Sets the variable-length format block.

Syntax

BOOL SetFormat(
  BYTE* pFormat,
  ULONG length 
);

Parameters

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

Return Value

Returns one of the following values.

Value

Description

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.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CMediaType Class