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.

102 lines
2.3 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: ExpressInstallationUnit.h
  4. //
  5. // Synopsis: Declares a ExpressInstallationUnit
  6. // This object has the knowledge for installing the
  7. // services for the express path: AD, DNS, and DHCP
  8. //
  9. // History: 02/08/2001 JeffJon Created
  10. #ifndef __CYS_EXPRESSINSTALLATIONUNIT_H
  11. #define __CYS_EXPRESSINSTALLATIONUNIT_H
  12. #include "InstallationUnit.h"
  13. class ExpressInstallationUnit : public InstallationUnit
  14. {
  15. public:
  16. // Constructor
  17. ExpressInstallationUnit();
  18. // Destructor
  19. virtual
  20. ~ExpressInstallationUnit();
  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);
  34. virtual
  35. bool
  36. GetUninstallMilestoneText(String& /*message*/) { return false; }
  37. virtual
  38. String
  39. GetFinishText();
  40. virtual
  41. void
  42. ServerRoleLinkSelected(int /*linkIndex*/, HWND /*hwnd*/) {};
  43. virtual
  44. void
  45. FinishLinkSelected(int inkIndex, HWND hwnd);
  46. HRESULT
  47. DoTapiConfig(const String& dnsName);
  48. enum ExpressRoleResult
  49. {
  50. EXPRESS_SUCCESS,
  51. EXPRESS_CANCELLED,
  52. EXPRESS_RRAS_FAILURE,
  53. EXPRESS_RRAS_CANCELLED,
  54. EXPRESS_DNS_FAILURE,
  55. EXPRESS_DHCP_INSTALL_FAILURE,
  56. EXPRESS_DHCP_CONFIG_FAILURE,
  57. EXPRESS_AD_FAILURE,
  58. EXPRESS_DNS_SERVER_FAILURE,
  59. EXPRESS_DNS_FORWARDER_FAILURE,
  60. EXPRESS_DHCP_SCOPE_FAILURE,
  61. EXPRESS_DHCP_ACTIVATION_FAILURE,
  62. EXPRESS_TAPI_FAILURE
  63. };
  64. // Matching strings for role result for easy
  65. // logging
  66. static const String expressRoleResultStrings[];
  67. void
  68. SetExpressRoleResult(
  69. ExpressRoleResult roleResult);
  70. ExpressRoleResult
  71. GetExpressRoleResult();
  72. private:
  73. ExpressRoleResult expressRoleResult;
  74. void
  75. InstallServerManagementConsole();
  76. };
  77. #endif // __CYS_EXPRESSINSTALLATIONUNIT_H