Programmatically Reboot Computer Using C#

  • Thread starter Thread starter Dex
  • Start date Start date
D

Dex

Hello,
We're developing our own small installation application in C#. At the end
of the installation, we need to reboot the computer. Does anyone know how
to write some C# code to programmatically reboot the computer? (Note: The
computer will be Win2k, WinXP, or Win2k3, nothing else.)
Thanks.
 
search MSDN for "System Shutdown Functions"
I would suggest interop + 'InitiateSystemShutdown'
 
Back
Top