Some of the apps after installation on Windows prompt you to restart Windows to make the changes. But when you are working on some important work, you might not want to restart the PC. But quite often we accidently press these buttons and we end up with lost data. shutdownBlocker is a freeware tool for Windows which allows you to prevent any shutdown, restart or log off commands in Windows.
It protects from user mistakes, poorly designed installers (those lacking a ‘restart later’ option), and even windows itself.
It works by registering a ShutdownBlockReasonCreate() reason and objecting to WM_QUERYENDSESSION messages. It can optionally be set to consume all calls to shutdown.exe and MusNotification.exe.
For the app to work properly you need to run this under administrator and give full access. Since the app is portable, you can simply run the exe file.
The program must be kept running to work. You can send it to the notification tray by using the ‘Hide’ button, the escape key, or if upper right close button. Optionally you can hide the tray icon (in settings) for completely invisible operation.