G
Georges Berenger
For my device, I need to detect that the power button has been pressed,
a problem discussed many times...
I have a message filter that properly intercepts
WM_POWERBROADCAST/PBT_APMQUERYSUSPEND when the power button is pressed,
and I can take the appropriate action (ask the user for a confirmation).
Before installing Q833642, life was good.
Since I applied the hotfix Q833642, I still get the message, but then,
no matter what I do, my system powers down after a few seconds. My apps
aren't quit, the system is simply powered off. In response to the
WM_POWERBROADCAST/PBT_APMQUERYSUSPEND message, I properly return
BROADCAST_QUERY_DENY which should cancel the system's shutdown, but
obviously, that doesn't work.
An obvious short-term solution is to remove the hotfix, which I had
installed in the hope that an other problem would be solved (the monitor
going off after a while), no matter what power saving policy had been set.
Is there something else I could try to prevent the system from powering
down?
Maybe someone at MS can make sure that SP2's Minlogon will behave
properly there, since we will then be unable to select what old-patches
are installed (I am assuming that Q833642 will be built-in SP2, hence my
worry...).
Thanks,
-georges
a problem discussed many times...
I have a message filter that properly intercepts
WM_POWERBROADCAST/PBT_APMQUERYSUSPEND when the power button is pressed,
and I can take the appropriate action (ask the user for a confirmation).
Before installing Q833642, life was good.
Since I applied the hotfix Q833642, I still get the message, but then,
no matter what I do, my system powers down after a few seconds. My apps
aren't quit, the system is simply powered off. In response to the
WM_POWERBROADCAST/PBT_APMQUERYSUSPEND message, I properly return
BROADCAST_QUERY_DENY which should cancel the system's shutdown, but
obviously, that doesn't work.
An obvious short-term solution is to remove the hotfix, which I had
installed in the hope that an other problem would be solved (the monitor
going off after a while), no matter what power saving policy had been set.
Is there something else I could try to prevent the system from powering
down?
Maybe someone at MS can make sure that SP2's Minlogon will behave
properly there, since we will then be unable to select what old-patches
are installed (I am assuming that Q833642 will be built-in SP2, hence my
worry...).
Thanks,
-georges