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.

55 lines
1.1 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)(HMTNODE* phScopeItem);
  36. STDMETHOD(Prev)(HMTNODE* phScopeItem);
  37. STDMETHOD(Child)(HMTNODE* phsiChild);
  38. STDMETHOD(LastChild)(HMTNODE* phsiLastChild);
  39. // Implementation
  40. private:
  41. CMTNode* m_pMTNodeCurr;
  42. };
  43. #endif // _SCOPITER_H_