The Windows Sockets WSAResetEvent function resets the state of the specified event object to nonsignaled.
BOOL WSAResetEvent(
WSAEVENT hEvent
);
The WSAResetEvent function is used to set the state of the event object to nonsignaled.
If the WSAResetEvent function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call WSAGetLastError.
WSANOTINITIALISED | A successful WSAStartup must occur before using this function. |
WSAENETDOWN | The network subsystem has failed. |
WSAEINPROGRESS | A blocking Windows Sockets 1.1 call is in progress, or the service provider is still processing a callback function. |
WSA_INVALID_HANDLE | The hEvent parameter is not a valid event object handle. |
Windows NT: Yes
Windows: Yes
Windows CE: Unsupported.
Header: Declared in winsock2.h.
Import Library: Link with ws2_32.lib.
WSACloseEvent, WSACreateEvent, WSASetEvent