TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows XP

Does rundll32.exe supplies missing parameters??

Windows XP

 
 
Thread Tools Display Modes
Unread 22-02-2008, 06:28 AM   #1
Academia
Guest
 
Posts: n/a
Does rundll32.exe supplies missing parameters??

If this statement appears alone in a .bat file it causes hibernation
rundll32.exe powrprof.dll,SetSuspendState Hibernate

SetSuspendState takes 3 parameters.
What does the above statement supply as parameters?

Why does "Hibernate" have a value?



Thanks





 
Unread 22-02-2008, 06:34 AM   #2
Newbie Coder
Guest
 
Posts: n/a
Re: Does rundll32.exe supplies missing parameters??

Academia,

The statement you wrote about is the following:

run the powrprof.dll calling the SetSuspendState function passing the Hibernate as a
boolean parameter

See:

http://msdn2.microsoft.com/en-us/library/aa373201.aspx

The function declaration is in C++ but the boolean are either TRUE or FALSE

As you see the function declaration is in PowrProf.h header

Simple, isn't it?

--
Newbie Coder
(It's just a name)




"Academia" <academiaNOSPAM@a-znet.com> wrote in message
news:Ow99xTLdIHA.1208@TK2MSFTNGP03.phx.gbl...
> If this statement appears alone in a .bat file it causes hibernation
> rundll32.exe powrprof.dll,SetSuspendState Hibernate
>
> SetSuspendState takes 3 parameters.
> What does the above statement supply as parameters?
>
> Why does "Hibernate" have a value?
>
>
>
> Thanks
>
>
>
>
>


 
Unread 22-02-2008, 06:36 AM   #3
Academia
Guest
 
Posts: n/a
Re: Does rundll32.exe supplies missing parameters??

My question relates more to what a .bat file does.
Or maybe it is what rundll32.exe does.

I've seen the declaration of SetSuspendState and it requires 3 parameters.

But the example I gave supplies one parameter, Hibernate, which isn't set to
anything.
I imagine it is initialized to zero which is false to SetSuspendState.

But when rundll32 calls SetSuspendState it needs to supply 3 parameters and
I've only told it that there is 1 parameter.

If SetSuspendState is called with 1 parameter I wonder if it will grab junk
from the stack for the other two.


Thanks

"Newbie Coder" <newbiecoder@spammeplease.com> wrote in message
news:OlZzghMdIHA.1208@TK2MSFTNGP03.phx.gbl...
> Academia,
>
> The statement you wrote about is the following:
>
> run the powrprof.dll calling the SetSuspendState function passing the
> Hibernate as a
> boolean parameter
>
> See:
>
> http://msdn2.microsoft.com/en-us/library/aa373201.aspx
>
> The function declaration is in C++ but the boolean are either TRUE or
> FALSE
>
> As you see the function declaration is in PowrProf.h header
>
> Simple, isn't it?
>
> --
> Newbie Coder
> (It's just a name)
>
>
>
>
> "Academia" <academiaNOSPAM@a-znet.com> wrote in message
> news:Ow99xTLdIHA.1208@TK2MSFTNGP03.phx.gbl...
>> If this statement appears alone in a .bat file it causes hibernation
>> rundll32.exe powrprof.dll,SetSuspendState Hibernate
>>
>> SetSuspendState takes 3 parameters.
>> What does the above statement supply as parameters?
>>
>> Why does "Hibernate" have a value?
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>>

>



 
 

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 08:17 AM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional