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.

69 lines
1.4 KiB

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