5 pts.
 Turn off computer by a VB6 program
How can I turn off my computer by a VB6 program?

Software/Hardware used:
ASKED: July 9, 2008  6:25 PM
UPDATED: July 11, 2008  5:21 PM

Answer Wiki:
If you are programing to get any windows xp or above machine to power off or standby there is already a tool included with the oeprating system that you can call. its called shutdown.exe and it does just that run it with the argument -i and it displays its gui (shutdown -i) try it and see if it fits your needs.
Last Wiki Answer Submitted:  July 11, 2008  5:21 pm  by  Flame   14,895 pts.
All Answer Wiki Contributors:  Flame   14,895 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You can also use this to enter stand-by or, if you have enabled hibernation, to make your computer hibernate with a single mouse click:

%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState

 1,410 pts.

 

Didn’t know about this one…
Thanks!

 14,895 pts.