// WMDMFormatEnum.h : Declaration of the CWMDMFormatEnum #ifndef __WMDMFORMATENUM_H_ #define __WMDMFORMATENUM_H_ #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CWMDMFormatEnum class ATL_NO_VTABLE CWMDMFormatEnum : public CComObjectRootEx, public CComCoClass, public IWMDMEnumFormatSupport { public: CWMDMFormatEnum() : m_pEnum(NULL) { } ~CWMDMFormatEnum() { if (m_pEnum) m_pEnum->Release(); } BEGIN_COM_MAP(CWMDMFormatEnum) COM_INTERFACE_ENTRY(IWMDMEnumFormatSupport) END_COM_MAP() public: // IWMDMEnumFormatSupport STDMETHOD(Next)(ULONG celt, _WAVEFORMATEX *pFormat, LPWSTR pwszMimeType, UINT nMaxChars, ULONG *pceltFetched); STDMETHOD(Reset)(); void SetContainedPointer(IMDSPEnumFormatSupport *pEnum); private: IMDSPEnumFormatSupport *m_pEnum; }; #endif //__WMDMFORMATENUM_H_