none
Is it possible to increase two seconds timeout for application after sleep mode activated? RRS feed

  • Question

  • I have one specific requirement for my application to keep alive for more than 2 seconds to acheive cleanup at hardware level by writing/reading registers using custom usb device driver.

    All are working fine till desktop/laptop is alive but whenever I put it in explicit sleep or as per power plan setting and than resume again... application is goes stuck. that is due to hardware device which is not go into sleep along with host PC.

    so what i wanna do is whenever I receive PBT_APMSUSPEND I would need atleast 10 seconds to complete my cleanup operation on hardware.

    how can i achieve that?

    This page is not provide that information which i required 

    https://docs.microsoft.com/en-us/windows/desktop/power/system-sleep-criteria


    BhoomilC

    Thursday, June 6, 2019 9:33 AM