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.

60 lines
1.2 KiB

  1. // Copyright (C) 2000 Microsoft Corporation
  2. //
  3. // Check availability of ports used by Active Directory
  4. //
  5. // 1 Nov 2000 sburns
  6. #ifndef CHECKPORTAVAILABILITY_HPP_INCLUDED
  7. #define CHECKPORTAVAILABILITY_HPP_INCLUDED
  8. // Return true if all the IP ports used by the DS are available on this
  9. // machine, false if not. If the result is false, then also pop up a dialog
  10. // listing the ports that are in use.
  11. //
  12. // NTRAID#NTBUG9-129955-2000/11/01-sburns
  13. bool
  14. AreRequiredPortsAvailable();
  15. class PortsUnavailableErrorDialog : public Dialog
  16. {
  17. public:
  18. PortsUnavailableErrorDialog(StringList& portsInUseList);
  19. virtual
  20. ~PortsUnavailableErrorDialog();
  21. private:
  22. // Dialog overrides
  23. virtual
  24. bool
  25. OnCommand(
  26. HWND windowFrom,
  27. unsigned controlIDFrom,
  28. unsigned code);
  29. virtual
  30. void
  31. OnInit();
  32. // not defined: no copying allowed
  33. PortsUnavailableErrorDialog(const PortsUnavailableErrorDialog&);
  34. const PortsUnavailableErrorDialog& operator=(const PortsUnavailableErrorDialog&);
  35. StringList& portsInUseList;
  36. };
  37. #endif // CHECKPORTAVAILABILITY_HPP_INCLUDED