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.

87 lines
2.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. root.h
  7. Root node information (the root node is not displayed
  8. in the MMC framework but contains information such as
  9. all of the subnodes in this snapin).
  10. FILE HISTORY:
  11. */
  12. #ifndef _RIPROOT_H
  13. #define _RIPROOT_H
  14. #ifndef _BASEHAND_H
  15. #include "basehand.h"
  16. #endif
  17. #ifndef _HANDLERS_H
  18. #include "handlers.h"
  19. #endif
  20. #ifndef _QUERYOBJ_H
  21. #include "queryobj.h"
  22. #endif
  23. #ifndef _RIPSTRM_H
  24. #include "ripstrm.h"
  25. #endif
  26. #ifndef _INFO_H
  27. #include "info.h"
  28. #endif
  29. #ifndef _ROOT_H
  30. #include "root.h"
  31. #endif
  32. /*---------------------------------------------------------------------------
  33. Class: RipRootHandler
  34. There should be a RipRootHandler for every root node created.
  35. RipRootHandler's have a 1-to-1 relationship with their node!
  36. Other parts of the code depend on this.
  37. ---------------------------------------------------------------------------*/
  38. class RipRootHandler
  39. : public RootHandler
  40. {
  41. public:
  42. RipRootHandler(ITFSComponentData *pCompData);
  43. ~RipRootHandler()
  44. { DEBUG_DECREMENT_INSTANCE_COUNTER(RipRootHandler); };
  45. // Override QI to handle embedded interface
  46. STDMETHOD(QueryInterface)(REFIID iid, LPVOID *ppv);
  47. DeclareEmbeddedInterface(IRtrAdviseSink, IUnknown);
  48. STDMETHOD(GetClassID)(CLSID *pClassId);
  49. // Notification overrides
  50. OVERRIDE_BaseHandlerNotify_OnExpand();
  51. // Handler overrides
  52. OVERRIDE_NodeHandler_OnCreateDataObject();
  53. OVERRIDE_NodeHandler_DestroyHandler();
  54. // virtual function to access config stream
  55. ConfigStream * GetConfigStream()
  56. { return &m_ConfigStream; }
  57. protected:
  58. HRESULT AddProtocolNode(ITFSNode *pNode, IRouterInfo * pRouterInfo);
  59. HRESULT CompareNodeToMachineName(ITFSNode *pNode, LPCTSTR pszName);
  60. RipConfigStream m_ConfigStream;
  61. };
  62. #endif _RIPROOT_H