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.

58 lines
2.0 KiB

  1. // Copyright (C) 2000 Microsoft Corporation
  2. //
  3. // diagnose domain controller not found problems, offer a popup dialog to
  4. // assail the user with the results.
  5. //
  6. // 9 October 2000 sburns
  7. #ifndef DIAGNOSEDCNOTFOUND_HPP_INCLUDED
  8. #define DIAGNOSEDCNOTFOUND_HPP_INCLUDED
  9. // Bring up a modal error message dialog that shows the user an error message
  10. // and offers to run some diagostic tests and point the user at some help to
  11. // try to resolve the problem.
  12. //
  13. // parent - in, the handle to the parent of this dialog.
  14. //
  15. // editResId - in, the resource id of the edit box that contains the domain
  16. // name. If -1 is passed, then this parameter is ignored. Otherwise, when
  17. // the dialog is closed, window messages will be sent to the control such that
  18. // the contents will be selected. It is assumed the control is a child of the
  19. // window identified by the parent parameter.
  20. //
  21. // domainName - in, the name of the domain for which a domain controller can't
  22. // be located. This name may be a DNS or netbios domain name.
  23. //
  24. // dialogTitle - in, the title of the error dialog.
  25. //
  26. // errorMessage - in, the error message to be displayed in the dialog
  27. //
  28. // domainNameIsNotNetbios - in, if the caller knows that the domain named in
  29. // the domainName parameter can't possibly be a netbios domain name, then this
  30. // value should be true. If the caller is not sure, then false should be
  31. // passed.
  32. //
  33. // userIsDomainSavvy - in, true if the end user is expected to be an
  34. // administrator or somesuch that might have an inkling what DNS is and how to
  35. // configure it. If false, then the function will preface the diagnostic text
  36. // with calming words that hopefully prevent the non-administrator from
  37. // weeping.
  38. void
  39. ShowDcNotFoundErrorDialog(
  40. HWND parent,
  41. int editResId,
  42. const String& domainName,
  43. const String& dialogTitle,
  44. const String& errorMessage,
  45. bool domainNameIsNotNetbios,
  46. bool userIsDomainSavvy = true);
  47. #endif // DIAGNOSEDCNOTFOUND_HPP_INCLUDED