Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009
// in a thread while(1) { if (WaitForSingleObject(hDogEvent, 20000) != WAIT_OBJECT_0) { //RESET UNIT } ResetEvent(hDogEvent); }