none
How to prevent STANDBY and RESUME ? RRS feed

  • Question

  • Vista has new feature in Power Management.

    I want to prevent STANDBY and RESUME from app.

    But WM_POWERBROADCAST message with  PBT_APMQUERYSUSPEND and  PBT_APMQUERYSTANDBY were not sent.

    I've read "Integrating-with-WindowsPowerMgmt.ppt".

    There are some explanation about the feature.

    Calling SetThreadExecutionState() does not work.

    Calling RegisterPowerSettingNotification() does not work.

    Does anyone know how to prevent Standby and Resume ?

     Vista is build 5600.

     

     

    Tuesday, October 3, 2006 1:57 PM

All replies

  • it seems that vista rc1 will not send out the PBT_APMQUERYSUSPEND or PBT_APMQUERYSTAND when system is going to sleep.

    But it dose send out the msgs in vista 5456.

    anybody in MS who can give an explaination?

    thanks a lot.

    Thursday, October 5, 2006 8:20 AM
  • I've been asking same question to my friends.

    But everyone say same thing.  Vista does not send the message.

    There is no way to prevent it.

    Friday, October 6, 2006 3:02 PM