shutdown?

Started by
3 comments, last by Fondian 20 years, 2 months ago
Is there a built in C++ function that can shutdown the machine? Or anyway i can shut down the machine with C++? -thanks
Advertisement
ok mister you just registereed recently and want to shut off peoples comps?

is this to write a w0rm and be a 1337 h4x0r?

explain why.




[edited by - DerAngeD on February 21, 2004 2:47:29 PM]
look up the ExitWindows() function.

Actually im making a text rpg and im making it with the options to quit,shutdown,log out,restart...


and about the registering recently...this is a new account, cause i forgot my old user name and password which is from september 2000...

[edited by - Fondian on February 21, 2004 2:51:48 PM]
C++ doesn''t have any built-in way to shutdown the computer, but the Win32 API has functions that let you shutdown, restart, go to standby, etc.

You can get the full scoop by searching the MSDN library for "shutdown system".

______________________________________________________________
The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ
MySite
______________________________________________________________
______________________________________________________________________________________The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ"So. Any n00bs need some pointers? I have a std::vector<n00b*> right here..." - ZahlmanMySite | Forum FAQ | File Formats______________________________________________________________________________________

This topic is closed to new replies.

Advertisement