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.

65 lines
1.6 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1997
  4. *
  5. * TITLE: IEnumItm.h
  6. *
  7. * VERSION: 2.0
  8. *
  9. * AUTHOR: ReedB
  10. *
  11. * DATE: 26 Dec, 1997
  12. *
  13. * DESCRIPTION:
  14. * Declaration and definitions for the CEnumWiaItem class.
  15. *
  16. *******************************************************************************/
  17. // IEnumWiaItem object is created from EnumChildItems methods.
  18. class CWiaItem;
  19. class CEnumWiaItem : public IEnumWiaItem
  20. {
  21. private:
  22. ULONG m_cRef; // Object reference count.
  23. ULONG m_ulIndex; // Current element.
  24. ULONG m_ulCount; // Number of items.
  25. CWiaItem *m_pInitialFolder; // Initial enumeration folder.
  26. CWiaTree *m_pCurrentItem; // Current enumeration item.
  27. public:
  28. //
  29. // Constructor, initialization and destructor methods.
  30. //
  31. CEnumWiaItem();
  32. HRESULT Initialize(CWiaItem*);
  33. ~CEnumWiaItem();
  34. //
  35. // IUnknown methods.
  36. //
  37. HRESULT _stdcall QueryInterface(const IID& iid, void** ppv);
  38. ULONG _stdcall AddRef();
  39. ULONG _stdcall Release();
  40. //
  41. // IEnumWiaItem methods
  42. //
  43. HRESULT __stdcall Next(
  44. ULONG cItem,
  45. IWiaItem **ppIWiaItem,
  46. ULONG *pcItemFetched);
  47. HRESULT __stdcall Skip(ULONG cItem);
  48. HRESULT __stdcall Reset(void);
  49. HRESULT __stdcall Clone(IEnumWiaItem **ppIEnumWiaItem);
  50. HRESULT __stdcall GetCount(ULONG *pcelt);
  51. };