The ResetEvent function sets the state of the specified event object to nonsignaled.
BOOL ResetEvent(
HANDLE hEvent // handle to event object
);
Windows NT: The handle must have EVENT_MODIFY_STATE access.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The state of an event object remains nonsignaled until it is explicitly set to signaled by the SetEvent or PulseEvent function. This nonsignaled state blocks the execution of any threads that have specified the event object in a call to one of the wait functions.
The ResetEvent function is used primarily for manual-reset event objects, which must be set explicitly to the nonsignaled state. Auto-reset event objects automatically change from signaled to nonsignaled after a single waiting thread is released.
Windows CE: Windows CE does not support waiting for processes or threads.
ResetEvent returns FALSE if the handle to the event object is invalid.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Synchronization Overview, Synchronization Functions, CreateEvent, OpenEvent, PulseEvent, SetEvent