Hibernation and standby

adityavit's Avatar, Join Date: Nov 2007
Newbie Member
hello,
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.
thanx.
SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
[[ Very late reply, but this might help others ]]
You can use Shell

(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")