Jump to content
Sign in to follow this  
MyEarth

"Disable" Shtudown-Reboot-Logoff

Recommended Posts

MyEarth

Hello guys,

I'm searching a way for temporary disable the shutdown-reboot-logoff until my script is running ( it do some Windows Update and stopping the process can create some problem )

I know that the subject has been treated at other times ( $WM_QUERYENDSESSION, _SetProcessShutdownParameter etc. ) but the scripts I've tried do not work and I can not check for @errors as the system reboots-logoff

The only thing i like to do is a simple MsgBox, three one for type of shutdown, alert people that you can not restart-shutdown etc.. and blocking restart-shutdown-logoff function

Many Thanks

Edited by MyEarth

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×