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.

70 lines
1.4 KiB

  1. // Copyright (C) 2000 Microsoft Corporation
  2. //
  3. // Non-domain Naming Context checking code
  4. //
  5. // 13 July 2000 sburns, from code supplied by jeffparh
  6. #ifndef NONDOMAINNC_HPP_INCLUDED
  7. #define NONDOMAINNC_HPP_INCLUDED
  8. // return true if this machine hosts the last replica of at least one
  9. // non-domain NC, or if such determination cannot be made due to an error.
  10. //
  11. // If the result is true, then also pop up a dialog listing the NCs and
  12. // hinting at how to remove them, or in the case of an error, report the
  13. // failure. If true is returned, the wizard should terminate.
  14. //
  15. // return false if the machine is not a domain controller, or is not the last
  16. // replica of a non-domain NC. In this case, the wizard can proceed.
  17. //
  18. // NTRAID#NTBUG9-120143-2000/11/02-sburns
  19. bool
  20. IsLastReplicaOfNonDomainNamingContexts();
  21. class NonDomainNcErrorDialog : public Dialog
  22. {
  23. public:
  24. NonDomainNcErrorDialog(StringList& ndncList_);
  25. virtual
  26. ~NonDomainNcErrorDialog();
  27. private:
  28. // Dialog overrides
  29. virtual
  30. bool
  31. OnCommand(
  32. HWND windowFrom,
  33. unsigned controlIDFrom,
  34. unsigned code);
  35. virtual
  36. void
  37. OnInit();
  38. void
  39. PopulateListView();
  40. // not defined: no copying allowed
  41. NonDomainNcErrorDialog(const NonDomainNcErrorDialog&);
  42. const NonDomainNcErrorDialog& operator=(const NonDomainNcErrorDialog&);
  43. StringList& ndncList;
  44. HICON warnIcon;
  45. };
  46. #endif // NONDOMAINNC_HPP_INCLUDED