ResetEvent

  BOOL ResetEvent(hEvent)    
  HANDLE hEvent; /* identifies the event to reset */

The ResetEvent function sets the specified event to the not-signaled state.

Parameters

hEvent

Specifies an open handle to an event object. The handle must have EVENT_MODIFY_STATE access to the event.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.

Comment

Once the event is set to the not-signaled state, any threads that wait on the event block and wait for the event to be set to the signaled state.

See Also

CreateEvent, PulseEvent, SetEvent