Hi all,

if I faile a IRP_MN_QUERY_POWER request (device or system) by completing the
IRP with STATUS_UNSUCCESSFUL I expect that the system does not enter the
requested sleep state. This was true for Windows 2000/XP. On Vista this error
code is ignored and the system enters S3 or S4 without any request or
warning.

Is this a bug or a new system behavior? The bahavior is different than
discribed in the WDK documentation.

Thanks Guenter

Re: Vista IRP_MN_QUERY_POWER by Eliyas

Eliyas
Fri Dec 22 10:57:07 CST 2006

This is a new system behavior. You cannot prevent the system from going
into a low power state by failing IRP_MN_QUERY_POWER request. I will make
sure the doc gets updated to reflect the new behavior.

-Eliyas

"Guenter" <Guenter@discussions.microsoft.com> wrote in message
news:40DD1C79-4FB3-43E8-BCAA-19B0044A77AD@microsoft.com...
> Hi all,
>
> if I faile a IRP_MN_QUERY_POWER request (device or system) by completing
> the
> IRP with STATUS_UNSUCCESSFUL I expect that the system does not enter the
> requested sleep state. This was true for Windows 2000/XP. On Vista this
> error
> code is ignored and the system enters S3 or S4 without any request or
> warning.
>
> Is this a bug or a new system behavior? The bahavior is different than
> discribed in the WDK documentation.
>
> Thanks Guenter
>



Re: Vista IRP_MN_QUERY_POWER by Maxim

Maxim
Fri Dec 22 13:11:08 CST 2006

So, IRP_MN_QUERY_POWER is now useless and obsolete, correct?

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Eliyas Yakub [MSFT]" <eliyasy@online.discussion.microsoft.com> wrote in
message news:u3mmqoeJHHA.3424@TK2MSFTNGP02.phx.gbl...
> This is a new system behavior. You cannot prevent the system from going
> into a low power state by failing IRP_MN_QUERY_POWER request. I will make
> sure the doc gets updated to reflect the new behavior.
>
> -Eliyas
>
> "Guenter" <Guenter@discussions.microsoft.com> wrote in message
> news:40DD1C79-4FB3-43E8-BCAA-19B0044A77AD@microsoft.com...
> > Hi all,
> >
> > if I faile a IRP_MN_QUERY_POWER request (device or system) by completing
> > the
> > IRP with STATUS_UNSUCCESSFUL I expect that the system does not enter the
> > requested sleep state. This was true for Windows 2000/XP. On Vista this
> > error
> > code is ignored and the system enters S3 or S4 without any request or
> > warning.
> >
> > Is this a bug or a new system behavior? The bahavior is different than
> > discribed in the WDK documentation.
> >
> > Thanks Guenter
> >
>
>


Re: Vista IRP_MN_QUERY_POWER by Eliyas

Eliyas
Fri Dec 22 13:36:00 CST 2006

No it's not completely useless. If you fail the query-power for a particular
sleep state, the system will try to go to next lighter sleep state
(S3->S2-S1) and will pick the one that's not vetoed by anyone. If they all
get vetoed out then system will pick S3 and power-down anyway by sending
set-power request.

-Eliyas



Re: Vista IRP_MN_QUERY_POWER by Doron

Doron
Fri Dec 22 19:47:52 CST 2006

also note this is note entirely new behavior. for instance if the machine is
low on battery, it can send the query, ignore it, and then set in previous
version of the os.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Eliyas Yakub [MSFT]" <eliyasy@online.discussion.microsoft.com> wrote in
message news:ORNVcBgJHHA.1248@TK2MSFTNGP02.phx.gbl...
> No it's not completely useless. If you fail the query-power for a
> particular sleep state, the system will try to go to next lighter sleep
> state (S3->S2-S1) and will pick the one that's not vetoed by anyone. If
> they all get vetoed out then system will pick S3 and power-down anyway by
> sending set-power request.
>
> -Eliyas
>