From 50fac1484b6d81955a37e93f9e12ba7c9ee045ca Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 12 Oct 2018 16:27:47 +0200 Subject: [PATCH] Added the WM_CTRLALTDEL window message that sends CTRL+ALT+DEL to the VM. --- src/win/win.h | 3 ++- src/win/win_ui.c | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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*,