Solved

Restart and shutdown

Posted on 2000-04-01
1
268 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi OLE Error 8 95
Delphi component that can load a DLL in design time? 8 53
Delphi: how to send PJL commands to printer 3 90
Convert a string into a TDateTime 5 52
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

864 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now