I\'m writing an application that will need to reboot the Windows machine the code is running on.
There didn\'t appear to be an API within .NET to do this, so I looke
See the following example in MSDN: Displaying the Shutdown Dialog Box.
You need to get the correct privileges for your thread.