Re: powrprof.dll,SetSuspendState 0,1,0 caused hibernation

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



THAT"S WHERE I GOT MY INFO FROM. IT SAYS:

SetSuspendState Function

Suspends the system by shutting power down. Depending on the Hibernate
parameter, the system either enters a suspend (sleep) state or hibernation
(S4).

BOOLEAN WINAPI SetSuspendState(
__in BOOLEAN Hibernate,
__in BOOLEAN ForceCritical,
__in BOOLEAN DisableWakeEvent
);
Parameters
Hibernate

If this parameter is TRUE, the system hibernates. If the parameter is
FALSE, the system is suspended.

CHECK THE ABOVE.



THANKS



BTW - NOTICE BELOW - "THE PARAMETER HAS NO EFFECT" BUT IT THEN GOES ON TO
TELL THE EFFECT. AM I MISSING SOMETHING?

ForceCritical
This parameter has no effect.

Windows Server 2003, Windows XP, and Windows 2000: If this parameter is
TRUE, the system suspends operation immediately; if it is FALSE, the system
broadcasts a PBT_APMQUERYSUSPEND event to each application to request
permission to suspend operation.
DisableWakeEvent
If this parameter is TRUE, the system disables all wake events. If the
parameter is FALSE, any system wake events remain enabled.





"3c273" <nospam@xxxxxxxxxx> wrote in message
news:fpkhde01t7v@xxxxxxxxxxxxxxxxxxxxx
I believe they are talking about the setting on the Hibernate tab of the
Power control panel app. If the box on that tab is checked, hibernate is
true, unchecked is false. If you uncheck the box and issue that command,
your computer will suspend instead of hibernate. You might have a look
around here.
http://msdn2.microsoft.com/en-us/library/aa373201.aspx
Louis

"Academia" <academiaNOSPAM@xxxxxxxxxx> wrote in message
news:Om929NLdIHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

causes my system to hibernate.

If the first parameter is False it is suppose to cause the system to
suspend
(sleep)

Maybe 0 is not the same a False?

Do you know what is going on?



Thanks






.



Relevant Pages

  • Re: [Bugme-new] [Bug 11717] New: Pressing suspend button suspends, but does not wakes up
    ... with Ubuntu's 2.6.27 kernel, I can't hibernate my laptop, but with ... - pressing the suspend button suspends the machine, ... that notebook. ...
    (Linux-Kernel)
  • Re: Is my old RedHat computer doomed?
    ... matter whether I set the AC lid closed action to Suspend or Hibernate ... "Hibernate" suspends to disk - i.e., it writes the contents of the RAM to the swap partition and then shuts down. ... Suspend is much faster, both shutting down and starting up again, but it uses power while it's suspended. ...
    (uk.comp.os.linux)
  • Re: suspend / hibernate
    ... stop the initial system load when coming out of suspend / hibernate. ... 'uswsusp' for suspend / hibernate with the same result, high system ...
    (Debian-User)
  • Re: suspend / hibernate
    ... very high system load. ... Slight thread hijack but the problem I have is that hibernate works ... and I am able to recover on restart but suspend shuts down but does ... On HP-TX1000 laptop right now the kernel is 2.6.24-19-generic on ...
    (Debian-User)
  • Re: PC Hibernate
    ... var Handled: Boolean); ... And it still doesnt go to hibernate. ... Eric Hill wrote: ...
    (borland.public.delphi.nativeapi)