How to Reboot ?

J

Joe Longo

I have a service in written in vb dotnet. During execution of this service,
I want it to Reboot the system it runs on. How can I do this with or without
the framework.
 
K

Kumar Gaurav Khanna [C# MVP]

Hi!

You could use ExitWindowsEx API using PInvoke to get the work done!.

Regards,
--------------------------------------------------
Kumar Gaurav Khanna Microsoft
MVP - C#, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top