PsShutdown also supports standby and hibernate.
Hoping someone can point me in the right direction with this, I have nearly completed an app and I cant for the life of me find the answer to this question.
I want to have the ability to shutdown, restart, hibernate, standby from my app as is done in Frodo, cf, rr, ect.
I know shutdown.exe can handle shutdown and restart but not standby and hibernate.
What i am coding is in vb but any examples in other languages are fine.
Thanks,
Brian
My Install
Software:
CFiG v1
iGuidance Plugin for CF
CarShell
Working shell for a CarPC
StopWatch
StopWatch plugin remade for centrafuse RC1
PsShutdown also supports standby and hibernate.
Here ya go.
PowerControl.zip
Code:PowerControl.dll (ActiveX DLL) ©2005 FrodoPlayer.com ©2005 Kevin Lincecum License: Unlimited
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
In VB use this command to invoke hibernation:
Shell "rundll32.exe powrprof.dll,SetSuspendState"
Current projects: iGmod reloaded (Latest release) (put on hiatus indefinatly)
Unlimited Internet and gps tracking for $6 a month with boost mobile!
Carputer 2: www.lmaocar.com
Thanks!
thanks for the dll, Frodo!
My Install
Software:
CFiG v1
iGuidance Plugin for CF
CarShell
Working shell for a CarPC
StopWatch
StopWatch plugin remade for centrafuse RC1
npOriginally Posted by alti
![]()
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
Bookmarks