windows-nt/Source/XPSP1/NT/multimedia/dshow/streams/ddstream/mtenum.h
2020-09-26 16:20:57 +08:00

38 lines
899 B
C++

// Copyright (c) 1997 Microsoft Corporation. All Rights Reserved.
#ifndef __MTENUM_H_INC__
#define __MTENUM_H_INC__
class ATL_NO_VTABLE CMediaTypeEnum :
public CComObjectRootEx<CComMultiThreadModel>,
public IEnumMediaTypes
{
public:
//
// METHODS
//
CMediaTypeEnum();
~CMediaTypeEnum();
DECLARE_GET_CONTROLLING_UNKNOWN()
void Initialize(CStream *pStream, ULONG cCurPos);
//
// IEnumMediaTypes
//
STDMETHODIMP Next(ULONG cNumToFetch, AM_MEDIA_TYPE **ppMediaTypes, ULONG *pcFetched);
STDMETHODIMP Skip(ULONG cSkip);
STDMETHODIMP Reset();
STDMETHODIMP Clone(IEnumMediaTypes **ppEnumMediaTypes);
BEGIN_COM_MAP(CMediaTypeEnum)
COM_INTERFACE_ENTRY(IEnumMediaTypes)
END_COM_MAP()
public:
ULONG m_cCurrentPos;
CStream *m_pStream;
};
#endif