Is there a way to display the Windows shutdown dialog box from c#?
I found a command that I can use with System.Diagnostic.Process.Start
taskkill /im explorer.exe
But doesnt works on Windows 8
Is there a way to display the Windows shutdown dialog box from c#?
I found a command that I can use with System.Diagnostic.Process.Start
taskkill /im explorer.exe
But doesnt works on Windows 8
You could use shutdown.exe instead of trying to kill explorer.:
shutdown.exe /i /t 0
I haven't tried calling it from a C# process, but shutdown /i pulls a GUI on Windows 8 for me. Note that it isn't the same UI though.