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.

54 lines
1.5 KiB

  1. /*
  2. * EnumFormatEtc.h
  3. * Data Object Chapter 10
  4. *
  5. * Standard implementation of a FORMATETC enumerator with the
  6. * IEnumFORMATETC interface that will generally not need
  7. * modification.
  8. *
  9. * Copyright (C)1993-1995 Microsoft Corporation, All Rights Reserved
  10. *
  11. * Kraig Brockschmidt, Microsoft
  12. * Internet : kraigb@microsoft.com
  13. * Compuserve: >INTERNET:kraigb@microsoft.com
  14. */
  15. #if !defined(_IAS_ENUM_FORMAT_ETC_H_)
  16. #define _IAS_ENUM_FORMAT_ETC_H_
  17. /*
  18. * IEnumFORMATETC object that is created from
  19. * IDataObject::EnumFormatEtc. This object lives on its own.
  20. */
  21. class CEnumFormatEtc : public IEnumFORMATETC
  22. {
  23. private:
  24. ULONG m_cRef; //Object reference count
  25. ULONG m_iCur; //Current element.
  26. ULONG m_cfe; //Number of FORMATETCs in us
  27. LPFORMATETC m_prgfe; //Source of FORMATETCs
  28. public:
  29. CEnumFormatEtc(ULONG, LPFORMATETC);
  30. ~CEnumFormatEtc(void);
  31. //IUnknown members
  32. STDMETHODIMP QueryInterface(REFIID, VOID **);
  33. STDMETHODIMP_(ULONG) AddRef(void);
  34. STDMETHODIMP_(ULONG) Release(void);
  35. //IEnumFORMATETC members
  36. STDMETHODIMP Next(ULONG, LPFORMATETC, ULONG *);
  37. STDMETHODIMP Skip(ULONG);
  38. STDMETHODIMP Reset(void);
  39. STDMETHODIMP Clone(IEnumFORMATETC **);
  40. };
  41. typedef CEnumFormatEtc *PCEnumFormatEtc;
  42. #endif // _IAS_ENUM_FORMAT_ETC_H_