Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to shutdown a PC. Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
The easyest way to force shutdown a PC. 04-Feb-04
Category
System
Language
CBuilder All Versions
Views
718
User Rating
8.800000
# Votes
5
Replies
0
Publisher:
Darley, F. Joe
Reference URL:
			1   
2   /*
3   EWX_FORCE       Forces programs to close without sending WM_QUERYENDSESSION
4                             and WM_ENDSESSION messages to notify them that Windows is
5                             shutting down. With any of the other flags, programs have 
6   the
7                             power to abort the shut down.
8   EWX_LOGOFF      Closes all programs and then logs the user off.
9   EWX_POWEROFF  Powers down the computer if it supports it.
10  EWX_REBOOT      Reboots the machine.
11  EWX_SHUTDOWN Shuts the machine off without restarting it.
12  */
13  
14  void __fastcall TForm1::Button1Click(TObject *Sender)
15  {
16      ExitWindowsEx(EWX_SHUTDOWN, 0);
17  }


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC