Partager via


CEnumMediaTypes::Next (Compact 2013)

3/26/2014

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

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CEnumMediaTypes Class