Share via


CEnumMediaTypes::Next (Windows Embedded CE 6.0)

1/6/2010

Retrieves the specified number of items in the enumeration sequence.

Syntax

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 Value

Returns an HRESULT value.

Remarks

This member function implements the IEnumMediaTypes::Next method.

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::GetMediaType member 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.

Requirements

Windows Embedded CE Windows CE 2.12 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

CEnumMediaTypes Class