How can I force the windows computer to shutdown by using the P/Invoke Declaration for ExitWindowsEx in VB.Net?
I am not talking about Process.Start("shutdown -s -f- -t 0")
I know there is way to do the same thing using the Windows API.
How can I force a shutdown/reboot?
Asked
Active
Viewed 196 times
2

nexno
- 429
- 8
- 26
-
The third answer in the linked duplicate question shows how to do it with `ExitWindowsEx`. – Heinzi Apr 04 '14 at 14:45