WPUSetEvent

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      
);
 

Parameters

hEvent
[in] A hande that identifies an open event object.
lpErrno
[out] A pointer to the error code.

Return Values

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

Error Codes

ERROR_INVALID_HANDLE hEvent is not a valid event object handle.

QuickInfo

  Windows NT: Yes
  Windows: Yes
  Windows CE: Unsupported.
  Header: Declared in ws2spi.h.

See Also

WPUCreateEvent, WPUResetEvent, WPUCloseEvent