Best Practice for developing applications considering power management Sleep / Resume

Mar 22, 2010 at 9:40 PM

Hi All,

I would like to know what Microsoft recommendation regarding developing applications that considered power management scenarios such as entering into Sleep(S3, Standby) and Resume from this mode.

For example:

Lets assume we have an application like Outlook that reserve a TCP connection to an exchange server and periodically asks for mails,
How the application should behave when receiving a Sleep event ?
How the application should behave when receiving a Resume event ?

Possible behaviors:
-- The application might close the connection when receiving a sleep event, and open a new connection when resuming.

-- The application might leave the connection as is when going into sleep mode, and when resuming try to see if the connection is still available
    if it is not available open a new connection

I Appreciate any suggestions .....

Thanks Liron

Mar 25, 2010 at 10:27 AM
Edited Mar 25, 2010 at 10:29 AM

*EDIT* I Posted In Wrong forum. *EDIT*