1999-09-27 13:48:11 +02:00
|
|
|
/*
|
2000-06-18 19:23:17 +02:00
|
|
|
* Winsock 2 definitions - used for ws2_32.dll
|
1999-09-27 13:48:11 +02:00
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
* Copyright (C) 1999 Ove Kaaven
|
|
|
|
* Copyright (C) 2001 Francois Gouget
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
2000-06-18 19:23:17 +02:00
|
|
|
* FIXME: Still missing required Winsock 2 definitions.
|
1999-09-27 13:48:11 +02:00
|
|
|
*/
|
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
#ifndef _WINSOCK2API_
|
|
|
|
#define _WINSOCK2API_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Setup phase
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Everything common between winsock.h and winsock2.h */
|
|
|
|
#ifndef INCL_WINSOCK_API_PROTOTYPES
|
|
|
|
#define INCL_WINSOCK_API_PROTOTYPES 1
|
|
|
|
#define WS_API_PROTOTYPES 1
|
|
|
|
#else
|
|
|
|
#define WS_API_PROTOTYPES INCL_WINSOCK_API_PROTOTYPES
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef INCL_WINSOCK_API_TYPEDEFS
|
|
|
|
#define INCL_WINSOCK_API_TYPEDEFS 0
|
|
|
|
#define WS_API_TYPEDEFS 0
|
|
|
|
#else
|
|
|
|
#define WS_API_TYPEDEFS INCL_WINSOCK_API_TYPEDEFS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define __WINE_WINSOCK2__
|
2003-08-28 23:43:34 +02:00
|
|
|
#include <winsock.h>
|
2001-11-14 22:26:23 +01:00
|
|
|
#undef __WINE_WINSOCK2__
|
|
|
|
|
2009-04-07 13:29:35 +02:00
|
|
|
#include <ws2def.h>
|
2001-11-14 22:26:23 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
1999-09-27 13:48:11 +02:00
|
|
|
|
2000-09-19 04:43:00 +02:00
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
#ifndef USE_WS_PREFIX
|
|
|
|
#define SO_GROUP_ID 0x2001
|
|
|
|
#define SO_GROUP_PRIORITY 0x2002
|
|
|
|
#define SO_MAX_MSG_SIZE 0x2003
|
|
|
|
#define SO_PROTOCOL_INFOA 0x2004
|
|
|
|
#define SO_PROTOCOL_INFOW 0x2005
|
|
|
|
#define SO_PROTOCOL_INFO WINELIB_NAME_AW(WS_SO_PROTOCOL_INFO)
|
|
|
|
#define PVD_CONFIG 0x3001
|
|
|
|
#define SO_CONDITIONAL_ACCEPT 0x3002
|
|
|
|
#else
|
|
|
|
#define WS_SO_GROUP_ID 0x2001
|
|
|
|
#define WS_SO_GROUP_PRIORITY 0x2002
|
|
|
|
#define WS_SO_MAX_MSG_SIZE 0x2003
|
|
|
|
#define WS_SO_PROTOCOL_INFOA 0x2004
|
|
|
|
#define WS_SO_PROTOCOL_INFOW 0x2005
|
|
|
|
#define WS_SO_PROTOCOL_INFO WINELIB_NAME_AW(WS_SO_PROTOCOL_INFO)
|
|
|
|
#define WS_PVD_CONFIG 0x3001
|
|
|
|
#define WS_SO_CONDITIONAL_ACCEPT 0x3002
|
|
|
|
#endif
|
2000-09-19 04:43:00 +02:00
|
|
|
|
2004-03-02 21:53:31 +01:00
|
|
|
/* protocol types */
|
|
|
|
|
2008-05-26 10:02:42 +02:00
|
|
|
#define FROM_PROTOCOL_INFO (-1)
|
|
|
|
|
2004-03-02 21:53:31 +01:00
|
|
|
#ifndef USE_WS_PREFIX
|
|
|
|
#define SOCK_STREAM 1
|
|
|
|
#define SOCK_DGRAM 2
|
|
|
|
#define SOCK_RAW 3
|
|
|
|
#define SOCK_RDM 4
|
|
|
|
#define SOCK_SEQPACKET 5
|
|
|
|
#else /* USE_WS_PREFIX */
|
|
|
|
#define WS_SOCK_STREAM 1
|
|
|
|
#define WS_SOCK_DGRAM 2
|
|
|
|
#define WS_SOCK_RAW 3
|
|
|
|
#define WS_SOCK_RDM 4
|
|
|
|
#define WS_SOCK_SEQPACKET 5
|
|
|
|
#endif /* USE_WS_PREFIX */
|
2000-09-19 04:43:00 +02:00
|
|
|
|
|
|
|
/* option flags per socket */
|
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
#define FD_MAX_EVENTS 10
|
|
|
|
#define FD_READ_BIT 0
|
|
|
|
#define FD_WRITE_BIT 1
|
|
|
|
#define FD_OOB_BIT 2
|
|
|
|
#define FD_ACCEPT_BIT 3
|
|
|
|
#define FD_CONNECT_BIT 4
|
|
|
|
#define FD_CLOSE_BIT 5
|
|
|
|
|
|
|
|
/* Constants for LPCONDITIONPROC */
|
|
|
|
#define CF_ACCEPT 0x0000
|
|
|
|
#define CF_REJECT 0x0001
|
|
|
|
#define CF_DEFER 0x0002
|
|
|
|
|
|
|
|
/* Constants for shutdown() */
|
|
|
|
#define SD_RECEIVE 0x00
|
|
|
|
#define SD_SEND 0x01
|
|
|
|
#define SD_BOTH 0x02
|
|
|
|
|
2015-11-04 14:59:00 +01:00
|
|
|
/* Constants for WSAPoll() */
|
|
|
|
#ifndef __WINE_WINE_PORT_H
|
|
|
|
#ifndef USE_WS_PREFIX
|
|
|
|
#define POLLERR 0x0001
|
|
|
|
#define POLLHUP 0x0002
|
|
|
|
#define POLLNVAL 0x0004
|
|
|
|
#define POLLWRNORM 0x0010
|
|
|
|
#define POLLWRBAND 0x0020
|
|
|
|
#define POLLRDNORM 0x0100
|
|
|
|
#define POLLRDBAND 0x0200
|
|
|
|
#define POLLPRI 0x0400
|
|
|
|
#define POLLIN (POLLRDNORM|POLLRDBAND)
|
|
|
|
#define POLLOUT (POLLWRNORM)
|
|
|
|
#else
|
|
|
|
#define WS_POLLERR 0x0001
|
|
|
|
#define WS_POLLHUP 0x0002
|
|
|
|
#define WS_POLLNVAL 0x0004
|
|
|
|
#define WS_POLLWRNORM 0x0010
|
|
|
|
#define WS_POLLWRBAND 0x0020
|
|
|
|
#define WS_POLLRDNORM 0x0100
|
|
|
|
#define WS_POLLRDBAND 0x0200
|
|
|
|
#define WS_POLLPRI 0x0400
|
|
|
|
#define WS_POLLIN (WS_POLLRDNORM|WS_POLLRDBAND)
|
|
|
|
#define WS_POLLOUT (WS_POLLWRNORM)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
/* Constants for WSAIoctl() */
|
2006-11-27 18:48:58 +01:00
|
|
|
#ifdef USE_WS_PREFIX
|
|
|
|
#define WS_IOC_UNIX 0x00000000
|
|
|
|
#define WS_IOC_WS2 0x08000000
|
|
|
|
#define WS_IOC_PROTOCOL 0x10000000
|
|
|
|
#define WS_IOC_VENDOR 0x18000000
|
|
|
|
#define WS_IOC_VOID 0x20000000
|
|
|
|
#define WS_IOC_OUT 0x40000000
|
|
|
|
#define WS_IOC_IN 0x80000000
|
|
|
|
#define WS_IOC_INOUT (WS_IOC_IN|WS_IOC_OUT)
|
|
|
|
#define _WSAIO(x,y) (WS_IOC_VOID|(x)|(y))
|
|
|
|
#define _WSAIOR(x,y) (WS_IOC_OUT|(x)|(y))
|
|
|
|
#define _WSAIOW(x,y) (WS_IOC_IN|(x)|(y))
|
|
|
|
#define _WSAIORW(x,y) (WS_IOC_INOUT|(x)|(y))
|
|
|
|
#define WS_SIO_ASSOCIATE_HANDLE _WSAIOW(WS_IOC_WS2,1)
|
|
|
|
#define WS_SIO_ENABLE_CIRCULAR_QUEUEING _WSAIO(WS_IOC_WS2,2)
|
|
|
|
#define WS_SIO_FIND_ROUTE _WSAIOR(WS_IOC_WS2,3)
|
|
|
|
#define WS_SIO_FLUSH _WSAIO(WS_IOC_WS2,4)
|
|
|
|
#define WS_SIO_GET_BROADCAST_ADDRESS _WSAIOR(WS_IOC_WS2,5)
|
|
|
|
#define WS_SIO_GET_EXTENSION_FUNCTION_POINTER _WSAIORW(WS_IOC_WS2,6)
|
|
|
|
#define WS_SIO_GET_QOS _WSAIORW(WS_IOC_WS2,7)
|
|
|
|
#define WS_SIO_GET_GROUP_QOS _WSAIORW(WS_IOC_WS2,8)
|
|
|
|
#define WS_SIO_MULTIPOINT_LOOPBACK _WSAIOW(WS_IOC_WS2,9)
|
|
|
|
#define WS_SIO_MULTICAST_SCOPE _WSAIOW(WS_IOC_WS2,10)
|
|
|
|
#define WS_SIO_SET_QOS _WSAIOW(WS_IOC_WS2,11)
|
|
|
|
#define WS_SIO_SET_GROUP_QOS _WSAIOW(WS_IOC_WS2,12)
|
|
|
|
#define WS_SIO_TRANSLATE_HANDLE _WSAIORW(WS_IOC_WS2,13)
|
|
|
|
#define WS_SIO_ROUTING_INTERFACE_QUERY _WSAIORW(WS_IOC_WS2,20)
|
|
|
|
#define WS_SIO_ROUTING_INTERFACE_CHANGE _WSAIOW(WS_IOC_WS2,21)
|
|
|
|
#define WS_SIO_ADDRESS_LIST_QUERY _WSAIOR(WS_IOC_WS2,22)
|
|
|
|
#define WS_SIO_ADDRESS_LIST_CHANGE _WSAIO(WS_IOC_WS2,23)
|
|
|
|
#define WS_SIO_QUERY_TARGET_PNP_HANDLE _WSAIOR(WS_IOC_WS2,24)
|
2010-04-03 18:09:18 +02:00
|
|
|
#define WS_SIO_GET_INTERFACE_LIST WS__IOR('t', 127, ULONG)
|
2006-11-27 18:48:58 +01:00
|
|
|
#else /* USE_WS_PREFIX */
|
|
|
|
#undef IOC_VOID
|
|
|
|
#undef IOC_IN
|
|
|
|
#undef IOC_OUT
|
|
|
|
#undef IOC_INOUT
|
2001-11-14 22:26:23 +01:00
|
|
|
#define IOC_UNIX 0x00000000
|
|
|
|
#define IOC_WS2 0x08000000
|
|
|
|
#define IOC_PROTOCOL 0x10000000
|
|
|
|
#define IOC_VENDOR 0x18000000
|
2004-10-04 22:37:43 +02:00
|
|
|
#define IOC_VOID 0x20000000
|
2006-11-27 18:48:58 +01:00
|
|
|
#define IOC_OUT 0x40000000
|
|
|
|
#define IOC_IN 0x80000000
|
|
|
|
#define IOC_INOUT (IOC_IN|IOC_OUT)
|
2001-11-14 22:26:23 +01:00
|
|
|
#define _WSAIO(x,y) (IOC_VOID|(x)|(y))
|
|
|
|
#define _WSAIOR(x,y) (IOC_OUT|(x)|(y))
|
|
|
|
#define _WSAIOW(x,y) (IOC_IN|(x)|(y))
|
|
|
|
#define _WSAIORW(x,y) (IOC_INOUT|(x)|(y))
|
|
|
|
#define SIO_ASSOCIATE_HANDLE _WSAIOW(IOC_WS2,1)
|
|
|
|
#define SIO_ENABLE_CIRCULAR_QUEUEING _WSAIO(IOC_WS2,2)
|
|
|
|
#define SIO_FIND_ROUTE _WSAIOR(IOC_WS2,3)
|
|
|
|
#define SIO_FLUSH _WSAIO(IOC_WS2,4)
|
|
|
|
#define SIO_GET_BROADCAST_ADDRESS _WSAIOR(IOC_WS2,5)
|
2000-06-18 19:23:17 +02:00
|
|
|
#define SIO_GET_EXTENSION_FUNCTION_POINTER _WSAIORW(IOC_WS2,6)
|
2001-11-14 22:26:23 +01:00
|
|
|
#define SIO_GET_QOS _WSAIORW(IOC_WS2,7)
|
|
|
|
#define SIO_GET_GROUP_QOS _WSAIORW(IOC_WS2,8)
|
|
|
|
#define SIO_MULTIPOINT_LOOPBACK _WSAIOW(IOC_WS2,9)
|
|
|
|
#define SIO_MULTICAST_SCOPE _WSAIOW(IOC_WS2,10)
|
|
|
|
#define SIO_SET_QOS _WSAIOW(IOC_WS2,11)
|
|
|
|
#define SIO_SET_GROUP_QOS _WSAIOW(IOC_WS2,12)
|
|
|
|
#define SIO_TRANSLATE_HANDLE _WSAIORW(IOC_WS2,13)
|
|
|
|
#define SIO_ROUTING_INTERFACE_QUERY _WSAIORW(IOC_WS2,20)
|
|
|
|
#define SIO_ROUTING_INTERFACE_CHANGE _WSAIOW(IOC_WS2,21)
|
|
|
|
#define SIO_ADDRESS_LIST_QUERY _WSAIOR(IOC_WS2,22)
|
|
|
|
#define SIO_ADDRESS_LIST_CHANGE _WSAIO(IOC_WS2,23)
|
2002-01-12 22:17:51 +01:00
|
|
|
#define SIO_QUERY_TARGET_PNP_HANDLE _WSAIOR(IOC_WS2,24)
|
2010-04-03 18:09:18 +02:00
|
|
|
#define SIO_GET_INTERFACE_LIST _IOR ('t', 127, ULONG)
|
2006-11-27 18:48:58 +01:00
|
|
|
#endif /* USE_WS_PREFIX */
|
2000-08-04 00:19:09 +02:00
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
/* Constants for WSAIoctl() */
|
2015-03-16 17:45:36 +01:00
|
|
|
#define WSA_FLAG_OVERLAPPED 0x0001
|
|
|
|
#define WSA_FLAG_MULTIPOINT_C_ROOT 0x0002
|
|
|
|
#define WSA_FLAG_MULTIPOINT_C_LEAF 0x0004
|
|
|
|
#define WSA_FLAG_MULTIPOINT_D_ROOT 0x0008
|
|
|
|
#define WSA_FLAG_MULTIPOINT_D_LEAF 0x0010
|
|
|
|
#define WSA_FLAG_ACCESS_SYSTEM_SECURITY 0x0040
|
|
|
|
#define WSA_FLAG_NO_HANDLE_INHERIT 0x0080
|
|
|
|
#define WSA_FLAG_REGISTERED_IO 0x0100
|
2000-06-18 19:23:17 +02:00
|
|
|
|
2003-12-11 06:16:48 +01:00
|
|
|
/* Constants for WSAJoinLeaf() */
|
|
|
|
#define JL_SENDER_ONLY 0x01
|
|
|
|
#define JL_RECEIVER_ONLY 0x02
|
|
|
|
#define JL_BOTH 0x04
|
|
|
|
|
2014-01-04 06:25:19 +01:00
|
|
|
/* Constants for WSALookupServiceBegin() */
|
|
|
|
#define LUP_DEEP 0x0001
|
|
|
|
#define LUP_RETURN_NAME 0x0010
|
|
|
|
#define LUP_RETURN_TYPE 0x0020
|
|
|
|
#define LUP_RETURN_VERSION 0x0040
|
|
|
|
#define LUP_RETURN_COMMENT 0x0080
|
|
|
|
#define LUP_RETURN_ADDR 0x0100
|
|
|
|
#define LUP_RETURN_BLOB 0x0200
|
|
|
|
#define LUP_RETURN_ALIASES 0x0400
|
|
|
|
#define LUP_RETURN_QUERY_STRING 0x0800
|
|
|
|
#define LUP_RETURN_ALL (LUP_RETURN_ADDR|LUP_RETURN_BLOB|LUP_RETURN_ALIASES|LUP_RETURN_QUERY_STRING \
|
|
|
|
|LUP_RETURN_NAME|LUP_RETURN_TYPE|LUP_RETURN_VERSION|LUP_RETURN_COMMENT)
|
2000-06-18 19:23:17 +02:00
|
|
|
|
2015-10-11 13:07:17 +02:00
|
|
|
/* Constants for dwNameSpace from struct WSANAMESPACE_INFO */
|
|
|
|
#define NS_ALL 0
|
|
|
|
#define NS_SAP 1
|
|
|
|
#define NS_NDS 2
|
|
|
|
#define NS_PEER_BROWSE 3
|
|
|
|
#define NS_SLP 5
|
|
|
|
#define NS_DHCP 6
|
|
|
|
#define NS_TCPIP_LOCAL 10
|
|
|
|
#define NS_TCPIP_HOSTS 11
|
|
|
|
#define NS_DNS 12
|
|
|
|
#define NS_NETBT 13
|
|
|
|
#define NS_WINS 14
|
|
|
|
#define NS_NLA 15
|
|
|
|
#define NS_BTH 16
|
|
|
|
#define NS_NBP 20
|
|
|
|
#define NS_MS 30
|
|
|
|
#define NS_STDA 31
|
|
|
|
#define NS_NTDS 32
|
|
|
|
#define NS_EMAIL 37
|
|
|
|
#define NS_PNRPNAME 38
|
|
|
|
#define NS_PNRPCLOUD 39
|
|
|
|
#define NS_X500 40
|
|
|
|
#define NS_NIS 41
|
|
|
|
#define NS_NISPLUS 42
|
|
|
|
#define NS_WRQ 50
|
|
|
|
#define NS_NETDES 60
|
|
|
|
|
2000-09-27 00:20:14 +02:00
|
|
|
#ifndef GUID_DEFINED
|
2003-08-28 23:43:34 +02:00
|
|
|
#include <guiddef.h>
|
2000-09-27 00:20:14 +02:00
|
|
|
#endif
|
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
#define MAX_PROTOCOL_CHAIN 7
|
|
|
|
#define BASE_PROTOCOL 1
|
|
|
|
#define LAYERED_PROTOCOL 0
|
2000-06-18 19:23:17 +02:00
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
typedef struct _WSAPROTOCOLCHAIN
|
2000-06-18 19:23:17 +02:00
|
|
|
{
|
2001-11-14 22:26:23 +01:00
|
|
|
int ChainLen; /* the length of the chain, */
|
|
|
|
/* length = 0 means layered protocol, */
|
|
|
|
/* length = 1 means base protocol, */
|
|
|
|
/* length > 1 means protocol chain */
|
|
|
|
DWORD ChainEntries[MAX_PROTOCOL_CHAIN]; /* a list of dwCatalogEntryIds */
|
2000-06-18 19:23:17 +02:00
|
|
|
} WSAPROTOCOLCHAIN, * LPWSAPROTOCOLCHAIN;
|
|
|
|
|
2013-08-02 02:51:31 +02:00
|
|
|
/* constants used in dwProviderFlags from struct WSAPROTOCOL_INFO */
|
|
|
|
#define PFL_MULTIPLE_PROTO_ENTRIES 0x00000001
|
|
|
|
#define PFL_RECOMMENDED_PROTO_ENTRY 0x00000002
|
|
|
|
#define PFL_HIDDEN 0x00000004
|
|
|
|
#define PFL_MATCHES_PROTOCOL_ZERO 0x00000008
|
|
|
|
|
2004-11-02 00:18:47 +01:00
|
|
|
#define XP1_CONNECTIONLESS 0x00000001
|
|
|
|
#define XP1_GUARANTEED_DELIVERY 0x00000002
|
|
|
|
#define XP1_GUARANTEED_ORDER 0x00000004
|
|
|
|
#define XP1_MESSAGE_ORIENTED 0x00000008
|
|
|
|
#define XP1_PSEUDO_STREAM 0x00000010
|
|
|
|
#define XP1_GRACEFUL_CLOSE 0x00000020
|
|
|
|
#define XP1_EXPEDITED_DATA 0x00000040
|
|
|
|
#define XP1_CONNECT_DATA 0x00000080
|
|
|
|
#define XP1_DISCONNECT_DATA 0x00000100
|
|
|
|
#define XP1_SUPPORT_BROADCAST 0x00000200
|
|
|
|
#define XP1_SUPPORT_MULTIPOINT 0x00000400
|
|
|
|
#define XP1_MULTIPOINT_CONTROL_PLANE 0x00000800
|
|
|
|
#define XP1_MULTIPOINT_DATA_PLANE 0x00001000
|
|
|
|
#define XP1_QOS_SUPPORTED 0x00002000
|
|
|
|
#define XP1_INTERRUPT 0x00004000
|
|
|
|
#define XP1_UNI_SEND 0x00008000
|
|
|
|
#define XP1_UNI_RECV 0x00010000
|
|
|
|
#define XP1_IFS_HANDLES 0x00020000
|
|
|
|
#define XP1_PARTIAL_MESSAGE 0x00040000
|
|
|
|
|
|
|
|
#define BIGENDIAN 0x0000
|
|
|
|
#define LITTLEENDIAN 0x0001
|
|
|
|
|
|
|
|
#define SECURITY_PROTOCOL_NONE 0x0000
|
|
|
|
|
2015-11-04 14:59:00 +01:00
|
|
|
typedef struct /*WS(pollfd)*/
|
|
|
|
{
|
|
|
|
SOCKET fd;
|
|
|
|
SHORT events;
|
|
|
|
SHORT revents;
|
|
|
|
} WSAPOLLFD;
|
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
#define WSAPROTOCOL_LEN 255
|
|
|
|
typedef struct _WSAPROTOCOL_INFOA
|
2000-06-18 19:23:17 +02:00
|
|
|
{
|
|
|
|
DWORD dwServiceFlags1;
|
|
|
|
DWORD dwServiceFlags2;
|
|
|
|
DWORD dwServiceFlags3;
|
|
|
|
DWORD dwServiceFlags4;
|
|
|
|
DWORD dwProviderFlags;
|
|
|
|
GUID ProviderId;
|
|
|
|
DWORD dwCatalogEntryId;
|
|
|
|
WSAPROTOCOLCHAIN ProtocolChain;
|
|
|
|
int iVersion;
|
|
|
|
int iAddressFamily;
|
|
|
|
int iMaxSockAddr;
|
|
|
|
int iMinSockAddr;
|
|
|
|
int iSocketType;
|
|
|
|
int iProtocol;
|
|
|
|
int iProtocolMaxOffset;
|
|
|
|
int iNetworkByteOrder;
|
|
|
|
int iSecurityScheme;
|
|
|
|
DWORD dwMessageSize;
|
|
|
|
DWORD dwProviderReserved;
|
2001-11-14 22:26:23 +01:00
|
|
|
CHAR szProtocol[WSAPROTOCOL_LEN+1];
|
2000-06-18 19:23:17 +02:00
|
|
|
} WSAPROTOCOL_INFOA, * LPWSAPROTOCOL_INFOA;
|
|
|
|
|
2001-10-02 19:46:59 +02:00
|
|
|
typedef struct _WSAPROTOCOL_INFOW
|
|
|
|
{
|
|
|
|
DWORD dwServiceFlags1;
|
|
|
|
DWORD dwServiceFlags2;
|
|
|
|
DWORD dwServiceFlags3;
|
|
|
|
DWORD dwServiceFlags4;
|
|
|
|
DWORD dwProviderFlags;
|
|
|
|
GUID ProviderId;
|
|
|
|
DWORD dwCatalogEntryId;
|
|
|
|
WSAPROTOCOLCHAIN ProtocolChain;
|
|
|
|
int iVersion;
|
|
|
|
int iAddressFamily;
|
|
|
|
int iMaxSockAddr;
|
|
|
|
int iMinSockAddr;
|
|
|
|
int iSocketType;
|
|
|
|
int iProtocol;
|
|
|
|
int iProtocolMaxOffset;
|
|
|
|
int iNetworkByteOrder;
|
|
|
|
int iSecurityScheme;
|
|
|
|
DWORD dwMessageSize;
|
|
|
|
DWORD dwProviderReserved;
|
2001-11-14 22:26:23 +01:00
|
|
|
WCHAR szProtocol[WSAPROTOCOL_LEN+1];
|
|
|
|
} WSAPROTOCOL_INFOW, *LPWSAPROTOCOL_INFOW;
|
2001-10-02 19:46:59 +02:00
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(WSAPROTOCOL_INFO)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPWSAPROTOCOL_INFO)
|
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
typedef struct _WSANETWORKEVENTS
|
2000-06-18 19:23:17 +02:00
|
|
|
{
|
2007-06-01 12:10:32 +02:00
|
|
|
LONG lNetworkEvents;
|
2001-11-14 22:26:23 +01:00
|
|
|
int iErrorCode[FD_MAX_EVENTS];
|
1999-09-27 13:48:11 +02:00
|
|
|
} WSANETWORKEVENTS, *LPWSANETWORKEVENTS;
|
|
|
|
|
2002-11-13 20:42:23 +01:00
|
|
|
typedef struct _WSANSClassInfoA
|
|
|
|
{
|
|
|
|
LPSTR lpszName;
|
|
|
|
DWORD dwNameSpace;
|
|
|
|
DWORD dwValueType;
|
|
|
|
DWORD dwValueSize;
|
|
|
|
LPVOID lpValue;
|
|
|
|
} WSANSCLASSINFOA, *PWSANSCLASSINFOA, *LPWSANSCLASSINFOA;
|
|
|
|
|
|
|
|
typedef struct _WSANSClassInfoW
|
|
|
|
{
|
|
|
|
LPSTR lpszName;
|
|
|
|
DWORD dwNameSpace;
|
|
|
|
DWORD dwValueType;
|
|
|
|
DWORD dwValueSize;
|
|
|
|
LPVOID lpValue;
|
|
|
|
} WSANSCLASSINFOW, *PWSANSCLASSINFOW, *LPWSANSCLASSINFOW;
|
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(WSANSCLASSINFO)
|
|
|
|
DECL_WINELIB_TYPE_AW(PWSANSCLASSINFO)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPWSANSCLASSINFO)
|
|
|
|
|
|
|
|
typedef struct _WSAServiceClassInfoA
|
|
|
|
{
|
|
|
|
LPGUID lpServiceClassId;
|
|
|
|
LPSTR lpszServiceClassName;
|
|
|
|
DWORD dwCount;
|
|
|
|
LPWSANSCLASSINFOA lpClassInfos;
|
|
|
|
} WSASERVICECLASSINFOA, *PWSASERVICECLASSINFOA, *LPWSASERVICECLASSINFOA;
|
|
|
|
|
|
|
|
typedef struct _WSAServiceClassInfoW
|
|
|
|
{
|
|
|
|
LPGUID lpServiceClassId;
|
|
|
|
LPWSTR lpszServiceClassName;
|
|
|
|
DWORD dwCount;
|
|
|
|
LPWSANSCLASSINFOW lpClassInfos;
|
|
|
|
} WSASERVICECLASSINFOW, *PWSASERVICECLASSINFOW, *LPWSASERVICECLASSINFOW;
|
|
|
|
|
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(WSASERVICECLASSINFO)
|
|
|
|
DECL_WINELIB_TYPE_AW(PWSASERVICECLASSINFO)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPWSASERVICECLASSINFO)
|
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
#define WSAEVENT HANDLE
|
|
|
|
#define LPWSAEVENT LPHANDLE
|
|
|
|
#define WSAOVERLAPPED OVERLAPPED
|
|
|
|
typedef struct _OVERLAPPED* LPWSAOVERLAPPED;
|
|
|
|
|
|
|
|
#define WSA_IO_PENDING (ERROR_IO_PENDING)
|
|
|
|
#define WSA_IO_INCOMPLETE (ERROR_IO_INCOMPLETE)
|
|
|
|
#define WSA_INVALID_HANDLE (ERROR_INVALID_HANDLE)
|
|
|
|
#define WSA_INVALID_PARAMETER (ERROR_INVALID_PARAMETER)
|
|
|
|
#define WSA_NOT_ENOUGH_MEMORY (ERROR_NOT_ENOUGH_MEMORY)
|
|
|
|
#define WSA_OPERATION_ABORTED (ERROR_OPERATION_ABORTED)
|
|
|
|
|
|
|
|
#define WSA_INVALID_EVENT ((WSAEVENT)NULL)
|
|
|
|
#define WSA_MAXIMUM_WAIT_EVENTS (MAXIMUM_WAIT_OBJECTS)
|
2011-11-21 01:11:46 +01:00
|
|
|
#define WSA_WAIT_FAILED ((DWORD)-1)
|
2001-11-14 22:26:23 +01:00
|
|
|
#define WSA_WAIT_EVENT_0 (WAIT_OBJECT_0)
|
|
|
|
#define WSA_WAIT_IO_COMPLETION (WAIT_IO_COMPLETION)
|
|
|
|
#define WSA_WAIT_TIMEOUT (WAIT_TIMEOUT)
|
|
|
|
#define WSA_INFINITE (INFINITE)
|
|
|
|
|
2000-06-18 19:23:17 +02:00
|
|
|
typedef unsigned int GROUP;
|
2001-11-14 22:26:23 +01:00
|
|
|
#define SG_UNCONSTRAINED_GROUP 0x01
|
|
|
|
#define SG_CONSTRAINED_GROUP 0x02
|
|
|
|
|
2002-01-14 19:33:44 +01:00
|
|
|
/*
|
|
|
|
* FLOWSPEC and SERVICETYPE should eventually move to qos.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef ULONG SERVICETYPE;
|
|
|
|
|
|
|
|
typedef struct _FLOWSPEC {
|
|
|
|
unsigned int TokenRate;
|
|
|
|
unsigned int TokenBucketSize;
|
|
|
|
unsigned int PeakBandwidth;
|
|
|
|
unsigned int Latency;
|
2004-04-06 00:23:05 +02:00
|
|
|
unsigned int DelayVariation;
|
2002-01-14 19:33:44 +01:00
|
|
|
SERVICETYPE ServiceType;
|
|
|
|
unsigned int MaxSduSize;
|
|
|
|
unsigned int MinimumPolicedSize;
|
|
|
|
} FLOWSPEC, *PFLOWSPEC, *LPFLOWSPEC;
|
|
|
|
|
|
|
|
typedef struct _QUALITYOFSERVICE {
|
|
|
|
FLOWSPEC SendingFlowspec;
|
|
|
|
FLOWSPEC ReceivingFlowspec;
|
2002-06-01 01:06:46 +02:00
|
|
|
WSABUF ProviderSpecific;
|
2002-01-14 19:33:44 +01:00
|
|
|
} QOS, *LPQOS;
|
2001-11-14 22:26:23 +01:00
|
|
|
|
2002-02-01 00:22:07 +01:00
|
|
|
typedef int (CALLBACK *LPCONDITIONPROC)
|
2001-11-14 22:26:23 +01:00
|
|
|
(
|
|
|
|
LPWSABUF lpCallerId,
|
|
|
|
LPWSABUF lpCallerData,
|
|
|
|
LPQOS lpSQOS,
|
|
|
|
LPQOS lpGQOS,
|
|
|
|
LPWSABUF lpCalleeId,
|
|
|
|
LPWSABUF lpCalleeData,
|
|
|
|
GROUP *g,
|
2011-06-03 14:36:54 +02:00
|
|
|
DWORD_PTR dwCallbackData
|
2001-11-14 22:26:23 +01:00
|
|
|
);
|
2000-06-18 19:23:17 +02:00
|
|
|
|
2002-02-01 00:22:07 +01:00
|
|
|
typedef void (CALLBACK *LPWSAOVERLAPPED_COMPLETION_ROUTINE)
|
2000-06-18 19:23:17 +02:00
|
|
|
(
|
2001-11-14 22:26:23 +01:00
|
|
|
DWORD dwError,
|
|
|
|
DWORD cbTransferred,
|
|
|
|
LPWSAOVERLAPPED lpOverlapped,
|
|
|
|
DWORD dwFlags
|
2000-06-18 19:23:17 +02:00
|
|
|
);
|
1999-09-27 13:48:11 +02:00
|
|
|
|
2004-04-06 00:23:05 +02:00
|
|
|
#ifndef _tagBLOB_DEFINED
|
|
|
|
#define _tagBLOB_DEFINED
|
|
|
|
#define _BLOB_DEFINED
|
|
|
|
#define _LPBLOB_DEFINED
|
|
|
|
typedef struct _BLOB {
|
|
|
|
ULONG cbSize;
|
|
|
|
BYTE *pBlobData;
|
|
|
|
} BLOB, *LPBLOB;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* addressfamily protocol pairs */
|
|
|
|
typedef struct _AFPROTOCOLS {
|
|
|
|
INT iAddressFamily;
|
|
|
|
INT iProtocol;
|
|
|
|
} AFPROTOCOLS, *PAFPROTOCOLS, *LPAFPROTOCOLS;
|
|
|
|
|
|
|
|
/* client query definitions */
|
|
|
|
typedef enum _WSAEcomparator {
|
|
|
|
COMP_EQUAL = 0,
|
|
|
|
COMP_NOTLESS
|
|
|
|
} WSAECOMPARATOR, *PWSAECOMPARATOR, *LPWSAECOMPARATOR;
|
|
|
|
|
|
|
|
typedef struct _WSAVersion {
|
|
|
|
DWORD dwVersion;
|
|
|
|
WSAECOMPARATOR ecHow;
|
|
|
|
} WSAVERSION, *PWSAVERSION, *LPWSAVERSION;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _WSAQuerySetA {
|
|
|
|
DWORD dwSize;
|
|
|
|
LPSTR lpszServiceInstanceName;
|
|
|
|
LPGUID lpServiceClassId;
|
|
|
|
LPWSAVERSION lpVersion;
|
|
|
|
LPSTR lpszComment;
|
|
|
|
DWORD dwNameSpace;
|
|
|
|
LPGUID lpNSProviderId;
|
|
|
|
LPSTR lpszContext;
|
|
|
|
DWORD dwNumberOfProtocols;
|
|
|
|
LPAFPROTOCOLS lpafpProtocols;
|
|
|
|
LPSTR lpszQueryString;
|
|
|
|
DWORD dwNumberOfCsAddrs;
|
|
|
|
LPCSADDR_INFO lpcsaBuffer;
|
|
|
|
DWORD dwOutputFlags;
|
|
|
|
LPBLOB lpBlob;
|
|
|
|
} WSAQUERYSETA, *PWSAQUERYSETA, *LPWSAQUERYSETA;
|
|
|
|
|
|
|
|
typedef struct _WSAQuerySetW {
|
|
|
|
DWORD dwSize;
|
|
|
|
LPWSTR lpszServiceInstanceName;
|
|
|
|
LPGUID lpServiceClassId;
|
|
|
|
LPWSAVERSION lpVersion;
|
|
|
|
LPWSTR lpszComment;
|
|
|
|
DWORD dwNameSpace;
|
|
|
|
LPGUID lpNSProviderId;
|
|
|
|
LPWSTR lpszContext;
|
|
|
|
DWORD dwNumberOfProtocols;
|
|
|
|
LPAFPROTOCOLS lpafpProtocols;
|
|
|
|
LPWSTR lpszQueryString;
|
|
|
|
DWORD dwNumberOfCsAddrs;
|
|
|
|
LPCSADDR_INFO lpcsaBuffer;
|
|
|
|
DWORD dwOutputFlags;
|
|
|
|
LPBLOB lpBlob;
|
|
|
|
} WSAQUERYSETW, *PWSAQUERYSETW, *LPWSAQUERYSETW;
|
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(WSAQUERYSET)
|
|
|
|
DECL_WINELIB_TYPE_AW(PWSAQUERYSET)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPWSAQUERYSET)
|
1999-09-27 13:48:11 +02:00
|
|
|
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
typedef enum _WSAESETSERVICEOP {
|
|
|
|
RNRSERVICE_REGISTER = 0,
|
|
|
|
RNRSERVICE_DEREGISTER,
|
|
|
|
RNRSERVICE_DELETE
|
|
|
|
} WSAESETSERVICEOP, *PWSAESETSERVICEOP, *LPWSAESETSERVICEOP;
|
|
|
|
|
|
|
|
typedef struct _WSANAMESPACE_INFOA {
|
|
|
|
GUID NSProviderId;
|
|
|
|
DWORD dwNameSpace;
|
|
|
|
BOOL fActive;
|
|
|
|
DWORD dwVersion;
|
|
|
|
LPSTR lpszIdentifier;
|
|
|
|
} WSANAMESPACE_INFOA, *PWSANAMESPACE_INFOA, *LPWSANAMESPACE_INFOA;
|
|
|
|
|
|
|
|
typedef struct _WSANAMESPACE_INFOW {
|
|
|
|
GUID NSProviderId;
|
|
|
|
DWORD dwNameSpace;
|
|
|
|
BOOL fActive;
|
|
|
|
DWORD dwVersion;
|
|
|
|
LPWSTR lpszIdentifier;
|
|
|
|
} WSANAMESPACE_INFOW, *PWSANAMESPACE_INFOW, *LPWSANAMESPACE_INFOW;
|
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(WSANAMESPACE_INFO)
|
|
|
|
DECL_WINELIB_TYPE_AW(PWSANAMESPACE_INFO)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPWSANAMESPACE_INFO)
|
2001-11-14 22:26:23 +01:00
|
|
|
|
2010-09-09 18:32:56 +02:00
|
|
|
typedef enum _WSACOMPLETIONTYPE {
|
|
|
|
NSP_NOTIFY_IMMEDIATELY = 0,
|
|
|
|
NSP_NOTIFY_HWND = 1,
|
|
|
|
NSP_NOTIFY_EVENT = 2,
|
|
|
|
NSP_NOTIFY_PORT = 3,
|
|
|
|
NSP_NOTIFY_APC = 4
|
|
|
|
} WSACOMPLETIONTYPE, * PWSACOMPLETIONTYPE, * LPWSACOMPLETIONTYPE;
|
|
|
|
|
|
|
|
typedef struct _WSACOMPLETION {
|
|
|
|
WSACOMPLETIONTYPE Type;
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
HWND hWnd;
|
|
|
|
UINT uMsg;
|
|
|
|
WPARAM context;
|
|
|
|
} WindowMessage;
|
|
|
|
struct {
|
|
|
|
LPWSAOVERLAPPED lpOverlapped;
|
|
|
|
} Event;
|
|
|
|
struct {
|
|
|
|
LPWSAOVERLAPPED lpOverlapped;
|
|
|
|
LPWSAOVERLAPPED_COMPLETION_ROUTINE lpfnCompletionProc;
|
|
|
|
} Apc;
|
|
|
|
struct {
|
|
|
|
LPWSAOVERLAPPED lpOverlapped;
|
|
|
|
HANDLE hPort;
|
|
|
|
ULONG_PTR Key;
|
|
|
|
} Port;
|
|
|
|
} Parameters;
|
|
|
|
} WSACOMPLETION, *PWSACOMPLETION, *LPWSACOMPLETION;
|
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
/*
|
|
|
|
* Winsock Function Typedefs
|
|
|
|
*
|
2002-06-01 01:06:46 +02:00
|
|
|
* Remember to keep this section in sync with the
|
2001-11-14 22:26:23 +01:00
|
|
|
* "Prototypes" section in winsock.h.
|
|
|
|
*/
|
|
|
|
#if WS_API_TYPEDEFS
|
2006-10-12 13:45:39 +02:00
|
|
|
typedef HANDLE (WINAPI *LPFN_WSAASYNCGETHOSTBYADDR)(HWND,WS(u_int),const char*,int,int,char*,int);
|
|
|
|
typedef HANDLE (WINAPI *LPFN_WSAASYNCGETHOSTBYNAME)(HWND,WS(u_int),const char*,char*,int);
|
|
|
|
typedef HANDLE (WINAPI *LPFN_WSAASYNCGETPROTOBYNAME)(HWND,WS(u_int),const char*,char*,int);
|
|
|
|
typedef HANDLE (WINAPI *LPFN_WSAASYNCGETPROTOBYNUMBER)(HWND,WS(u_int),int,char*,int);
|
|
|
|
typedef HANDLE (WINAPI *LPFN_WSAASYNCGETSERVBYNAME)(HWND,WS(u_int),const char*,const char*,char*,int);
|
|
|
|
typedef HANDLE (WINAPI *LPFN_WSAASYNCGETSERVBYPORT)(HWND,WS(u_int),int,const char*,char*,int);
|
2007-06-01 12:10:32 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSAASYNCSELECT)(SOCKET,HWND,WS(u_int),LONG);
|
2003-05-13 02:37:36 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSACANCELASYNCREQUEST)(HANDLE);
|
2002-09-23 22:45:57 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSACANCELBLOCKINGCALL)(void);
|
|
|
|
typedef int (WINAPI *LPFN_WSACLEANUP)(void);
|
|
|
|
typedef int (WINAPI *LPFN_WSAGETLASTERROR)(void);
|
|
|
|
typedef BOOL (WINAPI *LPFN_WSAISBLOCKING)(void);
|
|
|
|
typedef FARPROC (WINAPI *LPFN_WSASETBLOCKINGHOOK)(FARPROC);
|
|
|
|
typedef void (WINAPI *LPFN_WSASETLASTERROR)(int);
|
|
|
|
typedef int (WINAPI *LPFN_WSASTARTUP)(WORD,LPWSADATA);
|
|
|
|
typedef int (WINAPI *LPFN_WSAUNHOOKBLOCKINGHOOK)(void);
|
|
|
|
|
|
|
|
typedef SOCKET (WINAPI *LPFN_ACCEPT)(SOCKET,struct WS(sockaddr)*,int*);
|
|
|
|
typedef int (WINAPI *LPFN_BIND)(SOCKET,const struct WS(sockaddr)*,int);
|
|
|
|
typedef int (WINAPI *LPFN_CLOSESOCKET)(SOCKET);
|
|
|
|
typedef int (WINAPI *LPFN_CONNECT)(SOCKET,const struct WS(sockaddr)*,int);
|
|
|
|
typedef struct WS(hostent)* (WINAPI *LPFN_GETHOSTBYADDR)(const char*,int,int);
|
|
|
|
typedef struct WS(hostent)* (WINAPI *LPFN_GETHOSTBYNAME)(const char*);
|
|
|
|
typedef int (WINAPI *LPFN_GETHOSTNAME)(char*,int);
|
|
|
|
typedef int (WINAPI *LPFN_GETPEERNAME)(SOCKET,struct WS(sockaddr)*,int*);
|
|
|
|
typedef struct WS(protoent)* (WINAPI *LPFN_GETPROTOBYNAME)(const char*);
|
|
|
|
typedef struct WS(protoent)* (WINAPI *LPFN_GETPROTOBYNUMBER)(int);
|
2001-11-14 22:26:23 +01:00
|
|
|
#ifdef WS_DEFINE_SELECT
|
|
|
|
typedef int (WINAPI* LPFN_SELECT)(int,WS(fd_set)*,WS(fd_set)*,WS(fd_set)*,const struct WS(timeval)*);
|
|
|
|
#endif
|
2002-09-23 22:45:57 +02:00
|
|
|
typedef struct WS(servent)* (WINAPI *LPFN_GETSERVBYNAME)(const char*,const char*);
|
|
|
|
typedef struct WS(servent)* (WINAPI *LPFN_GETSERVBYPORT)(int,const char*);
|
|
|
|
typedef int (WINAPI *LPFN_GETSOCKNAME)(SOCKET,struct WS(sockaddr)*,int*);
|
|
|
|
typedef int (WINAPI *LPFN_GETSOCKOPT)(SOCKET,int,int,char*,int*);
|
2010-04-03 18:09:18 +02:00
|
|
|
typedef ULONG (WINAPI *LPFN_HTONL)(ULONG);
|
2006-10-12 13:45:39 +02:00
|
|
|
typedef WS(u_short) (WINAPI *LPFN_HTONS)(WS(u_short));
|
2007-06-01 12:10:32 +02:00
|
|
|
typedef ULONG (WINAPI *LPFN_INET_ADDR)(const char*);
|
2010-08-03 05:25:10 +02:00
|
|
|
typedef char* (WINAPI *LPFN_INET_NTOA)(struct WS(in_addr));
|
2010-04-03 18:09:18 +02:00
|
|
|
typedef int (WINAPI *LPFN_IOCTLSOCKET)(SOCKET,LONG,ULONG*);
|
2002-09-23 22:45:57 +02:00
|
|
|
typedef int (WINAPI *LPFN_LISTEN)(SOCKET,int);
|
2010-04-03 18:09:18 +02:00
|
|
|
typedef ULONG (WINAPI *LPFN_NTOHL)(ULONG);
|
2006-10-12 13:45:39 +02:00
|
|
|
typedef WS(u_short) (WINAPI *LPFN_NTOHS)(WS(u_short));
|
2002-09-23 22:45:57 +02:00
|
|
|
typedef int (WINAPI *LPFN_RECV)(SOCKET,char*,int,int);
|
|
|
|
typedef int (WINAPI *LPFN_RECVFROM)(SOCKET,char*,int,int,struct WS(sockaddr)*,int*);
|
|
|
|
typedef int (WINAPI *LPFN_SEND)(SOCKET,const char*,int,int);
|
|
|
|
typedef int (WINAPI *LPFN_SENDTO)(SOCKET,const char*,int,int,const struct WS(sockaddr)*,int);
|
|
|
|
typedef int (WINAPI *LPFN_SETSOCKOPT)(SOCKET,int,int,const char*,int);
|
|
|
|
typedef int (WINAPI *LPFN_SHUTDOWN)(SOCKET,int);
|
|
|
|
typedef SOCKET (WINAPI *LPFN_SOCKET)(int,int,int);
|
2001-11-14 22:26:23 +01:00
|
|
|
#endif /* WS_API_TYPEDEFS */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Winsock2 Prototypes
|
|
|
|
*
|
2002-06-01 01:06:46 +02:00
|
|
|
* Remember to keep this section in sync with the
|
2001-11-14 22:26:23 +01:00
|
|
|
* "Winsock2 Function Typedefs" section below.
|
|
|
|
*/
|
|
|
|
#if WS_API_PROTOTYPES
|
2011-06-03 14:36:54 +02:00
|
|
|
SOCKET WINAPI WSAAccept(SOCKET,struct WS(sockaddr)*,LPINT,LPCONDITIONPROC,DWORD_PTR);
|
2001-11-14 22:26:23 +01:00
|
|
|
INT WINAPI WSAAddressToStringA(LPSOCKADDR,DWORD,LPWSAPROTOCOL_INFOA,LPSTR,LPDWORD);
|
|
|
|
INT WINAPI WSAAddressToStringW(LPSOCKADDR,DWORD,LPWSAPROTOCOL_INFOW,LPWSTR,LPDWORD);
|
|
|
|
#define WSAAddressToString WINELIB_NAME_AW(WSAAddressToString)
|
|
|
|
BOOL WINAPI WSACloseEvent(WSAEVENT);
|
|
|
|
int WINAPI WSAConnect(SOCKET,const struct WS(sockaddr)*,int,LPWSABUF,LPWSABUF,LPQOS,LPQOS);
|
2000-06-18 19:23:17 +02:00
|
|
|
WSAEVENT WINAPI WSACreateEvent(void);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
INT WINAPI WSADuplicateSocketA(SOCKET,DWORD,LPWSAPROTOCOL_INFOA);
|
|
|
|
INT WINAPI WSADuplicateSocketW(SOCKET,DWORD,LPWSAPROTOCOL_INFOW);
|
|
|
|
#define WSADuplicateSocket WINELIB_NAME_AW(WSADuplicateSocket)
|
|
|
|
INT WINAPI WSAEnumNameSpaceProvidersA(LPDWORD,LPWSANAMESPACE_INFOA);
|
|
|
|
INT WINAPI WSAEnumNameSpaceProvidersW(LPDWORD,LPWSANAMESPACE_INFOW);
|
|
|
|
#define WSAEnumNameSpaceProviders WINELIB_NAME_AW(WSAEnumNameSpaceProviders)
|
2001-11-14 22:26:23 +01:00
|
|
|
int WINAPI WSAEnumNetworkEvents(SOCKET,WSAEVENT,LPWSANETWORKEVENTS);
|
|
|
|
int WINAPI WSAEnumProtocolsA(LPINT,LPWSAPROTOCOL_INFOA,LPDWORD);
|
|
|
|
int WINAPI WSAEnumProtocolsW(LPINT,LPWSAPROTOCOL_INFOW,LPDWORD);
|
|
|
|
#define WSAEnumProtocols WINELIB_NAME_AW(WSAEnumProtocols)
|
2007-06-01 12:10:32 +02:00
|
|
|
int WINAPI WSAEventSelect(SOCKET,WSAEVENT,LONG);
|
2001-11-14 22:26:23 +01:00
|
|
|
BOOL WINAPI WSAGetOverlappedResult(SOCKET,LPWSAOVERLAPPED,LPDWORD,BOOL,LPDWORD);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
BOOL WINAPI WSAGetQOSByName(SOCKET,LPWSABUF,LPQOS);
|
|
|
|
INT WINAPI WSAGetServiceClassInfoA(LPGUID,LPGUID,LPDWORD,LPWSASERVICECLASSINFOA);
|
|
|
|
INT WINAPI WSAGetServiceClassInfoW(LPGUID,LPGUID,LPDWORD,LPWSASERVICECLASSINFOW);
|
|
|
|
#define WSAGetServiceClassInfo WINELIB_NAME_AW(WSAGetServiceClassInfo)
|
|
|
|
INT WINAPI WSAGetServiceClassNameByClassIdA(LPGUID,LPSTR,LPDWORD);
|
|
|
|
INT WINAPI WSAGetServiceClassNameByClassIdW(LPGUID,LPWSTR,LPDWORD);
|
|
|
|
#define WSAGetServiceClassNameByClassId WINELIB_NAME_AW(WSAGetServiceClassNameByClassId)
|
2010-04-03 18:09:18 +02:00
|
|
|
int WINAPI WSAHtonl(SOCKET,ULONG,ULONG*);
|
2006-10-12 13:45:39 +02:00
|
|
|
int WINAPI WSAHtons(SOCKET,WS(u_short),WS(u_short)*);
|
2002-11-13 20:42:23 +01:00
|
|
|
int WINAPI WSAInstallServiceClassA(LPWSASERVICECLASSINFOA);
|
|
|
|
int WINAPI WSAInstallServiceClassW(LPWSASERVICECLASSINFOW);
|
|
|
|
#define WSAInstallServiceClass WINELIB_NAME_AW(WSAInstallServiceClass)
|
2001-11-14 22:26:23 +01:00
|
|
|
int WINAPI WSAIoctl(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
2003-12-11 06:16:48 +01:00
|
|
|
SOCKET WINAPI WSAJoinLeaf(SOCKET,const struct WS(sockaddr)*,int,LPWSABUF,LPWSABUF,LPQOS,LPQOS,DWORD);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
INT WINAPI WSALookupServiceBeginA(LPWSAQUERYSETA,DWORD,LPHANDLE);
|
|
|
|
INT WINAPI WSALookupServiceBeginW(LPWSAQUERYSETW,DWORD,LPHANDLE);
|
|
|
|
#define WSALookupServiceBegin WINELIB_NAME_AW(WSALookupServiceBegin)
|
|
|
|
INT WINAPI WSALookupServiceEnd(HANDLE);
|
|
|
|
INT WINAPI WSALookupServiceNextA(HANDLE,DWORD,LPDWORD,LPWSAQUERYSETA);
|
|
|
|
INT WINAPI WSALookupServiceNextW(HANDLE,DWORD,LPDWORD,LPWSAQUERYSETW);
|
|
|
|
#define WSALookupServiceNext WINELIB_NAME_AW(WSALookupServiceNext)
|
2010-09-09 18:32:56 +02:00
|
|
|
int WINAPI WSANSPIoctl(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSACOMPLETION);
|
2010-04-03 18:09:18 +02:00
|
|
|
int WINAPI WSANtohl(SOCKET,ULONG,ULONG*);
|
2006-10-12 13:45:39 +02:00
|
|
|
int WINAPI WSANtohs(SOCKET,WS(u_short),WS(u_short)*);
|
2015-11-04 14:59:00 +01:00
|
|
|
int WINAPI WSAPoll(WSAPOLLFD*,ULONG,int);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
INT WINAPI WSAProviderConfigChange(LPHANDLE,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
2001-11-14 22:26:23 +01:00
|
|
|
int WINAPI WSARecv(SOCKET,LPWSABUF,DWORD,LPDWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
|
|
|
int WINAPI WSARecvDisconnect(SOCKET,LPWSABUF);
|
|
|
|
int WINAPI WSARecvFrom(SOCKET,LPWSABUF,DWORD,LPDWORD,LPDWORD,struct WS(sockaddr)*,LPINT,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
INT WINAPI WSARemoveServiceClass(LPGUID);
|
2001-11-14 22:26:23 +01:00
|
|
|
BOOL WINAPI WSAResetEvent(WSAEVENT);
|
|
|
|
int WINAPI WSASend(SOCKET,LPWSABUF,DWORD,LPDWORD,DWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
|
|
|
int WINAPI WSASendDisconnect(SOCKET,LPWSABUF);
|
|
|
|
int WINAPI WSASendTo(SOCKET,LPWSABUF,DWORD,LPDWORD,DWORD,const struct WS(sockaddr)*,int,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
|
|
|
BOOL WINAPI WSASetEvent(WSAEVENT);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
INT WINAPI WSASetServiceA(LPWSAQUERYSETA,WSAESETSERVICEOP,DWORD);
|
|
|
|
INT WINAPI WSASetServiceW(LPWSAQUERYSETW,WSAESETSERVICEOP,DWORD);
|
|
|
|
#define WSASetService WINELIB_NAME_AW(WSASetService)
|
2001-11-14 22:26:23 +01:00
|
|
|
SOCKET WINAPI WSASocketA(int,int,int,LPWSAPROTOCOL_INFOA,GROUP,DWORD);
|
|
|
|
SOCKET WINAPI WSASocketW(int,int,int,LPWSAPROTOCOL_INFOW,GROUP,DWORD);
|
2004-09-14 01:18:19 +02:00
|
|
|
#define WSASocket WINELIB_NAME_AW(WSASocket)
|
2001-11-14 22:26:23 +01:00
|
|
|
INT WINAPI WSAStringToAddressA(LPSTR,INT,LPWSAPROTOCOL_INFOA,LPSOCKADDR,LPINT);
|
2004-09-14 01:18:19 +02:00
|
|
|
INT WINAPI WSAStringToAddressW(LPWSTR,INT,LPWSAPROTOCOL_INFOW,LPSOCKADDR,LPINT);
|
|
|
|
#define WSAStringToAddress WINELIB_NAME_AW(WSAStringToAddress)
|
2001-11-14 22:26:23 +01:00
|
|
|
DWORD WINAPI WSAWaitForMultipleEvents(DWORD,const WSAEVENT*,BOOL,DWORD,BOOL);
|
|
|
|
#endif /* WS_API_PROTOTYPES */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Winsock2 Function Typedefs
|
|
|
|
*
|
2002-06-01 01:06:46 +02:00
|
|
|
* Remember to keep this section in sync with the
|
2001-11-14 22:26:23 +01:00
|
|
|
* "Winsock2 Prototypes" section above.
|
|
|
|
*/
|
|
|
|
#if WS_API_TYPEDEFS
|
2012-03-28 13:52:13 +02:00
|
|
|
typedef SOCKET (WINAPI *LPFN_WSAACCEPT)(SOCKET,struct WS(sockaddr)*,LPINT,LPCONDITIONPROC,DWORD_PTR);
|
|
|
|
typedef INT (WINAPI *LPFN_WSAADDRESSTOSTRINGA)(LPSOCKADDR,DWORD,LPWSAPROTOCOL_INFOA,LPSTR,LPDWORD);
|
|
|
|
typedef INT (WINAPI *LPFN_WSAADDRESSTOSTRINGW)(LPSOCKADDR,DWORD,LPWSAPROTOCOL_INFOW,LPWSTR,LPDWORD);
|
2001-11-14 22:26:23 +01:00
|
|
|
#define LPFN_WSAADDRESSTOSTRING WINELIB_NAME_AW(LPFN_WSAADDRESSTOSTRING)
|
|
|
|
typedef BOOL (WINAPI *LPFN_WSACLOSEEVENT)(WSAEVENT);
|
|
|
|
typedef int (WINAPI *LPFN_WSACONNECT)(SOCKET,const struct WS(sockaddr)*,int,LPWSABUF,LPWSABUF,LPQOS,LPQOS);
|
|
|
|
typedef WSAEVENT (WINAPI *LPFN_WSACREATEEVENT)(void);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
typedef INT (WINAPI *LPFN_WSADUPLICATESOCKETA)(SOCKET,DWORD,LPWSAPROTOCOL_INFOA);
|
|
|
|
typedef INT (WINAPI *LPFN_WSADUPLICATESOCKETW)(SOCKET,DWORD,LPWSAPROTOCOL_INFOW);
|
|
|
|
#define LPFN_WSADUPLICATESOCKET WINELIB_NAME_AW(LPFN_WSADUPLICATESOCKET)
|
2012-03-28 13:52:13 +02:00
|
|
|
typedef INT (WINAPI *LPFN_WSAENUMNAMESPACEPROVIDERSA)(LPDWORD,LPWSANAMESPACE_INFOA);
|
|
|
|
typedef INT (WINAPI *LPFN_WSAENUMNAMESPACEPROVIDERSW)(LPDWORD,LPWSANAMESPACE_INFOW);
|
|
|
|
#define LPFN_WSAENUMNAMESPACEPROVIDERS WINELIB_NAME_AW(LPFN_WSAENUMNAMESPACEPROVIDERS)
|
|
|
|
typedef int (WINAPI *LPFN_WSAENUMNETWORKEVENTS)(SOCKET,WSAEVENT,LPWSANETWORKEVENTS);
|
2001-11-14 22:26:23 +01:00
|
|
|
typedef int (WINAPI *LPFN_WSAENUMPROTOCOLSA)(LPINT,LPWSAPROTOCOL_INFOA,LPDWORD);
|
|
|
|
typedef int (WINAPI *LPFN_WSAENUMPROTOCOLSW)(LPINT,LPWSAPROTOCOL_INFOW,LPDWORD);
|
|
|
|
#define LPFN_WSAENUMPROTOCOLS WINELIB_NAME_AW(LPFN_WSAENUMPROTOCOLS)
|
2007-06-01 12:10:32 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSAEVENTSELECT)(SOCKET,WSAEVENT,LONG);
|
2001-11-14 22:26:23 +01:00
|
|
|
typedef BOOL (WINAPI *LPFN_WSAGETOVERLAPPEDRESULT)(SOCKET,LPWSAOVERLAPPED,LPDWORD,BOOL,LPDWORD);
|
2012-03-28 13:52:13 +02:00
|
|
|
typedef BOOL (WINAPI *LPFN_WSAGETQOSBYNAME)(SOCKET,LPWSABUF,LPQOS);
|
|
|
|
typedef INT (WINAPI *LPFN_WSAGETSERVICECLASSINFOA)(LPGUID,LPGUID,LPDWORD,LPWSASERVICECLASSINFOA);
|
|
|
|
typedef INT (WINAPI *LPFN_WSAGETSERVICECLASSINFOW)(LPGUID,LPGUID,LPDWORD,LPWSASERVICECLASSINFOW);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
#define LPFN_LPFNWSAGETSERVICECLASSINFO WINELIB_NAME_AW(LPFN_LPFNWSAGETSERVICECLASSINFO)
|
|
|
|
typedef INT (WINAPI *LPFN_WSAGETSERVICECLASSNAMEBYCLASSIDA)(LPGUID,LPSTR,LPDWORD);
|
|
|
|
typedef INT (WINAPI *LPFN_WSAGETSERVICECLASSNAMEBYCLASSIDW)(LPGUID,LPWSTR,LPDWORD);
|
|
|
|
#define LPFN_WSAGETSERVICECLASSNAMEBYCLASSID WINELIB_NAME_AW(LPFN_WSAGETSERVICECLASSNAMEBYCLASSID)
|
2010-04-03 18:09:18 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSAHTONL)(SOCKET,ULONG,ULONG*);
|
2006-10-12 13:45:39 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSAHTONS)(SOCKET,WS(u_short),WS(u_short)*);
|
2012-03-28 13:52:13 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSAINSTALLSERVICECLASSA)(LPWSASERVICECLASSINFOA);
|
|
|
|
typedef int (WINAPI *LPFN_WSAINSTALLSERVICECLASSW)(LPWSASERVICECLASSINFOW);
|
2001-11-14 22:26:23 +01:00
|
|
|
typedef int (WINAPI *LPFN_WSAIOCTL)(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
2003-12-11 06:16:48 +01:00
|
|
|
typedef int (WINAPI *LPFN_WSAJOINLEAF)(SOCKET,const struct WS(sockaddr)*,int,LPWSABUF,LPWSABUF,LPQOS,LPQOS,DWORD);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
typedef INT (WINAPI *LPFN_WSALOOKUPSERVICEBEGINA)(LPWSAQUERYSETA,DWORD,LPHANDLE);
|
|
|
|
typedef INT (WINAPI *LPFN_WSALOOKUPSERVICEBEGINW)(LPWSAQUERYSETW,DWORD,LPHANDLE);
|
2014-03-02 03:12:27 +01:00
|
|
|
#define LPFN_WSALOOKUPSERVICEBEGIN WINELIB_NAME_AW(LPFN_WSALOOKUPSERVICEBEGIN)
|
2012-03-28 13:52:13 +02:00
|
|
|
typedef INT (WINAPI *LPFN_WSALOOKUPSERVICEEND)(HANDLE);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
typedef INT (WINAPI *LPFN_WSALOOKUPSERVICENEXTA)(HANDLE,DWORD,LPDWORD,LPWSAQUERYSETA);
|
|
|
|
typedef INT (WINAPI *LPFN_WSALOOKUPSERVICENEXTW)(HANDLE,DWORD,LPDWORD,LPWSAQUERYSETW);
|
|
|
|
#define LPFN_WSALOOKUPSERVICENEXT WINELIB_NAME_AW(LPFN_WSALOOKUPSERVICENEXT)
|
2012-03-28 13:52:13 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSANSPIOCTL)(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSACOMPLETION);
|
2010-04-03 18:09:18 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSANTOHL)(SOCKET,ULONG,ULONG*);
|
2006-10-12 13:45:39 +02:00
|
|
|
typedef int (WINAPI *LPFN_WSANTOHS)(SOCKET,WS(u_short),WS(u_short)*);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
typedef INT (WINAPI *LPFN_WSAPROVIDERCONFIGCHANGE)(LPHANDLE,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
2015-11-04 14:59:00 +01:00
|
|
|
typedef int (WINAPI *LPFN_WSAPOLL)(WSAPOLLFD*,ULONG,int);
|
2001-11-14 22:26:23 +01:00
|
|
|
typedef int (WINAPI *LPFN_WSARECV)(SOCKET,LPWSABUF,DWORD,LPDWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
|
|
|
typedef int (WINAPI *LPFN_WSARECVDISCONNECT)(SOCKET,LPWSABUF);
|
|
|
|
typedef int (WINAPI *LPFN_WSARECVFROM)(SOCKET,LPWSABUF,DWORD,LPDWORD,LPDWORD,struct WS(sockaddr)*,LPINT,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
typedef INT (WINAPI *LPFN_WSAREMOVESERVICECLASS)(LPGUID);
|
2001-11-14 22:26:23 +01:00
|
|
|
typedef BOOL (WINAPI *LPFN_WSARESETEVENT)(WSAEVENT);
|
|
|
|
typedef int (WINAPI *LPFN_WSASEND)(SOCKET,LPWSABUF,DWORD,LPDWORD,DWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
|
|
|
typedef int (WINAPI *LPFN_WSASENDDISCONNECT)(SOCKET,LPWSABUF);
|
|
|
|
typedef int (WINAPI *LPFN_WSASENDTO)(SOCKET,LPWSABUF,DWORD,LPDWORD,DWORD,const struct WS(sockaddr)*,int,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
|
|
|
typedef BOOL (WINAPI *LPFN_WSASETEVENT)(WSAEVENT);
|
Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 15:34:15 +01:00
|
|
|
typedef INT (WINAPI *LPFN_WSASETSERVICEA)(LPWSAQUERYSETA,WSAESETSERVICEOP,DWORD);
|
|
|
|
typedef INT (WINAPI *LPFN_WSASETSERVICEW)(LPWSAQUERYSETW,WSAESETSERVICEOP,DWORD);
|
|
|
|
#define LPFN_WSASETSERVICE WINELIB_NAME_AW(LPFN_WSASETSERVICE)
|
2001-11-14 22:26:23 +01:00
|
|
|
typedef SOCKET (WINAPI *LPFN_WSASOCKETA)(int,int,int,LPWSAPROTOCOL_INFOA,GROUP,DWORD);
|
|
|
|
typedef SOCKET (WINAPI *LPFN_WSASOCKETW)(int,int,int,LPWSAPROTOCOL_INFOW,GROUP,DWORD);
|
|
|
|
typedef INT (WINAPI *LPFN_WSASTRINGTOADDRESSA)(LPSTR,INT,LPWSAPROTOCOL_INFOA,LPSOCKADDR,LPINT);
|
|
|
|
typedef INT (WINAPI *LPFN_WSASTRINGTOADDRESSW)(LPSTR,INT,LPWSAPROTOCOL_INFOA,LPSOCKADDR,LPINT);
|
|
|
|
#define LPFN_WSASOCKET WINELIB_NAME_AW(LPFN_WSASOCKET)
|
|
|
|
#define LPFN_WSASTRINGTOADDRESS WINELIB_NAME_AW(LPFN_WSASTRINGTOADDRESS)
|
|
|
|
typedef DWORD (WINAPI *LPFN_WSAWAITFORMULTIPLEEVENTS)(DWORD,const WSAEVENT*,BOOL,DWORD,BOOL);
|
|
|
|
#endif /* WS_API_TYPEDEFS */
|
|
|
|
|
1999-09-27 13:48:11 +02:00
|
|
|
|
2002-01-14 19:33:44 +01:00
|
|
|
/* Condition function return values */
|
|
|
|
#define CF_ACCEPT 0x0000
|
|
|
|
#define CF_REJECT 0x0001
|
|
|
|
#define CF_DEFER 0x0002
|
|
|
|
|
2001-11-14 22:26:23 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
1999-09-27 13:48:11 +02:00
|
|
|
#endif
|
2001-11-14 22:26:23 +01:00
|
|
|
|
|
|
|
#undef WS
|
|
|
|
#undef WS_API_PROTOTYPES
|
|
|
|
#undef WS_API_TYPEDEFS
|
|
|
|
|
|
|
|
#endif /* __WINSOCK2API__ */
|