Home
Tutorials
Code Snippets
Code Samples
Downloads
Links

The Blog
Our Projects
About
Contact

::Add RageStorm to Favorites!::

The Blog | Our Projects | Guest Book | About | Contact

 
Code Snippet - Shutdown
Author:Arkon
Category:Win32API
File Size:149 Bytes
Uploaded at:27-Nov-02 07:47:01 pm
Description:
  Reboot/shutdown or whatever your computer...
  
ExitWindowesEx(EWX_SHUTDOWN | EWX_POWEROFF | EWX_FORCE, 0); // Shutting down Windows
ExitWindowsEx(EWX_REBOOT | EWX_FORCE, 0); // Restarting Windows
User Contributed Comments(2)
 [1] math | 2007-01-05 21:13:38

EWX_REBOOT undeclared identifier
ewx_force undeclared identifier
exitwindowsex identifier not found

this code suck
 [2] arkon | 2007-01-06 12:36:05

#define WINVER 0x0400
before including windows.h
NOTE:
Comments that will hurt anyone in any way will be deleted.
Don't ask for features, advertise or curse.
If you want to leave a message to the author use the contacts,
if you have any question in relation to your comments please use the forum.
Comments which violate any of these requests will be deleted without further
notice. Use the comment system decently.

Post your comment:
Name:
email:
Comment:
::Top 5 Tutorials::
Embedded Python[117074]
2D Rotated Rectangles Collision Detection[88996]
Keyboard Hook[77341]
UDP[65890]
HTTP Proxy[41226]

::Top 5 Samples::
2D ColDet Rotated Rectangles[11562]
PS2 Mouse Driver[6960]
Wave Format Player[5793]
Reading FAT12[5621]
CodeGuru[5361]


All rights reserved to RageStorm © 2009