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.

60 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998
  5. //
  6. // File: RootNode.hxx
  7. //
  8. // Contents: Used to create/manage root node.
  9. //
  10. // History: 6/16/98 mohamedn created
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. #include <ciares.h>
  15. #include <dataobj.hxx>
  16. //+-------------------------------------------------------------------------
  17. //
  18. // Class: CRootNode
  19. //
  20. // Purpose: snapin extension root node
  21. //
  22. // History: 7/1/98 mohamedn created
  23. //
  24. //--------------------------------------------------------------------------
  25. class CRootNode : public PCIObjectType
  26. {
  27. public:
  28. CRootNode()
  29. : _idScope( -1 ),
  30. _idParent( -1 )
  31. {}
  32. void Init(IConsoleNameSpace * pScopePane) { _pScopePane = pScopePane; }
  33. HSCOPEITEM GethScopeItem(void) { return _idScope; }
  34. BOOL IsParent( HSCOPEITEM hItem ) { return (hItem == _idParent); }
  35. void Display( HSCOPEITEM hScopeItem );
  36. SCODE Delete();
  37. //
  38. // Typing
  39. //
  40. PCIObjectType::OType Type() const { return PCIObjectType::RootNode; }
  41. private:
  42. HSCOPEITEM _idScope;
  43. HSCOPEITEM _idParent;
  44. IConsoleNameSpace * _pScopePane;
  45. };