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.

101 lines
1.7 KiB

  1. // Copyright (C) 2000 Microsoft Corporation
  2. //
  3. // Dynamic DNS detection/diagnostic page
  4. //
  5. // 22 Aug 2000 sburns
  6. #ifndef DYNAMICDNSPAGE_HPP_INCLUDED
  7. #define DYNAMICDNSPAGE_HPP_INCLUDED
  8. class DynamicDnsPage : public DCPromoWizardPage
  9. {
  10. public:
  11. DynamicDnsPage();
  12. protected:
  13. virtual ~DynamicDnsPage();
  14. // Dialog overrides
  15. virtual
  16. void
  17. OnInit();
  18. virtual
  19. bool
  20. OnCommand(
  21. HWND windowFrom,
  22. unsigned controlIdFrom,
  23. unsigned code);
  24. // PropertyPage overrides
  25. virtual
  26. bool
  27. OnSetActive();
  28. // WizardPage overrides
  29. virtual
  30. bool
  31. OnWizBack();
  32. // DCPromoWizardPage overrides
  33. virtual
  34. int
  35. Validate();
  36. private:
  37. enum DiagnosticCode
  38. {
  39. // These codes correspond to the message numbers in the spec diagram
  40. // of the diagnostic algorithm.
  41. SUCCESS = 1,
  42. SERVER_CANT_UPDATE = 2,
  43. ERROR_TESTING_SERVER = 3,
  44. UNEXPECTED_FINDING_SERVER = 4,
  45. ERROR_FINDING_SERVER = 6,
  46. ZONE_IS_ROOT = 8,
  47. TIMEOUT = 11
  48. };
  49. DiagnosticCode
  50. DiagnoseDnsRegistration(
  51. const String& newDomainDnsName,
  52. DNS_STATUS& errorCode,
  53. String& authZone,
  54. String& authServer,
  55. String& authServerIpAddress);
  56. void
  57. DoDnsTestAndUpdatePage();
  58. void
  59. SelectRadioButton(int buttonResId);
  60. void
  61. ShowButtons(bool hidden);
  62. DiagnosticCode diagnosticResultCode;
  63. String details;
  64. String helpTopicLink;
  65. unsigned testPassCount;
  66. // not defined; no copying allowed
  67. DynamicDnsPage(const DynamicDnsPage&);
  68. const DynamicDnsPage& operator=(const DynamicDnsPage&);
  69. };
  70. #endif // DYNAMICDNSPAGE_HPP_INCLUDED