• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

Restart and shutdown

Is it possible to restart and shutdown system(computer)?
If yes, how to do that?
0
Jurica2505
Asked:
Jurica2505
1 Solution
 
rene100Commented:
Hi....

to reboot;

exitwindowsex(EWX_REBOOT,0);

to shutdown:exitwindowsex(EWX_SHUTDOWN,0); (or with ewx_poweroff)

regards
rene
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now