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.

95 lines
2.5 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1994 **
  4. //*********************************************************************
  5. //
  6. // SBSINTRO.C - Functions for SBS introductory Wizard pages
  7. //
  8. // HISTORY:
  9. //
  10. // 09/01/98 vyung Created.
  11. //
  12. //*********************************************************************
  13. #include "pre.h"
  14. /*******************************************************************
  15. NAME: SbsInitProc
  16. SYNOPSIS: Called when "Intro" page is displayed
  17. ENTRY: hDlg - dialog window
  18. fFirstInit - TRUE if this is the first time the dialog
  19. is initialized, FALSE if this InitProc has been called
  20. before (e.g. went past this page and backed up)
  21. ********************************************************************/
  22. BOOL CALLBACK SbsInitProc
  23. (
  24. HWND hDlg,
  25. BOOL fFirstInit,
  26. UINT *puNextPage
  27. )
  28. {
  29. if (!fFirstInit)
  30. {
  31. // This is the very first page, so do not allow back
  32. PropSheet_SetWizButtons(GetParent(hDlg),PSWIZB_NEXT);
  33. }
  34. gpWizardState->uCurrentPage = ORD_PAGE_SBSINTRO;
  35. return TRUE;
  36. }
  37. /*******************************************************************
  38. NAME: SbsIntroOKProc
  39. SYNOPSIS: Called when Next or Back btns pressed from "Intro" page
  40. ENTRY: hDlg - dialog window
  41. fForward - TRUE if 'Next' was pressed, FALSE if 'Back'
  42. puNextPage - if 'Next' was pressed,
  43. proc can fill this in with next page to go to. This
  44. parameter is ingored if 'Back' was pressed.
  45. pfKeepHistory - page will not be kept in history if
  46. proc fills this in with FALSE.
  47. EXIT: returns TRUE to allow page to be turned, FALSE
  48. to keep the same page.
  49. ********************************************************************/
  50. BOOL CALLBACK SbsIntroOKProc
  51. (
  52. HWND hDlg,
  53. BOOL fForward,
  54. UINT *puNextPage,
  55. BOOL *pfKeepHistory
  56. )
  57. {
  58. ASSERT(puNextPage);
  59. if (fForward)
  60. {
  61. // Do the system config checks
  62. if (!gpWizardState->cmnStateData.bSystemChecked && !ConfigureSystem(hDlg))
  63. {
  64. // gfQuitWizard will be set in ConfigureSystem if we need to quit
  65. return FALSE;
  66. }
  67. gpWizardState->lRefDialTerminateStatus = ERROR_SUCCESS;
  68. *puNextPage = ORD_PAGE_AREACODE;
  69. }
  70. return TRUE;
  71. }