Hibernation and standby

Newbie Member
25Nov2007,14:19   #1
adityavit's Avatar
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.
~ Б0ЯИ Τ0 С0δЭ ~
8May2009,19:25   #2
SaswatPadhi's Avatar
[[ 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")