2 * Winsock 2 definitions - used for ws2_32.dll
4 * Copyright (C) 1999 Ove Kaaven
5 * Copyright (C) 2001 Francois Gouget
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 * FIXME: Still missing required Winsock 2 definitions.
31 /* Everything common between winsock.h and winsock2.h */
32 #ifndef INCL_WINSOCK_API_PROTOTYPES
33 #define INCL_WINSOCK_API_PROTOTYPES 1
34 #define WS_API_PROTOTYPES 1
36 #define WS_API_PROTOTYPES INCL_WINSOCK_API_PROTOTYPES
39 #ifndef INCL_WINSOCK_API_TYPEDEFS
40 #define INCL_WINSOCK_API_TYPEDEFS 0
41 #define WS_API_TYPEDEFS 0
43 #define WS_API_TYPEDEFS INCL_WINSOCK_API_TYPEDEFS
46 #define __WINE_WINSOCK2__
48 #undef __WINE_WINSOCK2__
54 #endif /* defined(__cplusplus) */
58 #define SO_GROUP_ID 0x2001
59 #define SO_GROUP_PRIORITY 0x2002
60 #define SO_MAX_MSG_SIZE 0x2003
61 #define SO_PROTOCOL_INFOA 0x2004
62 #define SO_PROTOCOL_INFOW 0x2005
63 #define SO_PROTOCOL_INFO WINELIB_NAME_AW(WS_SO_PROTOCOL_INFO)
64 #define PVD_CONFIG 0x3001
65 #define SO_CONDITIONAL_ACCEPT 0x3002
67 #define WS_SO_GROUP_ID 0x2001
68 #define WS_SO_GROUP_PRIORITY 0x2002
69 #define WS_SO_MAX_MSG_SIZE 0x2003
70 #define WS_SO_PROTOCOL_INFOA 0x2004
71 #define WS_SO_PROTOCOL_INFOW 0x2005
72 #define WS_SO_PROTOCOL_INFO WINELIB_NAME_AW(WS_SO_PROTOCOL_INFO)
73 #define WS_PVD_CONFIG 0x3001
74 #define WS_SO_CONDITIONAL_ACCEPT 0x3002
79 #define FROM_PROTOCOL_INFO (-1)
86 #define SOCK_SEQPACKET 5
87 #else /* USE_WS_PREFIX */
88 #define WS_SOCK_STREAM 1
89 #define WS_SOCK_DGRAM 2
92 #define WS_SOCK_SEQPACKET 5
93 #endif /* USE_WS_PREFIX */
95 /* option flags per socket */
97 #define FD_MAX_EVENTS 10
99 #define FD_WRITE_BIT 1
101 #define FD_ACCEPT_BIT 3
102 #define FD_CONNECT_BIT 4
103 #define FD_CLOSE_BIT 5
105 /* Constants for LPCONDITIONPROC */
106 #define CF_ACCEPT 0x0000
107 #define CF_REJECT 0x0001
108 #define CF_DEFER 0x0002
110 /* Constants for shutdown() */
111 #define SD_RECEIVE 0x00
115 /* Constants for WSAPoll() */
116 #ifndef __WINE_WINE_PORT_H
117 #ifndef USE_WS_PREFIX
118 #define POLLERR 0x0001
119 #define POLLHUP 0x0002
120 #define POLLNVAL 0x0004
121 #define POLLWRNORM 0x0010
122 #define POLLWRBAND 0x0020
123 #define POLLRDNORM 0x0100
124 #define POLLRDBAND 0x0200
125 #define POLLPRI 0x0400
126 #define POLLIN (POLLRDNORM|POLLRDBAND)
127 #define POLLOUT (POLLWRNORM)
129 #define WS_POLLERR 0x0001
130 #define WS_POLLHUP 0x0002
131 #define WS_POLLNVAL 0x0004
132 #define WS_POLLWRNORM 0x0010
133 #define WS_POLLWRBAND 0x0020
134 #define WS_POLLRDNORM 0x0100
135 #define WS_POLLRDBAND 0x0200
136 #define WS_POLLPRI 0x0400
137 #define WS_POLLIN (WS_POLLRDNORM|WS_POLLRDBAND)
138 #define WS_POLLOUT (WS_POLLWRNORM)
142 /* Constants for WSAIoctl() */
144 #define WS_IOC_UNIX 0x00000000
145 #define WS_IOC_WS2 0x08000000
146 #define WS_IOC_PROTOCOL 0x10000000
147 #define WS_IOC_VENDOR 0x18000000
148 #define WS_IOC_VOID 0x20000000
149 #define WS_IOC_OUT 0x40000000
150 #define WS_IOC_IN 0x80000000
151 #define WS_IOC_INOUT (WS_IOC_IN|WS_IOC_OUT)
152 #define _WSAIO(x,y) (WS_IOC_VOID|(x)|(y))
153 #define _WSAIOR(x,y) (WS_IOC_OUT|(x)|(y))
154 #define _WSAIOW(x,y) (WS_IOC_IN|(x)|(y))
155 #define _WSAIORW(x,y) (WS_IOC_INOUT|(x)|(y))
156 #define WS_SIO_ASSOCIATE_HANDLE _WSAIOW(WS_IOC_WS2,1)
157 #define WS_SIO_ENABLE_CIRCULAR_QUEUEING _WSAIO(WS_IOC_WS2,2)
158 #define WS_SIO_FIND_ROUTE _WSAIOR(WS_IOC_WS2,3)
159 #define WS_SIO_FLUSH _WSAIO(WS_IOC_WS2,4)
160 #define WS_SIO_GET_BROADCAST_ADDRESS _WSAIOR(WS_IOC_WS2,5)
161 #define WS_SIO_GET_EXTENSION_FUNCTION_POINTER _WSAIORW(WS_IOC_WS2,6)
162 #define WS_SIO_GET_QOS _WSAIORW(WS_IOC_WS2,7)
163 #define WS_SIO_GET_GROUP_QOS _WSAIORW(WS_IOC_WS2,8)
164 #define WS_SIO_MULTIPOINT_LOOPBACK _WSAIOW(WS_IOC_WS2,9)
165 #define WS_SIO_MULTICAST_SCOPE _WSAIOW(WS_IOC_WS2,10)
166 #define WS_SIO_SET_QOS _WSAIOW(WS_IOC_WS2,11)
167 #define WS_SIO_SET_GROUP_QOS _WSAIOW(WS_IOC_WS2,12)
168 #define WS_SIO_TRANSLATE_HANDLE _WSAIORW(WS_IOC_WS2,13)
169 #define WS_SIO_ROUTING_INTERFACE_QUERY _WSAIORW(WS_IOC_WS2,20)
170 #define WS_SIO_ROUTING_INTERFACE_CHANGE _WSAIOW(WS_IOC_WS2,21)
171 #define WS_SIO_ADDRESS_LIST_QUERY _WSAIOR(WS_IOC_WS2,22)
172 #define WS_SIO_ADDRESS_LIST_CHANGE _WSAIO(WS_IOC_WS2,23)
173 #define WS_SIO_QUERY_TARGET_PNP_HANDLE _WSAIOR(WS_IOC_WS2,24)
174 #define WS_SIO_GET_INTERFACE_LIST WS__IOR('t', 127, ULONG)
175 #else /* USE_WS_PREFIX */
180 #define IOC_UNIX 0x00000000
181 #define IOC_WS2 0x08000000
182 #define IOC_PROTOCOL 0x10000000
183 #define IOC_VENDOR 0x18000000
184 #define IOC_VOID 0x20000000
185 #define IOC_OUT 0x40000000
186 #define IOC_IN 0x80000000
187 #define IOC_INOUT (IOC_IN|IOC_OUT)
188 #define _WSAIO(x,y) (IOC_VOID|(x)|(y))
189 #define _WSAIOR(x,y) (IOC_OUT|(x)|(y))
190 #define _WSAIOW(x,y) (IOC_IN|(x)|(y))
191 #define _WSAIORW(x,y) (IOC_INOUT|(x)|(y))
192 #define SIO_ASSOCIATE_HANDLE _WSAIOW(IOC_WS2,1)
193 #define SIO_ENABLE_CIRCULAR_QUEUEING _WSAIO(IOC_WS2,2)
194 #define SIO_FIND_ROUTE _WSAIOR(IOC_WS2,3)
195 #define SIO_FLUSH _WSAIO(IOC_WS2,4)
196 #define SIO_GET_BROADCAST_ADDRESS _WSAIOR(IOC_WS2,5)
197 #define SIO_GET_EXTENSION_FUNCTION_POINTER _WSAIORW(IOC_WS2,6)
198 #define SIO_GET_QOS _WSAIORW(IOC_WS2,7)
199 #define SIO_GET_GROUP_QOS _WSAIORW(IOC_WS2,8)
200 #define SIO_MULTIPOINT_LOOPBACK _WSAIOW(IOC_WS2,9)
201 #define SIO_MULTICAST_SCOPE _WSAIOW(IOC_WS2,10)
202 #define SIO_SET_QOS _WSAIOW(IOC_WS2,11)
203 #define SIO_SET_GROUP_QOS _WSAIOW(IOC_WS2,12)
204 #define SIO_TRANSLATE_HANDLE _WSAIORW(IOC_WS2,13)
205 #define SIO_ROUTING_INTERFACE_QUERY _WSAIORW(IOC_WS2,20)
206 #define SIO_ROUTING_INTERFACE_CHANGE _WSAIOW(IOC_WS2,21)
207 #define SIO_ADDRESS_LIST_QUERY _WSAIOR(IOC_WS2,22)
208 #define SIO_ADDRESS_LIST_CHANGE _WSAIO(IOC_WS2,23)
209 #define SIO_QUERY_TARGET_PNP_HANDLE _WSAIOR(IOC_WS2,24)
210 #define SIO_GET_INTERFACE_LIST _IOR ('t', 127, ULONG)
211 #endif /* USE_WS_PREFIX */
213 /* Constants for WSAIoctl() */
214 #define WSA_FLAG_OVERLAPPED 0x0001
215 #define WSA_FLAG_MULTIPOINT_C_ROOT 0x0002
216 #define WSA_FLAG_MULTIPOINT_C_LEAF 0x0004
217 #define WSA_FLAG_MULTIPOINT_D_ROOT 0x0008
218 #define WSA_FLAG_MULTIPOINT_D_LEAF 0x0010
219 #define WSA_FLAG_ACCESS_SYSTEM_SECURITY 0x0040
220 #define WSA_FLAG_NO_HANDLE_INHERIT 0x0080
221 #define WSA_FLAG_REGISTERED_IO 0x0100
223 /* Constants for WSAJoinLeaf() */
224 #define JL_SENDER_ONLY 0x01
225 #define JL_RECEIVER_ONLY 0x02
228 /* Constants for WSALookupServiceBegin() */
229 #define LUP_DEEP 0x0001
230 #define LUP_RETURN_NAME 0x0010
231 #define LUP_RETURN_TYPE 0x0020
232 #define LUP_RETURN_VERSION 0x0040
233 #define LUP_RETURN_COMMENT 0x0080
234 #define LUP_RETURN_ADDR 0x0100
235 #define LUP_RETURN_BLOB 0x0200
236 #define LUP_RETURN_ALIASES 0x0400
237 #define LUP_RETURN_QUERY_STRING 0x0800
238 #define LUP_RETURN_ALL (LUP_RETURN_ADDR|LUP_RETURN_BLOB|LUP_RETURN_ALIASES|LUP_RETURN_QUERY_STRING \
239 |LUP_RETURN_NAME|LUP_RETURN_TYPE|LUP_RETURN_VERSION|LUP_RETURN_COMMENT)
241 /* Constants for dwNameSpace from struct WSANAMESPACE_INFO */
245 #define NS_PEER_BROWSE 3
248 #define NS_TCPIP_LOCAL 10
249 #define NS_TCPIP_HOSTS 11
260 #define NS_PNRPNAME 38
261 #define NS_PNRPCLOUD 39
264 #define NS_NISPLUS 42
272 #define MAX_PROTOCOL_CHAIN 7
273 #define BASE_PROTOCOL 1
274 #define LAYERED_PROTOCOL 0
276 typedef struct _WSAPROTOCOLCHAIN
278 int ChainLen
; /* the length of the chain, */
279 /* length = 0 means layered protocol, */
280 /* length = 1 means base protocol, */
281 /* length > 1 means protocol chain */
282 DWORD ChainEntries
[MAX_PROTOCOL_CHAIN
]; /* a list of dwCatalogEntryIds */
283 } WSAPROTOCOLCHAIN
, * LPWSAPROTOCOLCHAIN
;
285 /* constants used in dwProviderFlags from struct WSAPROTOCOL_INFO */
286 #define PFL_MULTIPLE_PROTO_ENTRIES 0x00000001
287 #define PFL_RECOMMENDED_PROTO_ENTRY 0x00000002
288 #define PFL_HIDDEN 0x00000004
289 #define PFL_MATCHES_PROTOCOL_ZERO 0x00000008
291 #define XP1_CONNECTIONLESS 0x00000001
292 #define XP1_GUARANTEED_DELIVERY 0x00000002
293 #define XP1_GUARANTEED_ORDER 0x00000004
294 #define XP1_MESSAGE_ORIENTED 0x00000008
295 #define XP1_PSEUDO_STREAM 0x00000010
296 #define XP1_GRACEFUL_CLOSE 0x00000020
297 #define XP1_EXPEDITED_DATA 0x00000040
298 #define XP1_CONNECT_DATA 0x00000080
299 #define XP1_DISCONNECT_DATA 0x00000100
300 #define XP1_SUPPORT_BROADCAST 0x00000200
301 #define XP1_SUPPORT_MULTIPOINT 0x00000400
302 #define XP1_MULTIPOINT_CONTROL_PLANE 0x00000800
303 #define XP1_MULTIPOINT_DATA_PLANE 0x00001000
304 #define XP1_QOS_SUPPORTED 0x00002000
305 #define XP1_INTERRUPT 0x00004000
306 #define XP1_UNI_SEND 0x00008000
307 #define XP1_UNI_RECV 0x00010000
308 #define XP1_IFS_HANDLES 0x00020000
309 #define XP1_PARTIAL_MESSAGE 0x00040000
311 #define BIGENDIAN 0x0000
312 #define LITTLEENDIAN 0x0001
314 #define SECURITY_PROTOCOL_NONE 0x0000
316 typedef struct /*WS(pollfd)*/
323 #define WSAPROTOCOL_LEN 255
324 typedef struct _WSAPROTOCOL_INFOA
326 DWORD dwServiceFlags1
;
327 DWORD dwServiceFlags2
;
328 DWORD dwServiceFlags3
;
329 DWORD dwServiceFlags4
;
330 DWORD dwProviderFlags
;
332 DWORD dwCatalogEntryId
;
333 WSAPROTOCOLCHAIN ProtocolChain
;
340 int iProtocolMaxOffset
;
341 int iNetworkByteOrder
;
344 DWORD dwProviderReserved
;
345 CHAR szProtocol
[WSAPROTOCOL_LEN
+1];
346 } WSAPROTOCOL_INFOA
, * LPWSAPROTOCOL_INFOA
;
348 typedef struct _WSAPROTOCOL_INFOW
350 DWORD dwServiceFlags1
;
351 DWORD dwServiceFlags2
;
352 DWORD dwServiceFlags3
;
353 DWORD dwServiceFlags4
;
354 DWORD dwProviderFlags
;
356 DWORD dwCatalogEntryId
;
357 WSAPROTOCOLCHAIN ProtocolChain
;
364 int iProtocolMaxOffset
;
365 int iNetworkByteOrder
;
368 DWORD dwProviderReserved
;
369 WCHAR szProtocol
[WSAPROTOCOL_LEN
+1];
370 } WSAPROTOCOL_INFOW
, *LPWSAPROTOCOL_INFOW
;
372 DECL_WINELIB_TYPE_AW(WSAPROTOCOL_INFO
)
373 DECL_WINELIB_TYPE_AW(LPWSAPROTOCOL_INFO
)
375 typedef struct _WSANETWORKEVENTS
378 int iErrorCode
[FD_MAX_EVENTS
];
379 } WSANETWORKEVENTS
, *LPWSANETWORKEVENTS
;
381 typedef struct _WSANSClassInfoA
388 } WSANSCLASSINFOA
, *PWSANSCLASSINFOA
, *LPWSANSCLASSINFOA
;
390 typedef struct _WSANSClassInfoW
397 } WSANSCLASSINFOW
, *PWSANSCLASSINFOW
, *LPWSANSCLASSINFOW
;
399 DECL_WINELIB_TYPE_AW(WSANSCLASSINFO
)
400 DECL_WINELIB_TYPE_AW(PWSANSCLASSINFO
)
401 DECL_WINELIB_TYPE_AW(LPWSANSCLASSINFO
)
403 typedef struct _WSAServiceClassInfoA
405 LPGUID lpServiceClassId
;
406 LPSTR lpszServiceClassName
;
408 LPWSANSCLASSINFOA lpClassInfos
;
409 } WSASERVICECLASSINFOA
, *PWSASERVICECLASSINFOA
, *LPWSASERVICECLASSINFOA
;
411 typedef struct _WSAServiceClassInfoW
413 LPGUID lpServiceClassId
;
414 LPWSTR lpszServiceClassName
;
416 LPWSANSCLASSINFOW lpClassInfos
;
417 } WSASERVICECLASSINFOW
, *PWSASERVICECLASSINFOW
, *LPWSASERVICECLASSINFOW
;
420 DECL_WINELIB_TYPE_AW(WSASERVICECLASSINFO
)
421 DECL_WINELIB_TYPE_AW(PWSASERVICECLASSINFO
)
422 DECL_WINELIB_TYPE_AW(LPWSASERVICECLASSINFO
)
424 #define WSAEVENT HANDLE
425 #define LPWSAEVENT LPHANDLE
426 #define WSAOVERLAPPED OVERLAPPED
427 typedef struct _OVERLAPPED
* LPWSAOVERLAPPED
;
429 #define WSA_IO_PENDING (ERROR_IO_PENDING)
430 #define WSA_IO_INCOMPLETE (ERROR_IO_INCOMPLETE)
431 #define WSA_INVALID_HANDLE (ERROR_INVALID_HANDLE)
432 #define WSA_INVALID_PARAMETER (ERROR_INVALID_PARAMETER)
433 #define WSA_NOT_ENOUGH_MEMORY (ERROR_NOT_ENOUGH_MEMORY)
434 #define WSA_OPERATION_ABORTED (ERROR_OPERATION_ABORTED)
436 #define WSA_INVALID_EVENT ((WSAEVENT)NULL)
437 #define WSA_MAXIMUM_WAIT_EVENTS (MAXIMUM_WAIT_OBJECTS)
438 #define WSA_WAIT_FAILED ((DWORD)-1)
439 #define WSA_WAIT_EVENT_0 (WAIT_OBJECT_0)
440 #define WSA_WAIT_IO_COMPLETION (WAIT_IO_COMPLETION)
441 #define WSA_WAIT_TIMEOUT (WAIT_TIMEOUT)
442 #define WSA_INFINITE (INFINITE)
444 typedef unsigned int GROUP
;
445 #define SG_UNCONSTRAINED_GROUP 0x01
446 #define SG_CONSTRAINED_GROUP 0x02
449 * FLOWSPEC and SERVICETYPE should eventually move to qos.h
452 typedef ULONG SERVICETYPE
;
454 typedef struct _FLOWSPEC
{
455 unsigned int TokenRate
;
456 unsigned int TokenBucketSize
;
457 unsigned int PeakBandwidth
;
458 unsigned int Latency
;
459 unsigned int DelayVariation
;
460 SERVICETYPE ServiceType
;
461 unsigned int MaxSduSize
;
462 unsigned int MinimumPolicedSize
;
463 } FLOWSPEC
, *PFLOWSPEC
, *LPFLOWSPEC
;
465 typedef struct _QUALITYOFSERVICE
{
466 FLOWSPEC SendingFlowspec
;
467 FLOWSPEC ReceivingFlowspec
;
468 WSABUF ProviderSpecific
;
471 typedef int (CALLBACK
*LPCONDITIONPROC
)
474 LPWSABUF lpCallerData
,
478 LPWSABUF lpCalleeData
,
480 DWORD_PTR dwCallbackData
483 typedef void (CALLBACK
*LPWSAOVERLAPPED_COMPLETION_ROUTINE
)
487 LPWSAOVERLAPPED lpOverlapped
,
491 #ifndef _tagBLOB_DEFINED
492 #define _tagBLOB_DEFINED
493 #define _BLOB_DEFINED
494 #define _LPBLOB_DEFINED
495 typedef struct _BLOB
{
501 /* addressfamily protocol pairs */
502 typedef struct _AFPROTOCOLS
{
505 } AFPROTOCOLS
, *PAFPROTOCOLS
, *LPAFPROTOCOLS
;
507 /* client query definitions */
508 typedef enum _WSAEcomparator
{
511 } WSAECOMPARATOR
, *PWSAECOMPARATOR
, *LPWSAECOMPARATOR
;
513 typedef struct _WSAVersion
{
515 WSAECOMPARATOR ecHow
;
516 } WSAVERSION
, *PWSAVERSION
, *LPWSAVERSION
;
519 typedef struct _WSAQuerySetA
{
521 LPSTR lpszServiceInstanceName
;
522 LPGUID lpServiceClassId
;
523 LPWSAVERSION lpVersion
;
526 LPGUID lpNSProviderId
;
528 DWORD dwNumberOfProtocols
;
529 LPAFPROTOCOLS lpafpProtocols
;
530 LPSTR lpszQueryString
;
531 DWORD dwNumberOfCsAddrs
;
532 LPCSADDR_INFO lpcsaBuffer
;
535 } WSAQUERYSETA
, *PWSAQUERYSETA
, *LPWSAQUERYSETA
;
537 typedef struct _WSAQuerySetW
{
539 LPWSTR lpszServiceInstanceName
;
540 LPGUID lpServiceClassId
;
541 LPWSAVERSION lpVersion
;
544 LPGUID lpNSProviderId
;
546 DWORD dwNumberOfProtocols
;
547 LPAFPROTOCOLS lpafpProtocols
;
548 LPWSTR lpszQueryString
;
549 DWORD dwNumberOfCsAddrs
;
550 LPCSADDR_INFO lpcsaBuffer
;
553 } WSAQUERYSETW
, *PWSAQUERYSETW
, *LPWSAQUERYSETW
;
555 DECL_WINELIB_TYPE_AW(WSAQUERYSET
)
556 DECL_WINELIB_TYPE_AW(PWSAQUERYSET
)
557 DECL_WINELIB_TYPE_AW(LPWSAQUERYSET
)
559 typedef enum _WSAESETSERVICEOP
{
560 RNRSERVICE_REGISTER
= 0,
561 RNRSERVICE_DEREGISTER
,
563 } WSAESETSERVICEOP
, *PWSAESETSERVICEOP
, *LPWSAESETSERVICEOP
;
565 typedef struct _WSANAMESPACE_INFOA
{
570 LPSTR lpszIdentifier
;
571 } WSANAMESPACE_INFOA
, *PWSANAMESPACE_INFOA
, *LPWSANAMESPACE_INFOA
;
573 typedef struct _WSANAMESPACE_INFOW
{
578 LPWSTR lpszIdentifier
;
579 } WSANAMESPACE_INFOW
, *PWSANAMESPACE_INFOW
, *LPWSANAMESPACE_INFOW
;
581 DECL_WINELIB_TYPE_AW(WSANAMESPACE_INFO
)
582 DECL_WINELIB_TYPE_AW(PWSANAMESPACE_INFO
)
583 DECL_WINELIB_TYPE_AW(LPWSANAMESPACE_INFO
)
585 typedef enum _WSACOMPLETIONTYPE
{
586 NSP_NOTIFY_IMMEDIATELY
= 0,
588 NSP_NOTIFY_EVENT
= 2,
591 } WSACOMPLETIONTYPE
, * PWSACOMPLETIONTYPE
, * LPWSACOMPLETIONTYPE
;
593 typedef struct _WSACOMPLETION
{
594 WSACOMPLETIONTYPE Type
;
602 LPWSAOVERLAPPED lpOverlapped
;
605 LPWSAOVERLAPPED lpOverlapped
;
606 LPWSAOVERLAPPED_COMPLETION_ROUTINE lpfnCompletionProc
;
609 LPWSAOVERLAPPED lpOverlapped
;
614 } WSACOMPLETION
, *PWSACOMPLETION
, *LPWSACOMPLETION
;
617 * Winsock Function Typedefs
619 * Remember to keep this section in sync with the
620 * "Prototypes" section in winsock.h.
623 typedef HANDLE (WINAPI
*LPFN_WSAASYNCGETHOSTBYADDR
)(HWND
,WS(u_int
),const char*,int,int,char*,int);
624 typedef HANDLE (WINAPI
*LPFN_WSAASYNCGETHOSTBYNAME
)(HWND
,WS(u_int
),const char*,char*,int);
625 typedef HANDLE (WINAPI
*LPFN_WSAASYNCGETPROTOBYNAME
)(HWND
,WS(u_int
),const char*,char*,int);
626 typedef HANDLE (WINAPI
*LPFN_WSAASYNCGETPROTOBYNUMBER
)(HWND
,WS(u_int
),int,char*,int);
627 typedef HANDLE (WINAPI
*LPFN_WSAASYNCGETSERVBYNAME
)(HWND
,WS(u_int
),const char*,const char*,char*,int);
628 typedef HANDLE (WINAPI
*LPFN_WSAASYNCGETSERVBYPORT
)(HWND
,WS(u_int
),int,const char*,char*,int);
629 typedef int (WINAPI
*LPFN_WSAASYNCSELECT
)(SOCKET
,HWND
,WS(u_int
),LONG
);
630 typedef int (WINAPI
*LPFN_WSACANCELASYNCREQUEST
)(HANDLE
);
631 typedef int (WINAPI
*LPFN_WSACANCELBLOCKINGCALL
)(void);
632 typedef int (WINAPI
*LPFN_WSACLEANUP
)(void);
633 typedef int (WINAPI
*LPFN_WSAGETLASTERROR
)(void);
634 typedef BOOL (WINAPI
*LPFN_WSAISBLOCKING
)(void);
635 typedef FARPROC (WINAPI
*LPFN_WSASETBLOCKINGHOOK
)(FARPROC
);
636 typedef void (WINAPI
*LPFN_WSASETLASTERROR
)(int);
637 typedef int (WINAPI
*LPFN_WSASTARTUP
)(WORD
,LPWSADATA
);
638 typedef int (WINAPI
*LPFN_WSAUNHOOKBLOCKINGHOOK
)(void);
640 typedef SOCKET (WINAPI
*LPFN_ACCEPT
)(SOCKET
,struct WS(sockaddr
)*,int*);
641 typedef int (WINAPI
*LPFN_BIND
)(SOCKET
,const struct WS(sockaddr
)*,int);
642 typedef int (WINAPI
*LPFN_CLOSESOCKET
)(SOCKET
);
643 typedef int (WINAPI
*LPFN_CONNECT
)(SOCKET
,const struct WS(sockaddr
)*,int);
644 typedef struct WS(hostent
)* (WINAPI
*LPFN_GETHOSTBYADDR
)(const char*,int,int);
645 typedef struct WS(hostent
)* (WINAPI
*LPFN_GETHOSTBYNAME
)(const char*);
646 typedef int (WINAPI
*LPFN_GETHOSTNAME
)(char*,int);
647 typedef int (WINAPI
*LPFN_GETPEERNAME
)(SOCKET
,struct WS(sockaddr
)*,int*);
648 typedef struct WS(protoent
)* (WINAPI
*LPFN_GETPROTOBYNAME
)(const char*);
649 typedef struct WS(protoent
)* (WINAPI
*LPFN_GETPROTOBYNUMBER
)(int);
650 #ifdef WS_DEFINE_SELECT
651 typedef int (WINAPI
* LPFN_SELECT
)(int,WS(fd_set
)*,WS(fd_set
)*,WS(fd_set
)*,const struct WS(timeval
)*);
653 typedef struct WS(servent
)* (WINAPI
*LPFN_GETSERVBYNAME
)(const char*,const char*);
654 typedef struct WS(servent
)* (WINAPI
*LPFN_GETSERVBYPORT
)(int,const char*);
655 typedef int (WINAPI
*LPFN_GETSOCKNAME
)(SOCKET
,struct WS(sockaddr
)*,int*);
656 typedef int (WINAPI
*LPFN_GETSOCKOPT
)(SOCKET
,int,int,char*,int*);
657 typedef ULONG (WINAPI
*LPFN_HTONL
)(ULONG
);
658 typedef WS(u_short
) (WINAPI
*LPFN_HTONS
)(WS(u_short
));
659 typedef ULONG (WINAPI
*LPFN_INET_ADDR
)(const char*);
660 typedef char* (WINAPI
*LPFN_INET_NTOA
)(struct WS(in_addr
));
661 typedef int (WINAPI
*LPFN_IOCTLSOCKET
)(SOCKET
,LONG
,ULONG
*);
662 typedef int (WINAPI
*LPFN_LISTEN
)(SOCKET
,int);
663 typedef ULONG (WINAPI
*LPFN_NTOHL
)(ULONG
);
664 typedef WS(u_short
) (WINAPI
*LPFN_NTOHS
)(WS(u_short
));
665 typedef int (WINAPI
*LPFN_RECV
)(SOCKET
,char*,int,int);
666 typedef int (WINAPI
*LPFN_RECVFROM
)(SOCKET
,char*,int,int,struct WS(sockaddr
)*,int*);
667 typedef int (WINAPI
*LPFN_SEND
)(SOCKET
,const char*,int,int);
668 typedef int (WINAPI
*LPFN_SENDTO
)(SOCKET
,const char*,int,int,const struct WS(sockaddr
)*,int);
669 typedef int (WINAPI
*LPFN_SETSOCKOPT
)(SOCKET
,int,int,const char*,int);
670 typedef int (WINAPI
*LPFN_SHUTDOWN
)(SOCKET
,int);
671 typedef SOCKET (WINAPI
*LPFN_SOCKET
)(int,int,int);
672 #endif /* WS_API_TYPEDEFS */
677 * Winsock2 Prototypes
679 * Remember to keep this section in sync with the
680 * "Winsock2 Function Typedefs" section below.
682 #if WS_API_PROTOTYPES
683 SOCKET WINAPI
WSAAccept(SOCKET
,struct WS(sockaddr
)*,LPINT
,LPCONDITIONPROC
,DWORD_PTR
);
684 INT WINAPI
WSAAddressToStringA(LPSOCKADDR
,DWORD
,LPWSAPROTOCOL_INFOA
,LPSTR
,LPDWORD
);
685 INT WINAPI
WSAAddressToStringW(LPSOCKADDR
,DWORD
,LPWSAPROTOCOL_INFOW
,LPWSTR
,LPDWORD
);
686 #define WSAAddressToString WINELIB_NAME_AW(WSAAddressToString)
687 BOOL WINAPI
WSACloseEvent(WSAEVENT
);
688 int WINAPI
WSAConnect(SOCKET
,const struct WS(sockaddr
)*,int,LPWSABUF
,LPWSABUF
,LPQOS
,LPQOS
);
689 WSAEVENT WINAPI
WSACreateEvent(void);
690 INT WINAPI
WSADuplicateSocketA(SOCKET
,DWORD
,LPWSAPROTOCOL_INFOA
);
691 INT WINAPI
WSADuplicateSocketW(SOCKET
,DWORD
,LPWSAPROTOCOL_INFOW
);
692 #define WSADuplicateSocket WINELIB_NAME_AW(WSADuplicateSocket)
693 INT WINAPI
WSAEnumNameSpaceProvidersA(LPDWORD
,LPWSANAMESPACE_INFOA
);
694 INT WINAPI
WSAEnumNameSpaceProvidersW(LPDWORD
,LPWSANAMESPACE_INFOW
);
695 #define WSAEnumNameSpaceProviders WINELIB_NAME_AW(WSAEnumNameSpaceProviders)
696 int WINAPI
WSAEnumNetworkEvents(SOCKET
,WSAEVENT
,LPWSANETWORKEVENTS
);
697 int WINAPI
WSAEnumProtocolsA(LPINT
,LPWSAPROTOCOL_INFOA
,LPDWORD
);
698 int WINAPI
WSAEnumProtocolsW(LPINT
,LPWSAPROTOCOL_INFOW
,LPDWORD
);
699 #define WSAEnumProtocols WINELIB_NAME_AW(WSAEnumProtocols)
700 int WINAPI
WSAEventSelect(SOCKET
,WSAEVENT
,LONG
);
701 BOOL WINAPI
WSAGetOverlappedResult(SOCKET
,LPWSAOVERLAPPED
,LPDWORD
,BOOL
,LPDWORD
);
702 BOOL WINAPI
WSAGetQOSByName(SOCKET
,LPWSABUF
,LPQOS
);
703 INT WINAPI
WSAGetServiceClassInfoA(LPGUID
,LPGUID
,LPDWORD
,LPWSASERVICECLASSINFOA
);
704 INT WINAPI
WSAGetServiceClassInfoW(LPGUID
,LPGUID
,LPDWORD
,LPWSASERVICECLASSINFOW
);
705 #define WSAGetServiceClassInfo WINELIB_NAME_AW(WSAGetServiceClassInfo)
706 INT WINAPI
WSAGetServiceClassNameByClassIdA(LPGUID
,LPSTR
,LPDWORD
);
707 INT WINAPI
WSAGetServiceClassNameByClassIdW(LPGUID
,LPWSTR
,LPDWORD
);
708 #define WSAGetServiceClassNameByClassId WINELIB_NAME_AW(WSAGetServiceClassNameByClassId)
709 int WINAPI
WSAHtonl(SOCKET
,ULONG
,ULONG
*);
710 int WINAPI
WSAHtons(SOCKET
,WS(u_short
),WS(u_short
)*);
711 int WINAPI
WSAInstallServiceClassA(LPWSASERVICECLASSINFOA
);
712 int WINAPI
WSAInstallServiceClassW(LPWSASERVICECLASSINFOW
);
713 #define WSAInstallServiceClass WINELIB_NAME_AW(WSAInstallServiceClass)
714 int WINAPI
WSAIoctl(SOCKET
,DWORD
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
715 SOCKET WINAPI
WSAJoinLeaf(SOCKET
,const struct WS(sockaddr
)*,int,LPWSABUF
,LPWSABUF
,LPQOS
,LPQOS
,DWORD
);
716 INT WINAPI
WSALookupServiceBeginA(LPWSAQUERYSETA
,DWORD
,LPHANDLE
);
717 INT WINAPI
WSALookupServiceBeginW(LPWSAQUERYSETW
,DWORD
,LPHANDLE
);
718 #define WSALookupServiceBegin WINELIB_NAME_AW(WSALookupServiceBegin)
719 INT WINAPI
WSALookupServiceEnd(HANDLE
);
720 INT WINAPI
WSALookupServiceNextA(HANDLE
,DWORD
,LPDWORD
,LPWSAQUERYSETA
);
721 INT WINAPI
WSALookupServiceNextW(HANDLE
,DWORD
,LPDWORD
,LPWSAQUERYSETW
);
722 #define WSALookupServiceNext WINELIB_NAME_AW(WSALookupServiceNext)
723 int WINAPI
WSANSPIoctl(HANDLE
,DWORD
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,LPWSACOMPLETION
);
724 int WINAPI
WSANtohl(SOCKET
,ULONG
,ULONG
*);
725 int WINAPI
WSANtohs(SOCKET
,WS(u_short
),WS(u_short
)*);
726 int WINAPI
WSAPoll(WSAPOLLFD
*,ULONG
,int);
727 INT WINAPI
WSAProviderConfigChange(LPHANDLE
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
728 int WINAPI
WSARecv(SOCKET
,LPWSABUF
,DWORD
,LPDWORD
,LPDWORD
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
729 int WINAPI
WSARecvDisconnect(SOCKET
,LPWSABUF
);
730 int WINAPI
WSARecvFrom(SOCKET
,LPWSABUF
,DWORD
,LPDWORD
,LPDWORD
,struct WS(sockaddr
)*,LPINT
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
731 INT WINAPI
WSARemoveServiceClass(LPGUID
);
732 BOOL WINAPI
WSAResetEvent(WSAEVENT
);
733 int WINAPI
WSASend(SOCKET
,LPWSABUF
,DWORD
,LPDWORD
,DWORD
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
734 int WINAPI
WSASendDisconnect(SOCKET
,LPWSABUF
);
735 int WINAPI
WSASendTo(SOCKET
,LPWSABUF
,DWORD
,LPDWORD
,DWORD
,const struct WS(sockaddr
)*,int,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
736 BOOL WINAPI
WSASetEvent(WSAEVENT
);
737 INT WINAPI
WSASetServiceA(LPWSAQUERYSETA
,WSAESETSERVICEOP
,DWORD
);
738 INT WINAPI
WSASetServiceW(LPWSAQUERYSETW
,WSAESETSERVICEOP
,DWORD
);
739 #define WSASetService WINELIB_NAME_AW(WSASetService)
740 SOCKET WINAPI
WSASocketA(int,int,int,LPWSAPROTOCOL_INFOA
,GROUP
,DWORD
);
741 SOCKET WINAPI
WSASocketW(int,int,int,LPWSAPROTOCOL_INFOW
,GROUP
,DWORD
);
742 #define WSASocket WINELIB_NAME_AW(WSASocket)
743 INT WINAPI
WSAStringToAddressA(LPSTR
,INT
,LPWSAPROTOCOL_INFOA
,LPSOCKADDR
,LPINT
);
744 INT WINAPI
WSAStringToAddressW(LPWSTR
,INT
,LPWSAPROTOCOL_INFOW
,LPSOCKADDR
,LPINT
);
745 #define WSAStringToAddress WINELIB_NAME_AW(WSAStringToAddress)
746 DWORD WINAPI
WSAWaitForMultipleEvents(DWORD
,const WSAEVENT
*,BOOL
,DWORD
,BOOL
);
747 #endif /* WS_API_PROTOTYPES */
752 * Winsock2 Function Typedefs
754 * Remember to keep this section in sync with the
755 * "Winsock2 Prototypes" section above.
758 typedef SOCKET (WINAPI
*LPFN_WSAACCEPT
)(SOCKET
,struct WS(sockaddr
)*,LPINT
,LPCONDITIONPROC
,DWORD_PTR
);
759 typedef INT (WINAPI
*LPFN_WSAADDRESSTOSTRINGA
)(LPSOCKADDR
,DWORD
,LPWSAPROTOCOL_INFOA
,LPSTR
,LPDWORD
);
760 typedef INT (WINAPI
*LPFN_WSAADDRESSTOSTRINGW
)(LPSOCKADDR
,DWORD
,LPWSAPROTOCOL_INFOW
,LPWSTR
,LPDWORD
);
761 #define LPFN_WSAADDRESSTOSTRING WINELIB_NAME_AW(LPFN_WSAADDRESSTOSTRING)
762 typedef BOOL (WINAPI
*LPFN_WSACLOSEEVENT
)(WSAEVENT
);
763 typedef int (WINAPI
*LPFN_WSACONNECT
)(SOCKET
,const struct WS(sockaddr
)*,int,LPWSABUF
,LPWSABUF
,LPQOS
,LPQOS
);
764 typedef WSAEVENT (WINAPI
*LPFN_WSACREATEEVENT
)(void);
765 typedef INT (WINAPI
*LPFN_WSADUPLICATESOCKETA
)(SOCKET
,DWORD
,LPWSAPROTOCOL_INFOA
);
766 typedef INT (WINAPI
*LPFN_WSADUPLICATESOCKETW
)(SOCKET
,DWORD
,LPWSAPROTOCOL_INFOW
);
767 #define LPFN_WSADUPLICATESOCKET WINELIB_NAME_AW(LPFN_WSADUPLICATESOCKET)
768 typedef INT (WINAPI
*LPFN_WSAENUMNAMESPACEPROVIDERSA
)(LPDWORD
,LPWSANAMESPACE_INFOA
);
769 typedef INT (WINAPI
*LPFN_WSAENUMNAMESPACEPROVIDERSW
)(LPDWORD
,LPWSANAMESPACE_INFOW
);
770 #define LPFN_WSAENUMNAMESPACEPROVIDERS WINELIB_NAME_AW(LPFN_WSAENUMNAMESPACEPROVIDERS)
771 typedef int (WINAPI
*LPFN_WSAENUMNETWORKEVENTS
)(SOCKET
,WSAEVENT
,LPWSANETWORKEVENTS
);
772 typedef int (WINAPI
*LPFN_WSAENUMPROTOCOLSA
)(LPINT
,LPWSAPROTOCOL_INFOA
,LPDWORD
);
773 typedef int (WINAPI
*LPFN_WSAENUMPROTOCOLSW
)(LPINT
,LPWSAPROTOCOL_INFOW
,LPDWORD
);
774 #define LPFN_WSAENUMPROTOCOLS WINELIB_NAME_AW(LPFN_WSAENUMPROTOCOLS)
775 typedef int (WINAPI
*LPFN_WSAEVENTSELECT
)(SOCKET
,WSAEVENT
,LONG
);
776 typedef BOOL (WINAPI
*LPFN_WSAGETOVERLAPPEDRESULT
)(SOCKET
,LPWSAOVERLAPPED
,LPDWORD
,BOOL
,LPDWORD
);
777 typedef BOOL (WINAPI
*LPFN_WSAGETQOSBYNAME
)(SOCKET
,LPWSABUF
,LPQOS
);
778 typedef INT (WINAPI
*LPFN_WSAGETSERVICECLASSINFOA
)(LPGUID
,LPGUID
,LPDWORD
,LPWSASERVICECLASSINFOA
);
779 typedef INT (WINAPI
*LPFN_WSAGETSERVICECLASSINFOW
)(LPGUID
,LPGUID
,LPDWORD
,LPWSASERVICECLASSINFOW
);
780 #define LPFN_LPFNWSAGETSERVICECLASSINFO WINELIB_NAME_AW(LPFN_LPFNWSAGETSERVICECLASSINFO)
781 typedef INT (WINAPI
*LPFN_WSAGETSERVICECLASSNAMEBYCLASSIDA
)(LPGUID
,LPSTR
,LPDWORD
);
782 typedef INT (WINAPI
*LPFN_WSAGETSERVICECLASSNAMEBYCLASSIDW
)(LPGUID
,LPWSTR
,LPDWORD
);
783 #define LPFN_WSAGETSERVICECLASSNAMEBYCLASSID WINELIB_NAME_AW(LPFN_WSAGETSERVICECLASSNAMEBYCLASSID)
784 typedef int (WINAPI
*LPFN_WSAHTONL
)(SOCKET
,ULONG
,ULONG
*);
785 typedef int (WINAPI
*LPFN_WSAHTONS
)(SOCKET
,WS(u_short
),WS(u_short
)*);
786 typedef int (WINAPI
*LPFN_WSAINSTALLSERVICECLASSA
)(LPWSASERVICECLASSINFOA
);
787 typedef int (WINAPI
*LPFN_WSAINSTALLSERVICECLASSW
)(LPWSASERVICECLASSINFOW
);
788 typedef int (WINAPI
*LPFN_WSAIOCTL
)(SOCKET
,DWORD
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
789 typedef int (WINAPI
*LPFN_WSAJOINLEAF
)(SOCKET
,const struct WS(sockaddr
)*,int,LPWSABUF
,LPWSABUF
,LPQOS
,LPQOS
,DWORD
);
790 typedef INT (WINAPI
*LPFN_WSALOOKUPSERVICEBEGINA
)(LPWSAQUERYSETA
,DWORD
,LPHANDLE
);
791 typedef INT (WINAPI
*LPFN_WSALOOKUPSERVICEBEGINW
)(LPWSAQUERYSETW
,DWORD
,LPHANDLE
);
792 #define LPFN_WSALOOKUPSERVICEBEGIN WINELIB_NAME_AW(LPFN_WSALOOKUPSERVICEBEGIN)
793 typedef INT (WINAPI
*LPFN_WSALOOKUPSERVICEEND
)(HANDLE
);
794 typedef INT (WINAPI
*LPFN_WSALOOKUPSERVICENEXTA
)(HANDLE
,DWORD
,LPDWORD
,LPWSAQUERYSETA
);
795 typedef INT (WINAPI
*LPFN_WSALOOKUPSERVICENEXTW
)(HANDLE
,DWORD
,LPDWORD
,LPWSAQUERYSETW
);
796 #define LPFN_WSALOOKUPSERVICENEXT WINELIB_NAME_AW(LPFN_WSALOOKUPSERVICENEXT)
797 typedef int (WINAPI
*LPFN_WSANSPIOCTL
)(HANDLE
,DWORD
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,LPWSACOMPLETION
);
798 typedef int (WINAPI
*LPFN_WSANTOHL
)(SOCKET
,ULONG
,ULONG
*);
799 typedef int (WINAPI
*LPFN_WSANTOHS
)(SOCKET
,WS(u_short
),WS(u_short
)*);
800 typedef INT (WINAPI
*LPFN_WSAPROVIDERCONFIGCHANGE
)(LPHANDLE
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
801 typedef int (WINAPI
*LPFN_WSAPOLL
)(WSAPOLLFD
*,ULONG
,int);
802 typedef int (WINAPI
*LPFN_WSARECV
)(SOCKET
,LPWSABUF
,DWORD
,LPDWORD
,LPDWORD
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
803 typedef int (WINAPI
*LPFN_WSARECVDISCONNECT
)(SOCKET
,LPWSABUF
);
804 typedef int (WINAPI
*LPFN_WSARECVFROM
)(SOCKET
,LPWSABUF
,DWORD
,LPDWORD
,LPDWORD
,struct WS(sockaddr
)*,LPINT
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
805 typedef INT (WINAPI
*LPFN_WSAREMOVESERVICECLASS
)(LPGUID
);
806 typedef BOOL (WINAPI
*LPFN_WSARESETEVENT
)(WSAEVENT
);
807 typedef int (WINAPI
*LPFN_WSASEND
)(SOCKET
,LPWSABUF
,DWORD
,LPDWORD
,DWORD
,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
808 typedef int (WINAPI
*LPFN_WSASENDDISCONNECT
)(SOCKET
,LPWSABUF
);
809 typedef int (WINAPI
*LPFN_WSASENDTO
)(SOCKET
,LPWSABUF
,DWORD
,LPDWORD
,DWORD
,const struct WS(sockaddr
)*,int,LPWSAOVERLAPPED
,LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
810 typedef BOOL (WINAPI
*LPFN_WSASETEVENT
)(WSAEVENT
);
811 typedef INT (WINAPI
*LPFN_WSASETSERVICEA
)(LPWSAQUERYSETA
,WSAESETSERVICEOP
,DWORD
);
812 typedef INT (WINAPI
*LPFN_WSASETSERVICEW
)(LPWSAQUERYSETW
,WSAESETSERVICEOP
,DWORD
);
813 #define LPFN_WSASETSERVICE WINELIB_NAME_AW(LPFN_WSASETSERVICE)
814 typedef SOCKET (WINAPI
*LPFN_WSASOCKETA
)(int,int,int,LPWSAPROTOCOL_INFOA
,GROUP
,DWORD
);
815 typedef SOCKET (WINAPI
*LPFN_WSASOCKETW
)(int,int,int,LPWSAPROTOCOL_INFOW
,GROUP
,DWORD
);
816 typedef INT (WINAPI
*LPFN_WSASTRINGTOADDRESSA
)(LPSTR
,INT
,LPWSAPROTOCOL_INFOA
,LPSOCKADDR
,LPINT
);
817 typedef INT (WINAPI
*LPFN_WSASTRINGTOADDRESSW
)(LPSTR
,INT
,LPWSAPROTOCOL_INFOA
,LPSOCKADDR
,LPINT
);
818 #define LPFN_WSASOCKET WINELIB_NAME_AW(LPFN_WSASOCKET)
819 #define LPFN_WSASTRINGTOADDRESS WINELIB_NAME_AW(LPFN_WSASTRINGTOADDRESS)
820 typedef DWORD (WINAPI
*LPFN_WSAWAITFORMULTIPLEEVENTS
)(DWORD
,const WSAEVENT
*,BOOL
,DWORD
,BOOL
);
821 #endif /* WS_API_TYPEDEFS */
824 /* Condition function return values */
825 #define CF_ACCEPT 0x0000
826 #define CF_REJECT 0x0001
827 #define CF_DEFER 0x0002
834 #undef WS_API_PROTOTYPES
835 #undef WS_API_TYPEDEFS
837 #endif /* __WINSOCK2API__ */