Solved

Restart and shutdown

Posted on 2000-04-01
1
271 Views
Last Modified: 2010-04-04
Is it possible to restart and shutdown system(computer)?
If yes, how to do that?
0
Comment
Question by:Jurica2505
1 Comment
 
LVL 2

Accepted Solution

by:
rene100 earned 30 total points
ID: 2675964
Hi....

to reboot;

exitwindowsex(EWX_REBOOT,0);

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

regards
rene
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question