Re: Help with AbortSystemShutdown
actually it works, and not only after the command InitiateSystemShutdown..
Declare:
Code:
Declare Auto Function AbortSystemShutdown Lib "advapi32.dll" _
(ByVal lpMachineName As String) As Boolean
Call:
Code:
AbortSystemShutdown("localhost")
I created the program to automatically abort the shutdown when i open it.. because i have an annoying 'ShutDown' button next to 'Enter'..
But it doesn't work quite sure.. so i created a button to call the same function, and only after pressing it after 10 times it did actually stopped from shutting down..