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.

50 lines
1.4 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Windows NT Secure Server Roles Security Configuration Wizard
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992 - 2002
  7. //
  8. // File: ServiceObj.h
  9. //
  10. // History: 12-Oct-01 Yanggao created
  11. //
  12. //-----------------------------------------------------------------------------
  13. #ifndef SERVICEOBJ_H_INCLUDED
  14. #define SERVICEOBJ_H_INCLUDED
  15. class ServiceObject;
  16. typedef std::list<ServiceObject*, Burnslib::Heap::Allocator<ServiceObject*> > SERVICELIST;
  17. class ServiceObject
  18. {
  19. public:
  20. ServiceObject(String& xmlserviceName,
  21. bool xmlinstalled = false,
  22. DWORD xmlstartupCurrent = 0,
  23. DWORD xmlstartupDefault = 0);
  24. virtual ~ServiceObject();
  25. private:
  26. protected:
  27. SERVICELIST dependenceList;
  28. bool installed;
  29. DWORD startupCurrent;
  30. DWORD startupDefault;
  31. String _strDescription;
  32. bool _fRequired;
  33. bool _fSelect;
  34. bool _fInstalled;
  35. public:
  36. String serviceName;
  37. bool addDependent(ServiceObject* pobj);
  38. bool removeDependent(String str);
  39. ServiceObject* findDependent(String str);
  40. DWORD getDependentCount();
  41. };
  42. #endif //SERVICEOBJ_H_INCLUDED