Activity Timer Resets (Windows Embedded CE 6.0)
1/6/2010
Power Manager can be set to monitor that applications are actively using sockets, rather than monitoring only whether sockets are connected. The networking stack does not directly support this action. However, you can create a thread that periodically polls the GetTcpStatistics and GetUdpStatistics functions to check whether TCP segments or User Datagram Protocol (UDP) datagrams are being transmitted or received. If datagrams are being transmitted or received, the thread can reset an activity timer. Your thread can be implemented as an installable device driver as part of Power Manager, or as part of an application.
Note
GetTcpStatistics and GetUdpStatistics can return data for loopback communication if local applications use sockets for interprocess communications (IPC).