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.

124 lines
3.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1997 - 1999
  4. Module Name:
  5. LoggingMethodsNode.h
  6. Abstract:
  7. Header file for the CLoggingMethodsNode subnode.
  8. See LoggingMethodsNode.cpp for implementation.
  9. Author:
  10. Michael A. Maguire 12/15/97
  11. Revision History:
  12. mmaguire 12/15/97 - created
  13. --*/
  14. //////////////////////////////////////////////////////////////////////////////
  15. #if !defined(_LOG_LOGGING_METHODS_NODE_H_)
  16. #define _LOG_LOGGING_METHODS_NODE_H_
  17. //////////////////////////////////////////////////////////////////////////////
  18. // BEGIN INCLUDES
  19. //
  20. // where we can find what this class derives from:
  21. //
  22. #include "NodeWithResultChildrenList.h"
  23. //
  24. //
  25. // where we can find what this class has or uses:
  26. //
  27. //
  28. // END INCLUDES
  29. //////////////////////////////////////////////////////////////////////////////
  30. class CLocalFileLoggingNode;
  31. class CLoggingMachineNode;
  32. class LoggingMethod;
  33. class CLoggingComponentData;
  34. class CLoggingComponent;
  35. class CLoggingMethodsNode
  36. : public CNodeWithResultChildrenList<
  37. CLoggingMethodsNode,
  38. LoggingMethod,
  39. CSimpleArray<LoggingMethod*>,
  40. CLoggingComponentData,
  41. CLoggingComponent
  42. >
  43. {
  44. public:
  45. SNAPINMENUID(IDM_LOGGING_METHODS_NODE)
  46. BEGIN_SNAPINTOOLBARID_MAP(CLoggingMethodsNode)
  47. // SNAPINTOOLBARID_ENTRY(IDR_LOGGING_METHODS_TOOLBAR)
  48. END_SNAPINTOOLBARID_MAP()
  49. HRESULT DataRefresh( ISdo* pServiceSdo );
  50. // Constructor/Destructor
  51. CLoggingMethodsNode(CSnapInItem * pParentNode, bool extendRasNode);
  52. ~CLoggingMethodsNode();
  53. STDMETHOD(FillData)(CLIPFORMAT cf, LPSTREAM pStream);
  54. virtual HRESULT OnRefresh(
  55. LPARAM arg
  56. , LPARAM param
  57. , IComponentData * pComponentData
  58. , IComponent * pComponent
  59. , DATA_OBJECT_TYPES type
  60. );
  61. // Used to get access to snapin-global data.
  62. CLoggingComponentData * GetComponentData( void );
  63. // Used to get access to server-global data.
  64. CLoggingMachineNode * GetServerRoot( void );
  65. // SDO management.
  66. HRESULT InitSdoPointers( ISdo *pSdo );
  67. HRESULT LoadCachedInfoFromSdo( void );
  68. // Some overrides for standard MMC functionality.
  69. OLECHAR* GetResultPaneColInfo( int nCol );
  70. HRESULT InsertColumns( IHeaderCtrl* pHeaderCtrl );
  71. HRESULT PopulateResultChildrenList( void );
  72. HRESULT SetVerbs( IConsoleVerb * pConsoleVerb );
  73. // Our own handling of property page changes.
  74. HRESULT OnPropertyChange(
  75. LPARAM arg
  76. , LPARAM param
  77. , IComponentData * pComponentData
  78. , IComponent * pComponent
  79. , DATA_OBJECT_TYPES type
  80. );
  81. bool m_ExtendRas;
  82. private:
  83. typedef CNodeWithResultChildrenList<
  84. CLoggingMethodsNode,
  85. LoggingMethod,
  86. CSimpleArray<LoggingMethod*>,
  87. CLoggingComponentData,
  88. CLoggingComponent
  89. > MyBaseClass;
  90. // pointer to our root Server Data Object;
  91. CComPtr<ISdo> m_spSdo;
  92. };
  93. #endif // _IAS_LOGGING_METHODS_NODE_H_