Source code of Windows XP (NT5)
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.

88 lines
1.8 KiB

  1. // Copyright (c) 1997-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_ASINSTALLATIONUNIT_H
  11. #define __CYS_ADINSTALLATIONUNIT_H
  12. #include "InstallationUnit.h"
  13. class ADInstallationUnit : public InstallationUnit
  14. {
  15. public:
  16. // Constructor
  17. ADInstallationUnit();
  18. // Destructor
  19. virtual
  20. ~ADInstallationUnit();
  21. // Installation Unit overrides
  22. virtual
  23. InstallationReturnType
  24. InstallService(HANDLE logfileHandle, HWND hwnd);
  25. virtual
  26. bool
  27. IsServiceInstalled();
  28. virtual
  29. String
  30. GetServiceDescription();
  31. virtual
  32. bool
  33. GetFinishText(String& message);
  34. InstallationReturnType
  35. InstallServiceExpressPath(HANDLE logfileHandle, HWND hwnd);
  36. // Data accessors
  37. void
  38. SetExpressPathInstall(bool isExpressPath);
  39. bool IsExpressPathInstall() const;
  40. void
  41. SetNewDomainDNSName(const String& newDomain);
  42. String
  43. GetNewDomainDNSName() const { return domain; }
  44. void
  45. SetNewDomainNetbiosName(const String& newNetbios);
  46. String
  47. GetNewDomainNetbiosName() const { return netbios; }
  48. void
  49. SetSafeModeAdminPassword(const String& newPassword);
  50. String
  51. GetSafeModeAdminPassword() const { return password; }
  52. private:
  53. bool
  54. CreateAnswerFileForDCPromo(String& answerFilePath);
  55. bool
  56. ReadConfigWizardRegkeys(String& configWizardResults) const;
  57. bool isExpressPathInstall;
  58. String domain;
  59. String netbios;
  60. String password;
  61. };
  62. #endif // __CYS_ADINSTALLATIONUNIT_H