Switched WinInet to use the direct function calls (same as wptdriver) and added a heartbeat to the work processing so the agent can get force restarted when it stops processing work.