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.
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 ?
-- 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 .....