diff --git a/src/win/win.h b/src/win/win.h index d252f429b..003dc5411 100644 --- a/src/win/win.h +++ b/src/win/win.h @@ -8,7 +8,7 @@ * * Platform support defintions for Win32. * - * Version: @(#)win.h 1.0.20 2018/10/10 + * Version: @(#)win.h 1.0.21 2018/10/12 * * Authors: Sarah Walker, * Miran Grca, @@ -52,6 +52,7 @@ #define WM_SENDHWND 0x8891 #define WM_HARDRESET 0x8892 #define WM_SHUTDOWN 0x8893 +#define WM_CTRLALTDEL 0x8894 #ifdef USE_VNC #define RENDERERS_NUM 5 diff --git a/src/win/win_ui.c b/src/win/win_ui.c index ca1e885bc..5361d2092 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -8,7 +8,7 @@ * * user Interface module for WinAPI on Windows. * - * Version: @(#)win_ui.c 1.0.32 2018/10/10 + * Version: @(#)win_ui.c 1.0.33 2018/10/12 * * Authors: Sarah Walker, * Miran Grca, @@ -652,6 +652,10 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) PostQuitMessage(0); break; + case WM_CTRLALTDEL: + pc_reset(0); + break; + case WM_SYSCOMMAND: /* * Disable ALT key *ALWAYS*,