View Full Version : stop a reboot
jassing
10-25-2008, 11:47 AM
At a critical stage in a program, I want the program to prevent a shutdown; I know vmware can do this -- and I've seen others.
how do they respond to a "system shutdown has been initiated" and then how do they respond such that they stop it?
Thanks.
-josh
You can use command shutdown /a to abort the shutdown process (only when you can see the message that the system is shutting down in x seconds).
jassing
10-25-2008, 12:22 PM
Thanks -- but I need to know to respond that a system shutdown has been requested...
There is a message that is sent out "System shutting down" and (as I understand it) a program can respond "Critical, do not shutdown" and the proces is halted.
sside
10-26-2008, 09:32 AM
Thanks -- but I need to know to respond that a system shutdown has been requested...
There is a message that is sent out "System shutting down" and (as I understand it) a program can respond "Critical, do not shutdown" and the proces is halted.
http://www.indigorose.com/forums/showthread.php?p=129815#post129815
With Kind Regards
sside
jassing
10-27-2008, 09:17 AM
Thanks. however, I can't rely on .net being there.... but that let's me know it can be done by 3rd party dll... any idea what the api is that is called?
sside
10-27-2008, 11:43 AM
Thanks. however, I can't rely on .net being there.... but that let's me know it can be done by 3rd party dll... any idea what the api is that is called?
http://msdn.microsoft.com/en-us/library/aa376890(VS.85).aspx
With Kind Regards
sside
jassing
10-27-2008, 05:00 PM
Thank you -- exactly what I was looking for.
-josh
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.