Disable pause/break key in console application
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I would like to disable the 'Pause/Break' key in a console application. Normally, pressing the 'Pause' key halts the application's execution. However, this may lead to undesirable processing gaps in my system. Hence, I would like to disable/ break key in my console application. How can I do so? I tried SetConsoleCtrlHandler. It only able to capture the following events, not "pause" event. Do I need to do it in OS level? CTRL_C_EVENT CTRL_BREAK_EVENT CTRL_CLOSE_EVENT CTRL_LOGOFF_EVENT CTRL_SHUTDOWN_EVENT Thank you. cheok