Does anyone out there know how to reboot a machine from within a program.
I just want to perform some basic task and then automatically reboot.. i don't need control to return to the calling function after reboot either.. just end the program and restart.
There is info in MSDN but this would take forever to wade through (well more time than i have at my disposal anyway),
so code would be good.. or even if someone knew what functions to call.
Any kind of input would be appreciated.
Using VisualC++ on Win2000.
thanks for your time
I just want to perform some basic task and then automatically reboot.. i don't need control to return to the calling function after reboot either.. just end the program and restart.
There is info in MSDN but this would take forever to wade through (well more time than i have at my disposal anyway),
so code would be good.. or even if someone knew what functions to call.
Any kind of input would be appreciated.
Using VisualC++ on Win2000.
thanks for your time