home *** CD-ROM | disk | FTP | other *** search
- #define STRICT
- #include <windows.h>
- #include <windowsx.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "appsetup.h"
-
- /*-------------------------------------------------------------------------*/
- BOOL WINAPI RestartDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
- {
- switch(message)
- {
- case WM_INITDIALOG:
- return TRUE;
-
- case WM_COMMAND:
- switch(wParam)
- {
- case IDRESTART_YES:
- EndDialog(hDlg, 0);
- ExitWindows(EW_RESTARTWINDOWS, 0);
- return TRUE;
-
- case IDRESTART_NO:
- EndDialog(hDlg, 0);
- return TRUE;
- }
- break;
- }
- return FALSE;
- }
-