none
Sleep Mode Detection on Surface Pro Device in Modern Standby RRS feed

  • Question

  • Hi,

        I'm working on sample application to detect when system goes to sleep.

    I'm using the WM_POWERBROADCAST message and PBT_APMSUSPEND value.  This perfectly works on my laptop and desktop system. But when I run the same on Surface Pro Device, I'm not able to catch the same message.  Basically I'm reading all the message sent to WinProc, I don't see any messages sent just before the system goes to sleep.  I'm using disconnect standby mode. 

    Is it a issue with Surface Pro or it is handled in different way? May I know other ways of handling this Powerstate change?


     


    • Edited by Sowrab Friday, February 23, 2018 5:29 AM
    Wednesday, February 21, 2018 12:42 PM