Added ResetEvent function

My project needs the ResetEvent API, so it's a small change, but would be nice to have included upstream.