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

A

Academia

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
 
3

3c273

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
 
A

Academia

I want to have a short cut to suspend and one to hibernate.
The documentation sounds like the first parameter should control which
happens.

thanks
 
A

Academia

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.
 
D

db ´¯`·.. >

to create a hibernation
button/shortcut on the
desktop,

then paste this
in the location field
provided:

%windir%\system32\rundll32.exe PowrProf.dll, SetSuspendState m2



--

db·´¯`·...¸><)))º>
DatabaseBen, Retired Professional
- Systems Analyst
- Database Developer
- Accountancy
- Veteran of the Armed Forces
- @hotmail.com
"share the nirvana" - dbZen

~~~~~~~~~~~~~~~~~~
 
M

MowGreen

undisclosed said:
Thx,

It worked for me, but partially.:confused:

%windir%\system32\rundll32.exe PowrProf.dll, SetSuspendState m2
or
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

trigger the hibernation process as hibermation proceeds;

But it does not stop their, my machine restarts (resumes from
hibernation, within seconds), unless I switch-off the power as soon as
hibernation completes.


The same is the case, when thru the Power Config UI, I chose the
hibernation option, when I press the power switch on my desktop.

any clues, to overcome that?

I am using windows XP, SP3

thx
jeevan


Why are you replying to ancient threads with *no context* ?

Nevermind. Just go away and stay in your playpen, tyvm.

117.195.38.157
vBulletin USENET gateway
clamps.tigertech.net 64.62.209.26



MowGreen
================
*-343-* FDNY
Never Forgotten
================

banthecheck.com
"Security updates should *never* have *non-security content* prechecked
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top