Leaked source code of windows server 2003
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.

41 lines
931 B

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