Hibernation and standby

Discussion in 'Visual Basic ( VB )' started by adityavit, Nov 25, 2007.

  1. adityavit

    adityavit New Member

    Joined:
    Nov 25, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,342
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    http://www.crackingforfun.blogspot.com
    [[ Very late reply, but this might help others :smile: ]]
    You can use Shell :wink:

    (1) To Standby :
    Code:
    Shell("%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState")
    (2) To Hibernate :
    Code:
    Shell("%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate")
     
    shabbir likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice