Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
899 B

  1. // Copyright (c) 1997 Microsoft Corporation. All Rights Reserved.
  2. #ifndef __MTENUM_H_INC__
  3. #define __MTENUM_H_INC__
  4. class ATL_NO_VTABLE CMediaTypeEnum :
  5. public CComObjectRootEx<CComMultiThreadModel>,
  6. public IEnumMediaTypes
  7. {
  8. public:
  9. //
  10. // METHODS
  11. //
  12. CMediaTypeEnum();
  13. ~CMediaTypeEnum();
  14. DECLARE_GET_CONTROLLING_UNKNOWN()
  15. void Initialize(CStream *pStream, ULONG cCurPos);
  16. //
  17. // IEnumMediaTypes
  18. //
  19. STDMETHODIMP Next(ULONG cNumToFetch, AM_MEDIA_TYPE **ppMediaTypes, ULONG *pcFetched);
  20. STDMETHODIMP Skip(ULONG cSkip);
  21. STDMETHODIMP Reset();
  22. STDMETHODIMP Clone(IEnumMediaTypes **ppEnumMediaTypes);
  23. BEGIN_COM_MAP(CMediaTypeEnum)
  24. COM_INTERFACE_ENTRY(IEnumMediaTypes)
  25. END_COM_MAP()
  26. public:
  27. ULONG m_cCurrentPos;
  28. CStream *m_pStream;
  29. };
  30. #endif