Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   Hibernation and standby (http://www.go4expert.com/forums/hibernation-and-standby-t7526/)

adityavit 25Nov2007 14:19

Hibernation and standby
can anyone suggest me a method or technique in visual basic with which we can hibernate the system or put the system on stand by.

SaswatPadhi 8May2009 19:25

Re: Hibernation and standby
[[ Very late reply, but this might help others :smile: ]]
You can use Shell :wink:

(1) To Standby :
Code: vb

Shell("%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState")

(2) To Hibernate :
Code: vb

Shell("%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate")

All times are GMT +5.5. The time now is 01:28.