Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.19 KB

WSACreateEvent.md

File metadata and controls

46 lines (30 loc) · 1.19 KB

Home

Function name : WSACreateEvent

Group: Windows Sockets 2 (Winsock) - Library: ws2_32


The WSACreateEvent function creates a new event object.


Code examples:

Winsock: sending email messages (SMTP, port 25)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Winsock: reading email messages (POP3, port 110)
Winsock: connecting to a news server (NNTP, port 119)

Declaration:

WSAEVENT WSACreateEvent(void);  

FoxPro declaration:

DECLARE INTEGER WSACreateEvent IN ws2_32  

Parameters:

This function has no parameters.


Return value:

If no error occurs, WSACreateEvent returns the handle of the event object. Otherwise, the return value is WSA_INVALID_EVENT.


Comments:

The scope of an event object is limited to the process in which it is created.