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
Simple program
Simple program
Apr 15, 2011 at 2:38am UTC
carl7145
(3)
Does anyone out there know how i could make a general shutdown/hibernate/sleep etc. program to shutdown or put my computer to sleep when i want.
I am running windows 7
Thanks
Carl7145
Apr 15, 2011 at 2:40am UTC
ultifinitus
(1446)
I feel like getting yelled at.
system(
"shutdown -f -s -t 00"
);
Apr 15, 2011 at 2:41am UTC
carl7145
(3)
ok would this work if i said
system("hybernate -f -s -t 00" );
or not?
Apr 15, 2011 at 2:44am UTC
ultifinitus
(1446)
answer : no.
Apr 15, 2011 at 2:53am UTC
tejashs
(78)
go to command prompt and type
C:\...\> help shutdown
Apr 15, 2011 at 3:00am UTC
ultifinitus
(1446)
PwrProf library has setsuspendstate
http://msdn.microsoft.com/en-us/library/aa373201%28v=vs.85%29.aspx
Topic archived. No new replies allowed.