IRP_MN_SET_POWER and the Ex callback related to power notifications are
called on critical shutdown. the only thing from the driver's persepctive
is that you do not receive IRP_MN_QUERY_POWER(SystemPowerState)
d
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Alexander Grigoriev" <> wrote in message
news:#...
> The driver needs to do that instead, upon receiving SET_POWER IRP. I can't
> believe the driver doesn't get it.
>
> "leafbanana" <> wrote in message
> news:2b21f2a3-04c5-4409-a3f2-...
>> I'm developing a driver under Windows XP. I always have a pending IRP
>> and need to cancel it when system is entering suspension (either
>> standby or hibernate). It works well in normal scenarios, except when
>> battery lifetime falls to the critical level in percent. In this case,
>> the driver doesn't receive a IRP_MN_QUERY_POWER or IRP_MN_SET_POWER,
>> and my background monitor application doesn't receive
>> WM_POWERBROADCAST.
>>
>> Is there any way to find out the critical battery level in percent,
>> either from driver or application? If so, it will help me to decide
>> when the system will suspend. Or is there any other way to solve this
>> problem?
>>
>> Thanks in advance.
>
>
|