Jump to content

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


Recommended Posts

Guest Academia
Posted

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

  • Replies 4
  • Created
  • Last Reply

Popular Days

Posted

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

 

Go into power settings and "Disable" hibernation, then try it again.

 

Academia wrote:

> 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

>

>

Posted

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

 

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@a-znet.com> wrote in message

news:Om929NLdIHA.1168@TK2MSFTNGP02.phx.gbl...

> 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

>

>

Guest Academia
Posted

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

 

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

 

 

 

"Bob I" <birelan@yahoo.com> wrote in message

news:uJj3ieLdIHA.4936@TK2MSFTNGP03.phx.gbl...

> Go into power settings and "Disable" hibernation, then try it again.

>

> Academia wrote:

>

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

>

Guest Academia
Posted

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

 

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@nospam.com> wrote in message

news:fpkhde01t7v@enews2.newsguy.com...

>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@a-znet.com> wrote in message

> news:Om929NLdIHA.1168@TK2MSFTNGP02.phx.gbl...

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

>>

>>

>

>


×
×
  • Create New...