WSASetEvent function
The WSASetEvent function sets the state of the specified event object to signaled.
Syntax
BOOL WSASetEvent( _In_ WSAEVENT hEvent );
Parameters
- hEvent [in]
-
Handle that identifies an open event object.
Return value
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. To get extended error information, call WSAGetLastError.
| Error code | Meaning |
|---|---|
|
A successful WSAStartup call must occur before using this function. | |
|
The network subsystem has failed. | |
|
A blocking Windows Sockets 1.1 call is in progress, or the service provider is still processing a callback function. | |
|
The hEvent parameter is not a valid event object handle. |
Remarks
The WSASetEvent function sets the state of the event object to be signaled.
Windows Phone 8: This API is supported.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/29/2012