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.

68 lines
1.4 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 _ROOT_H
  13. #define _ROOT_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 _RTRSTRM_H
  24. #include "rtrstrm.h"
  25. #endif
  26. //generic root handler
  27. class RootHandler
  28. : public BaseRouterHandler, public IPersistStreamInit
  29. {
  30. public:
  31. RootHandler(ITFSComponentData *pCompData);
  32. virtual ~RootHandler()
  33. { DEBUG_DECREMENT_INSTANCE_COUNTER(RootHandler); };
  34. DeclareIUnknownMembers(IMPL)
  35. DeclareIPersistStreamInitMembers(IMPL)
  36. // Basic initialization
  37. virtual HRESULT Init();
  38. virtual HRESULT ConstructNode(ITFSNode *pNode);
  39. // Notification overrides
  40. OVERRIDE_BaseHandlerNotify_OnExpand() = 0;
  41. // Handler overrides
  42. OVERRIDE_NodeHandler_OnCreateDataObject() = 0;
  43. // Access ConfigStream
  44. virtual ConfigStream * GetConfigStream() = 0;
  45. protected:
  46. SPITFSComponentData m_spTFSCompData;
  47. SPIRouterInfo m_spRouterInfo;
  48. };
  49. #endif _ROOT_H