Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CMediaType.Set method

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

Syntax


HRESULT Set(
  [ref] const CMediaType &cmtype
);

Parameters

cmtype [ref]

Reference to a CMediaType object.

Return value

Returns S_OK or E_OUTOFMEMORY.

Remarks

This method copies the entire media type from cmtype.

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