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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

restarting a computer with c# code???

Status
Not open for further replies.

BPMan

Programmer
Jun 25, 2002
163
0
0
US
I want to prompt a user and ask them if they would like to restart their computer after i install some things....
i would like to do this in my c# program......
i just don't know what to call to restart the computer....
 
Check out the ExitWindowEX api call

Const EWX_SHUTDOWN as Long = 1
Const EWX_REBOOT as Long = 2
Const EWX_FORCE as Long = 4

Declare Function ExitWindowsEx Lib "user32
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top