Microsoft Windows CE 3.0  

CreateMediaType

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.

Creates a task-allocated AM_MEDIA_TYPEstructure.

AM_MEDIA_TYPE * WINAPI CreateMediaType(
AM_MEDIA_TYPE const *
pSrc
);

Parameters

pSrc
Pointer to an AM_MEDIA_TYPEsource structure.

Return Values

Returns a new AM_MEDIA_TYPEstructure, or NULL if there is an error.

Remarks

Free the structure and resources allocated by this routine by calling DeleteMediaTypewhen your code is done with the structure.