diff -urN colinux-20040509/src/colinux/os/winnt/user/console/head.cpp colinux-work/src/colinux/os/winnt/user/console/head.cpp --- colinux-20040509/src/colinux/os/winnt/user/console/head.cpp 2004-04-21 10:09:14.000000000 -0500 +++ colinux-work/src/colinux/os/winnt/user/console/head.cpp 2004-05-12 23:38:59.000000000 -0500 @@ -25,6 +25,7 @@ LPARAM lParam ) { + int AltDown = (lParam & (1 << 29)) ? 1 : 0; co_scan_code_t sc; sc.code = (lParam >> 16) & 0xff; sc.down = (lParam & (1 << 31)) ? 0 : 1; @@ -33,6 +34,12 @@ co_user_console_handle_scancode(sc); + if ((AltDown == 1) && + (wParam == 0x73)) { + // Swallow the ALT-F4 keystroke. + return 1; + } + return CallNextHookEx(current_hook, nCode, wParam, lParam); }