Skip to content

LeoMoon SessionGuard


This small program will do everything to stop your computer from sleeping or restarting without changing any settings on your computer! It works by registering a ShutdownBlockReasonCreate() reason and objecting to WM_QUERYENDSESSION messages.

If your company keeps pushing policies and forcing screen-saver/screen-timeout to lock your computer, you can use this program to stop screen-saver from activating. This program will also stop Windows automatic restarts.


  • Small size
  • Portable
  • Does not modify any Windows settings
  • Stops screen-saver/screen-timeout to lock your computer
  • Stops Windows automatic restarts
  • Use [Ctrl]+[Win]+[Q] to enable/disable


  • Amin Babaeipanah


  • 1.2: Added double click on the icon to toggle
  • 1.1: Minor changes
  • 1.0: Initial release

How to install

  1. Download and run
  2. Use [Ctrl]+[Win]+[Q] to enable/disable

Future ideas

  • NA


Windows 7 and later

Support this project

31 downloads this month