Source code of Windows XP (NT5)
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.0 KiB

  1. //____________________________________________________________________________
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: ScopIter.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History:
  15. //____________________________________________________________________________
  16. //
  17. #ifndef _SCOPITER_H_
  18. #define _SCOPITER_H_
  19. class CMTNode;
  20. class CScopeTreeIterator : public IScopeTreeIter, public CComObjectRoot
  21. {
  22. // Constructor/Destructor
  23. public:
  24. CScopeTreeIterator();
  25. ~CScopeTreeIterator();
  26. public:
  27. BEGIN_COM_MAP(CScopeTreeIterator)
  28. COM_INTERFACE_ENTRY(IScopeTreeIter)
  29. END_COM_MAP()
  30. DECLARE_NOT_AGGREGATABLE(CScopeTreeIterator)
  31. // COM interfaces
  32. public:
  33. // IScopeTreeIter methods
  34. STDMETHOD(SetCurrent)(HMTNODE hStartMTNode);
  35. STDMETHOD(Next)(UINT nRequested, HMTNODE* rghScopeItems, UINT* pnFetched);
  36. STDMETHOD(Child)(HMTNODE* phsiChild);
  37. STDMETHOD(Parent)(HMTNODE* phsiParent);
  38. // Implementation
  39. private:
  40. CMTNode* m_pMTNodeCurr;
  41. };
  42. #endif // _SCOPITER_H_