CMediaType.Set method

The Set method sets the media type from another media type.

Syntax


HRESULT Set(
  const AM_MEDIA_TYPE &mtype
);

Parameters

mtype [ref]

Reference to an AM_MEDIA_TYPE structure.

Return value

Returns S_OK or E_OUTOFMEMORY.

Remarks

This method copies the entire media type from mtype.

Requirements

Header

Mtype.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CMediaType Class

 

 

Community Additions

ADD
Show:
© 2015 Microsoft