Shutdown computer

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.
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.