This function sets the state of the specified event object to signaled. In Win16 environments, this call is safe for use within interrupt context.
BOOL WPUSetEvent(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, this function returns the value TRUE. Otherwise, FALSE is returned, and a specific error code is available in lpErrno.
The following table shows the possible error code.
Error value | Description |
---|---|
ERROR_INVALID_HANDLE | The hEvent is not a valid event object handle. |
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Ws2spi.h.
Link Library: Ws2.lib.
See Also
WPUCreateEvent | WPUResetEvent | WPUCloseEvent
Send Feedback on this topic to the authors