Skip to content

EEDDRV/Shutdown-Guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shutdown Guard

About:

An application that prevent Windows from shutting down.


Usage:

-U : Unlimited  (Constantly attempting to abort the shutdown).

Shutdown-Guard.exe -U

-L : Limited  (Closes after the first successful attempt to abort the shutdown).

Shutdown-Guard.exe -L

-E : Efficiency  (Constantly attempting to abort the shutdown every 0.001 of a second.).

Shutdown-Guard.exe -E

Note: This application is created in both C and C++.

GitHub code size in bytes GitHub

How to compile in C:

windres Shutdown-Guard.rc -o Shutdown-Guard.o
gcc -o Shutdown-Guard.exe Shutdown-Guard.c Shutdown-Guard.o 

How to compile in C++:

windres Shutdown-Guard.rc -o Shutdown-Guard.o
g++ -o Shutdown-Guard.exe Shutdown-Guard.cpp Shutdown-Guard.o