Platform SDK: Windows Sockets |
The WPUSetEvent 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 );
If no error occurs, the WPUSetEvent function returns the value TRUE. Otherwise, FALSE is returned, and a specific error code is available in lpErrno.
Error code | Meaning |
---|---|
ERROR_INVALID_HANDLE | The hEvent is not a valid event object handle. |
Version: Requires Windows Sockets 2.0.
Header: Declared in Ws2spi.h.