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.

116 lines
2.4 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: ADInstallationUnit.h
  4. //
  5. // Synopsis: Declares a ADInstallationUnit
  6. // This object has the knowledge for installing
  7. // Active Directory
  8. //
  9. // History: 02/08/2001 JeffJon Created
  10. #ifndef __CYS_ADINSTALLATIONUNIT_H
  11. #define __CYS_ADINSTALLATIONUNIT_H
  12. #include "ExpressPathInstallationUnitBase.h"
  13. extern PCWSTR CYS_DCPROMO_COMMAND_LINE;
  14. class ADInstallationUnit : public ExpressPathInstallationUnitBase
  15. {
  16. public:
  17. // Constructor
  18. ADInstallationUnit();
  19. // Destructor
  20. virtual
  21. ~ADInstallationUnit();
  22. // Installation Unit overrides
  23. virtual
  24. InstallationReturnType
  25. InstallService(HANDLE logfileHandle, HWND hwnd);
  26. virtual
  27. UnInstallReturnType
  28. UnInstallService(HANDLE logfileHandle, HWND hwnd);
  29. virtual
  30. InstallationReturnType
  31. ExpressPathInstall(HANDLE logfileHandle, HWND hwnd);
  32. virtual
  33. String
  34. GetServiceDescription();
  35. virtual
  36. bool
  37. GetMilestoneText(String& message);
  38. virtual
  39. bool
  40. GetUninstallMilestoneText(String& message);
  41. virtual
  42. void
  43. ServerRoleLinkSelected(int linkIndex, HWND hwnd);
  44. virtual
  45. void
  46. FinishLinkSelected(int inkIndex, HWND hwnd);
  47. virtual
  48. String
  49. GetFinishText();
  50. virtual
  51. bool
  52. DoInstallerCheck(HWND hwnd) const;
  53. // Data accessors
  54. void
  55. SetNewDomainDNSName(const String& newDomain);
  56. String
  57. GetNewDomainDNSName() const { return domain; }
  58. void
  59. SetNewDomainNetbiosName(const String& newNetbios);
  60. String
  61. GetNewDomainNetbiosName() const { return netbios; }
  62. void
  63. SetSafeModeAdminPassword(const String& newPassword);
  64. String
  65. GetSafeModeAdminPassword() const { return password; }
  66. bool
  67. SyncRestoreModePassword() const;
  68. String
  69. GetDCPromoPath() const;
  70. private:
  71. bool
  72. RegisterPasswordSyncDLL();
  73. bool
  74. CreateAnswerFileForDCPromo(String& answerFilePath);
  75. bool
  76. ReadConfigWizardRegkeys(String& configWizardResults) const;
  77. bool isExpressPathInstall;
  78. bool syncRestoreModePassword;
  79. String domain;
  80. String netbios;
  81. String password;
  82. };
  83. #endif // __CYS_ADINSTALLATIONUNIT_H