Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a C++ command that executes an AutoReboot?

Status
Not open for further replies.

sjn

Programmer
Dec 18, 2000
31
US
Once a Setup utility has executed, I want to be able to control whether the user reboots the system or not. Is there an AutoReboot command in C++ that automatically restarts the system?

Thanks,

Scott.
 
Scott,

I don't know if you can force a reboot but the Setup API has a function called SetupPromptReboot() that displays a dialog prompting the user to reboot. Depending on flags you give it and the users response it will initiate a reboot.

Hope this helps
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top