Microsoft Windows CE 3.0  

CEnumMediaTypes::Next

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.

Retrieves the specified number of items in the enumeration sequence.

HRESULT
Next(
ULONG
cMediaTypes
,
AM_MEDIA_TYPE**
ppMediaTypes
,
ULONG
*
pcFetched
);

Parameters

cMediaTypes
Number of media types to place.
ppMediaTypes
Array in which to place the next media type or types.
pcFetched
Actual count passed.

Return Values

Returns an HRESULTvalue.

Remarks

This member function implements the IEnumMediaTypes::Nextmethod. To call this method, pass a pointer's address to a media type. The base class implementation relies on the existence of an overridden CBasePin::GetMediaTypemember function in the derived class that will provide the next media type.

Free each media type acquired by calling DeleteMediaType, which will free the format block and the media type itself.