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.

43 lines
1.4 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to
  4. // existing Microsoft documentation.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  7. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  8. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  9. // PURPOSE.
  10. //
  11. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  12. //==============================================================;
  13. #ifndef _LOGSVRC_H
  14. #define _LOGSVRC_H
  15. #include "DeleBase.h"
  16. #include "statnode.h"
  17. //---------------------------------------------------------------------------
  18. // This node class doesn't do much. It just provides a node for use to
  19. // to attach the Event Viewer extension to.
  20. //
  21. class CLogService : public CDelegationBase {
  22. public:
  23. CLogService(CStaticNode* parent) : pParent(parent) { }
  24. virtual ~CLogService() {}
  25. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  26. virtual const GUID & getNodeType() { return thisGuid; }
  27. virtual const int GetBitmapIndex() { return INDEX_LOGSERVICEICON; }
  28. virtual const _TCHAR *GetMachineName() { return pParent->getHost(); }
  29. private:
  30. // {72248FA5-1FA1-4742-A4B2-109AF2051D6C}
  31. static const GUID thisGuid;
  32. CStaticNode* pParent;
  33. };
  34. #endif // _LOGSVRC_H