This function clears the event queue. Any events that have not been returned in a call to WaitEvent will be discarded.
Your application should call this function periodically if it does not process events.