Microsoft Windows CE 3.0  

CMediaType::CMediaType

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Constructs a CMediaTypeobject.

CMediaType( );
CMediaType(
const GUID* 
majortype
);
CMediaType(
const AM_MEDIA_TYPE& 
mtype
);
CMediaType(
const CMediaType& 
cmtype);

Parameters

majortype
Major type GUID.
mtype
AM_MEDIA_TYPEstructure.
cmtype
CMediaTypeobject from which this object is constructed.

Return Values

No return value.

Remarks

A CMediaTypeobject can be constructed in a number of different ways. The class provides a default constructor that takes no parameters. It can also be constructed based on an AM_MEDIA_TYPEstructure or another CMediaTypeobject. In both cases, it takes a data copy of the format block before returning.