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.

58 lines
1.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) Microsoft Corporation
  4. //
  5. // SYNOPSIS
  6. //
  7. // Declares the class LoggingMethod.
  8. //
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef LOGGINGMETHOD_H
  11. #define LOGGINGMETHOD_H
  12. #pragma once
  13. #include "snapinnode.h"
  14. class CLoggingComponent;
  15. class CLoggingComponentData;
  16. class CLoggingMethodsNode;
  17. // Abstract base class for the result pane items displayed under Remote Access
  18. // Logging.
  19. class __declspec(novtable) LoggingMethod
  20. : public CSnapinNode<
  21. LoggingMethod,
  22. CLoggingComponentData,
  23. CLoggingComponent
  24. >
  25. {
  26. public:
  27. LoggingMethod(long sdoId, CSnapInItem* parent);
  28. virtual ~LoggingMethod() throw ();
  29. HRESULT InitSdoPointers(ISdo* machine) throw ();
  30. virtual HRESULT LoadCachedInfoFromSdo() throw () = 0;
  31. CLoggingMethodsNode* Parent() const throw ();
  32. protected:
  33. virtual CLoggingComponentData* GetComponentData();
  34. // SDO containing our configuration.
  35. CComPtr<ISdo> configSdo;
  36. // SDO used for resetting the service when config changes.
  37. CComPtr<ISdoServiceControl> controlSdo;
  38. private:
  39. long componentId;
  40. // Not implemented.
  41. LoggingMethod(const LoggingMethod&);
  42. LoggingMethod& operator=(const LoggingMethod&);
  43. };
  44. #endif // LOGGINGMETHOD_H