|
WSAResetEvent resets the state of the specified event object to non signaled.
Syntax
BOOL WSAResetEvent(
__in WSAEVENT hEvent
);
Parameters
hEvent
An open event object handle.
Return Values
A handle to the event object if the function succeeds, NULL if the function fails
To get extended error information, call WSAGetLastError
Remarks
The state of an event object remains non-signaled until it is explicitly set to signaled by the WSASetEvent function. The non-signaled state blocks the execution of any threads that have specified the event object in a call to a wait function.
The WSAResetEvent function is used primarily for manual-reset event objects, which must be set explicitly to the non-signaled state. Auto-reset event objects automatically change from signaled to non-signaled after a single waiting thread is released.
Requirements
Library | Rtxtcpip.lib |