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.

64 lines
1.8 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: ExpressPathInstallationUnitBase.h
  4. //
  5. // Synopsis: Declares an ExpressPathInstallationUnitBase
  6. // An ExpressPathInstallationUnitBase represents a single
  7. // entity that can be installed through the Express path.
  8. // (i.e. DHCP, DNS, etc.)
  9. //
  10. // History: 11/09/2001 JeffJon Created
  11. #ifndef __CYS_EXPRESSPATHINSTALLATIONUNITBASE_H
  12. #define __CYS_EXPRESSPATHINSTALLATIONUNITBASE_H
  13. #include "pch.h"
  14. #include "resource.h"
  15. #include "InstallationUnit.h"
  16. class ExpressPathInstallationUnitBase : public InstallationUnit
  17. {
  18. public:
  19. // Constructor
  20. ExpressPathInstallationUnitBase(
  21. unsigned int serviceNameID,
  22. unsigned int serviceDescriptionID,
  23. unsigned int finishPageTitleID,
  24. unsigned int finishPageUninstallTitleID,
  25. unsigned int finishPageMessageID,
  26. unsigned int finishPageFailedMessageID,
  27. unsigned int finishPageUninstallMessageID,
  28. unsigned int finishPageUninstallFailedMessageID,
  29. unsigned int uninstallMilestonePageWarningID,
  30. unsigned int uninstallMilestonePageCheckboxID,
  31. const String finishPageHelpString,
  32. const String milestonePageHelpString,
  33. const String afterFinishHelpString,
  34. ServerRole newInstallType = NO_SERVER);
  35. virtual
  36. InstallationReturnType
  37. ExpressPathInstall(HANDLE logfileHandle, HWND hwnd) = 0;
  38. // Data accessors
  39. void
  40. SetExpressPathInstall(bool isExpressPath);
  41. bool IsExpressPathInstall() const;
  42. protected:
  43. String
  44. GetNetshPath() const;
  45. private:
  46. bool isExpressPathInstall;
  47. };
  48. #endif // __CYS_EXPRESSPATHINSTALLATIONUNITBASE_H