cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Shutdown computer
Shutdown computer
May 29, 2008 at 11:12am UTC
Sketchy Ninja
(3)
I was wondering if there was anybody who could help me out with some code to shutdown the computer.
I have a group of kids i am working with to make an R.P.G game and we want to shutdown the computer if they press the wrong button.
May 29, 2008 at 11:21am UTC
bnbertha
(401)
I assume it's windows in which case
ExitWindowsEx()
will do it
http://msdn.microsoft.com/en-us/library/aa376868(VS.85).aspx
Is Microsoft's help page on all the options
Topic archived. No new replies allowed.