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.

92 lines
1.8 KiB

  1. // Copyright (c) 1997-2001 Microsoft Corporation
  2. //
  3. // File: DNSInstallationUnit.h
  4. //
  5. // Synopsis: Declares a DNSInstallationUnit
  6. // This object has the knowledge for installing the
  7. // DNS service
  8. //
  9. // History: 02/05/2001 JeffJon Created
  10. #ifndef __CYS_DNSINSTALLATIONUNIT_H
  11. #define __CYS_DNSINSTALLATIONUNIT_H
  12. #include "NetworkServiceInstallationBase.h"
  13. class DNSInstallationUnit : public NetworkServiceInstallationBase
  14. {
  15. public:
  16. // Constructor
  17. DNSInstallationUnit();
  18. // Destructor
  19. virtual
  20. ~DNSInstallationUnit();
  21. // Installation Unit overrides
  22. virtual
  23. InstallationReturnType
  24. InstallService(HANDLE logfileHandle, HWND hwnd);
  25. virtual
  26. bool
  27. IsServiceInstalled();
  28. virtual
  29. bool
  30. GetFinishText(String& message);
  31. // Data accessors
  32. void
  33. SetExpressPathInstall(bool isExpressPath);
  34. bool IsExpressPathInstall() const;
  35. void
  36. SetStaticIPAddress(DWORD ipaddress);
  37. DWORD
  38. GetStaticIPAddress() const { return staticIPAddress; }
  39. String
  40. GetStaticIPAddressString() const;
  41. void
  42. SetSubnetMask(DWORD mask);
  43. DWORD
  44. GetSubnetMask() const { return subnetMask; }
  45. String
  46. GetSubnetMaskString() const;
  47. protected:
  48. InstallationReturnType
  49. ExpressPathInstall(HANDLE /*logfileHandle*/, HWND /*hwnd*/);
  50. private:
  51. HRESULT
  52. GetTcpIpInterfaceGuidName(String& result);
  53. String
  54. GetTcpIpInterfaceFriendlyName();
  55. bool
  56. ReadConfigWizardRegkeys(String& configWizardResults) const;
  57. bool isExpressPathInstall;
  58. // Express path members
  59. DWORD staticIPAddress;
  60. DWORD subnetMask;
  61. };
  62. #endif // __CYS_DNSINSTALLATIONUNIT_H