static extern int CancelShutdown();
Declare Function CancelShutdown Lib "user32.dll" () As Integer
CancelShutdown();