Number of surface Lock/Unlocks must NOT match, so do NOT use it for
[wine.git] / include / winsock2.h
blobc38211034d8d2f214061dffc74638e1d81229a6a
1 /*
2 * Winsock 2 definitions
4 * FIXME!!!!
5 */
7 #ifndef __WINSOCK2API__
8 #define __WINSOCK2API__
10 #include "winsock.h"
12 #define FD_MAX_EVENTS 10
14 #define FD_READ_BIT 0
15 #define FD_WRITE_BIT 1
16 #define FD_OOB_BIT 2
17 #define FD_ACCEPT_BIT 3
18 #define FD_CONNECT_BIT 4
19 #define FD_CLOSE_BIT 5
21 typedef struct _WSANETWORKEVENTS {
22 long lNetworkEvents;
23 int iErrorCode[FD_MAX_EVENTS];
24 } WSANETWORKEVENTS, *LPWSANETWORKEVENTS;
26 typedef HANDLE WSAEVENT;
28 #define WSACreateEvent() CreateEvent(NULL, TRUE, FALSE, NULL)
29 /* etc */
31 int WINAPI WSAEnumNetworkEvents(SOCKET s, WSAEVENT hEventObject, LPWSANETWORKEVENTS lpNetworkEvents);
32 int WINAPI WSAEventSelect(SOCKET s, WSAEVENT hEventObject, long lNetworkEvents);
34 #endif