From 84247b4c6c6d84c1b9ad1ba23a3addad36cab465 Mon Sep 17 00:00:00 2001 From: crs Date: Tue, 18 May 2004 20:32:13 +0000 Subject: [PATCH] If the server manages to detect ctrl+alt+del it will no longer send that to the client. If it did then the user could see the effect of ctrl+alt+del on both the server and client which we never want. The user can use ctrl+alt+pause to emulate ctrl+alt+del on the client. --- lib/platform/CMSWindowsScreen.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/platform/CMSWindowsScreen.cpp b/lib/platform/CMSWindowsScreen.cpp index 991a2568..720b9669 100644 --- a/lib/platform/CMSWindowsScreen.cpp +++ b/lib/platform/CMSWindowsScreen.cpp @@ -950,8 +950,15 @@ CMSWindowsScreen::onKey(WPARAM wParam, LPARAM lParam) // ignore message if posted prior to last mark change if (!ignore()) { - // check for ctrl+alt+del emulation + // check for ctrl+alt+del. we do not want to pass that to the + // client. the user can use ctrl+alt+pause to emulate it. UINT virtKey = (wParam & 0xffu); + if (virtKey == VK_DELETE && ctrlAlt) { + LOG((CLOG_DEBUG "discard ctrl+alt+del")); + return true; + } + + // check for ctrl+alt+del emulation if ((virtKey == VK_PAUSE || virtKey == VK_CANCEL) && ctrlAlt) { LOG((CLOG_DEBUG "emulate ctrl+alt+del")); // switch wParam and lParam to be as if VK_DELETE was