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.

64 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. dialogs.c
  5. Abstract:
  6. This file implements the dialog proc for the last wizard page in the client setup.
  7. Environment:
  8. WIN32 User Mode
  9. Author:
  10. Julia Robinson (a-juliar) 5-August-1996
  11. --*/
  12. #include "wizard.h"
  13. #pragma hdrstop
  14. LRESULT
  15. LastClientPageDlgProc(
  16. HWND hwnd,
  17. UINT msg,
  18. WPARAM wParam,
  19. LPARAM lParam
  20. )
  21. {
  22. switch( msg ) {
  23. case WM_INITDIALOG:
  24. EnableWindow( GetDlgItem( GetParent( hwnd ), IDCANCEL ), FALSE );
  25. break;
  26. case WM_NOTIFY:
  27. switch( ((LPNMHDR)lParam)->code ) {
  28. case PSN_SETACTIVE:
  29. if (Unattended) {
  30. ExitProcess(0);
  31. }
  32. if (InstallMode == INSTALL_REMOVE ){
  33. SetWindowLong( hwnd, DWL_MSGRESULT, IDD_LAST_UNINSTALL_PAGE );
  34. return TRUE;
  35. }
  36. break;
  37. case PSN_WIZFINISH:
  38. if (RebootRequired && !SuppressReboot) {
  39. SetupPromptReboot( NULL, NULL, FALSE );
  40. }
  41. PostMessage( GetParent(GetParent(hwnd)), WM_USER+500, 0, 0 );
  42. break;
  43. }
  44. break;
  45. }
  46. return FALSE;
  47. }