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.

77 lines
1.6 KiB

  1. // Copyright (c) 2002 Microsoft Corporation
  2. //
  3. // File: IndexingInstallationUnit.h
  4. //
  5. // Synopsis: Declares a IndexingInstallationUnit
  6. // This object has the knowledge for installing the
  7. // indexing service
  8. //
  9. // History: 03/20/2002 JeffJon Created
  10. #ifndef __CYS_INDEXINGINSTALLATIONUNIT_H
  11. #define __CYS_INDEXINGINSTALLATIONUNIT_H
  12. #include "InstallationUnit.h"
  13. class IndexingInstallationUnit : public InstallationUnit
  14. {
  15. public:
  16. // Constructor
  17. IndexingInstallationUnit();
  18. // Destructor
  19. virtual
  20. ~IndexingInstallationUnit();
  21. // Installation Unit overrides
  22. virtual
  23. InstallationReturnType
  24. InstallService(HANDLE logfileHandle, HWND hwnd);
  25. virtual
  26. UnInstallReturnType
  27. UnInstallService(HANDLE logfileHandle, HWND hwnd);
  28. virtual
  29. bool
  30. IsServiceInstalled();
  31. virtual
  32. bool
  33. GetMilestoneText(String& /*message*/) { return true; }
  34. virtual
  35. bool
  36. GetUninstallMilestoneText(String& /*message*/) { return true; }
  37. // Public methods
  38. HRESULT
  39. StartService(HANDLE logfileHandle);
  40. HRESULT
  41. StopService();
  42. bool
  43. IsServiceOn();
  44. private:
  45. HRESULT
  46. ChangeServiceConfigToAutoStart();
  47. HRESULT
  48. ChangeServiceConfigToDisabled();
  49. HRESULT
  50. ChangeServiceStartType(DWORD startType);
  51. HRESULT
  52. ModifyIndexingService(bool turnOn);
  53. };
  54. #endif // __CYS_FILEINSTALLATIONUNIT_H