Hey Guys,
there's a simple problem I can not solve, and neither can my friends. How do I shut down the computer in C#. I am trying to make an aplication that would shut down the computer after a countdown closing all other active applications, so that I can go to sleep, and my downloads could still go on for about an hour or two.
If possible I would also like to know how to force my computer to disconnect my dial-up connection in C#.
:confused:

Hi,

Try using ExitWindows or ExitWindowsEx Win32 API calls with P/Invoke.

Loren Soth