>Isn't WaitForSingleObject() in effect a polling call?
It puts your thread to sleep, until it gets woken up by the handleyou're waiting on being set to a signalled state.
--Steve Tibbettstibbett(at)zim(dot)biz