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.

87 lines
1.7 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Windows NT Secure Server Roles Security Configuration Wizard
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992 - 2002
  7. //
  8. // File: Page.cxx
  9. //
  10. // Contents: Wizard Page class definition.
  11. //
  12. // History: 3-Oct-01 EricB created
  13. //
  14. //-----------------------------------------------------------------------------
  15. #include "pch.h"
  16. #include "resource.h"
  17. #include "page.h"
  18. SecCfgWizardPage::SecCfgWizardPage(
  19. int dialogResID,
  20. int titleResID,
  21. int subtitleResID,
  22. bool isInteriorPage)
  23. :
  24. WizardPage(dialogResID, titleResID, subtitleResID, isInteriorPage)
  25. {
  26. LOG_CTOR(SecCfgWizardPage);
  27. }
  28. SecCfgWizardPage::~SecCfgWizardPage()
  29. {
  30. LOG_DTOR(SecCfgWizardPage);
  31. }
  32. bool
  33. SecCfgWizardPage::OnWizNext()
  34. {
  35. LOG_FUNCTION(SecCfgWizardPage::OnWizNext);
  36. GetWizard().SetNextPageID(hwnd, Validate());
  37. return true;
  38. }
  39. /*
  40. bool
  41. SecCfgWizardPage::OnQueryCancel()
  42. {
  43. LOG_FUNCTION(SecCfgWizardPage::OnQueryCancel);
  44. State& state = State::GetInstance();
  45. int id = IDS_CONFIRM_CANCEL;
  46. switch (state.GetRunContext())
  47. {
  48. case State::BDC_UPGRADE:
  49. case State::PDC_UPGRADE:
  50. {
  51. id = IDS_CONFIRM_UPGRADE_CANCEL;
  52. break;
  53. }
  54. case State::NT5_DC:
  55. case State::NT5_STANDALONE_SERVER:
  56. case State::NT5_MEMBER_SERVER:
  57. default:
  58. {
  59. // do nothing
  60. break;
  61. }
  62. }
  63. Win::SetWindowLongPtr(
  64. hwnd,
  65. DWLP_MSGRESULT,
  66. (popup.MessageBox(hwnd, id, MB_YESNO | MB_DEFBUTTON2) == IDYES)
  67. ? FALSE
  68. : TRUE);
  69. return true;
  70. }
  71. */