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.

42 lines
1.1 KiB

  1. // WMDMFormatEnum.h : Declaration of the CWMDMFormatEnum
  2. #ifndef __WMDMFORMATENUM_H_
  3. #define __WMDMFORMATENUM_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CWMDMFormatEnum
  7. class ATL_NO_VTABLE CWMDMFormatEnum :
  8. public CComObjectRootEx<CComMultiThreadModel>,
  9. public CComCoClass<CWMDMFormatEnum, &CLSID_WMDMFormatEnum>,
  10. public IWMDMEnumFormatSupport
  11. {
  12. public:
  13. CWMDMFormatEnum() : m_pEnum(NULL)
  14. {
  15. }
  16. ~CWMDMFormatEnum()
  17. {
  18. if (m_pEnum)
  19. m_pEnum->Release();
  20. }
  21. BEGIN_COM_MAP(CWMDMFormatEnum)
  22. COM_INTERFACE_ENTRY(IWMDMEnumFormatSupport)
  23. END_COM_MAP()
  24. public:
  25. // IWMDMEnumFormatSupport
  26. STDMETHOD(Next)(ULONG celt,
  27. _WAVEFORMATEX *pFormat,
  28. LPWSTR pwszMimeType,
  29. UINT nMaxChars,
  30. ULONG *pceltFetched);
  31. STDMETHOD(Reset)();
  32. void SetContainedPointer(IMDSPEnumFormatSupport *pEnum);
  33. private:
  34. IMDSPEnumFormatSupport *m_pEnum;
  35. };
  36. #endif //__WMDMFORMATENUM_H_