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.

74 lines
1.8 KiB

  1. #ifndef _INC_DSKQUOTA_FORMAT_H
  2. #define _INC_DSKQUOTA_FORMAT_H
  3. ///////////////////////////////////////////////////////////////////////////////
  4. /* File: format.h
  5. Description: Declaration for class EnumFORMATETC.
  6. Moved from original location in dataobj.h (deleted from project).
  7. Revision History:
  8. Date Description Programmer
  9. -------- --------------------------------------------------- ----------
  10. 05/28/97 Initial creation. BrianAu
  11. */
  12. ///////////////////////////////////////////////////////////////////////////////
  13. class EnumFORMATETC : public IEnumFORMATETC
  14. {
  15. private:
  16. LONG m_cRef;
  17. UINT m_cFormats;
  18. UINT m_iCurrent;
  19. LPFORMATETC m_prgFormats;
  20. //
  21. // Prevent assignment.
  22. //
  23. void operator = (const EnumFORMATETC&);
  24. public:
  25. EnumFORMATETC(UINT cFormats, LPFORMATETC prgFormats);
  26. EnumFORMATETC(const EnumFORMATETC& ef);
  27. ~EnumFORMATETC(VOID);
  28. //
  29. // IUnknown methods.
  30. //
  31. STDMETHODIMP
  32. QueryInterface(
  33. REFIID riid,
  34. LPVOID *ppvOut);
  35. STDMETHODIMP_(ULONG)
  36. AddRef(
  37. VOID);
  38. STDMETHODIMP_(ULONG)
  39. Release(
  40. VOID);
  41. //
  42. // IEnumFORMATETC methods.
  43. //
  44. STDMETHODIMP
  45. Next(
  46. DWORD,
  47. LPFORMATETC,
  48. LPDWORD);
  49. STDMETHODIMP
  50. Skip(
  51. DWORD);
  52. STDMETHODIMP
  53. Reset(
  54. VOID);
  55. STDMETHODIMP
  56. Clone(
  57. IEnumFORMATETC **);
  58. };
  59. #endif // _INC_DSKQUOTA_FORMAT_H