Results 1 to 6 of 6

Thread: ShutDown, Hibernate, Standby Code

  1. #1
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,723

    ShutDown, Hibernate, Standby Code

    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

  2. #2

  3. #3
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    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!

  4. #4
    FLAC PURDooM's Avatar
    Join Date
    Jun 2005
    Location
    Anoka County, MN
    Posts
    1,020
    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

  5. #5
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,723
    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

  6. #6
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by alti
    Thanks!

    thanks for the dll, Frodo!
    np
    [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!

Similar Threads

  1. Replies: 2
    Last Post: 06-17-2007, 12:03 PM
  2. Standby to Hibernate
    By Ryanmt in forum Power Supplies
    Replies: 4
    Last Post: 05-12-2005, 08:26 AM
  3. Standby or Hibernate w/ nlited windows
    By IntellaWorks in forum Power Supplies
    Replies: 1
    Last Post: 02-19-2005, 12:38 PM
  4. Standby, Shutdown or hibernate???
    By futuresweets10 in forum General Hardware Discussion
    Replies: 11
    Last Post: 10-19-2004, 07:26 AM
  5. Hibernate and standby grayed out?!?
    By kefka_killer in forum General MP3Car Discussion
    Replies: 12
    Last Post: 08-19-2004, 09:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •