Platform SDK: Windows Sockets

WPUResetEvent

The WPUResetEvent function resets the state of the specified event object to nonsignaled. In Win16 environments, this call is safe for use within interrupt context.

BOOL WPUResetEvent(
  WSAEVENT    hEvent,   
  LPINT       lpErrno      
);

Parameters

hEvent
[in] Handle that identifies an open event object.
lpErrno
[out] Pointer to the error code.

Return Values

If no error occurs, the WPUResetEvent function returns the value TRUE. Otherwise, FALSE is returned, and a specific error code is available in lpErrno.

Error Codes

Error code Meaning
WSA_INVALID_HANDLE The hEvent is not a valid event object handle.

Requirements

  Version: Requires Windows Sockets 2.0.
  Header: Declared in Ws2spi.h.

See Also

WPUCreateEvent, WPUSetEvent, WPUCloseEvent