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.

93 lines
1.8 KiB

  1. // Copyright (c) 1997-2001 Microsoft Corporation
  2. //
  3. // File: DHCPInstallationUnit.h
  4. //
  5. // Synopsis: Declares a DHCPInstallationUnit
  6. // This object has the knowledge for installing the
  7. // DHCP service
  8. //
  9. // History: 02/05/2001 JeffJon Created
  10. #ifndef __CYS_DHCPINSTALLATIONUNIT_H
  11. #define __CYS_DHCPINSTALLATIONUNIT_H
  12. #include "NetworkServiceInstallationBase.h"
  13. class DHCPInstallationUnit : public NetworkServiceInstallationBase
  14. {
  15. public:
  16. // Constructor
  17. DHCPInstallationUnit();
  18. // Destructor
  19. virtual
  20. ~DHCPInstallationUnit();
  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. bool
  32. IsConfigured();
  33. InstallationReturnType
  34. ExpressPathInstall(HANDLE logfileHandle, HWND hwnd);
  35. // Other accessibly functions
  36. bool
  37. AuthorizeDHCPScope(const String& dnsName) const;
  38. // Data accessors
  39. void
  40. SetExpressPathInstall(bool isExpressPath);
  41. bool IsExpressPathInstall() const;
  42. void
  43. SetStartIPAddress(DWORD ipaddress);
  44. DWORD
  45. GetStartIPAddress() const { return startIPAddress; }
  46. void
  47. SetEndIPAddress(DWORD ipaddress);
  48. DWORD
  49. GetEndIPAddress() const { return endIPAddress; }
  50. String
  51. GetStartIPAddressString() const;
  52. String
  53. GetEndIPAddressString() const;
  54. protected:
  55. void
  56. CreateUnattendFileTextForExpressPath(String& unattendFileText);
  57. private:
  58. bool isExpressPathInstall;
  59. DWORD startIPAddress;
  60. DWORD endIPAddress;
  61. };
  62. #endif // __CYS_DHCPINSTALLATIONUNIT_H