[DllImport("user32.dll", SetLastError=true)]
static extern int CancelShutdown();
Declare Function CancelShutdown Lib "user32.dll" () As Integer
None.
in C#:
System.Diagnostics.Process.Start("Shutdown", "-a");
One does not simply shutdown a computer.
Please add some!
CancelShutdown();