ReactOS 0.4.16-dev-306-g647d351
winsock2.h File Reference
#include <pshpack4.h>
#include <windows.h>
#include <ws2def.h>
#include <qos.h>
#include <guiddef.h>
#include <poppack.h>
Include dependency graph for winsock2.h:

Go to the source code of this file.

Classes

struct  fd_set
 
struct  timeval
 
struct  hostent
 
struct  linger
 
struct  netent
 
struct  servent
 
struct  protoent
 
struct  in_addr
 
struct  WSAData
 
struct  sockproto
 
struct  _WSAOVERLAPPED
 
struct  _QualityOfService
 
struct  _WSANETWORKEVENTS
 
struct  _WSAPROTOCOLCHAIN
 
struct  _WSAPROTOCOL_INFOA
 
struct  _WSAPROTOCOL_INFOW
 
struct  _BLOB
 
struct  _AFPROTOCOLS
 
struct  _WSAVersion
 
struct  _WSAQuerySetA
 
struct  _WSAQuerySet2A
 
struct  _WSAQuerySet2W
 
struct  _WSANSClassInfoA
 
struct  _WSANSClassInfoW
 
struct  _WSAServiceClassInfoA
 
struct  _WSAServiceClassInfoW
 
struct  _WSANAMESPACE_INFOA
 
struct  _WSANAMESPACE_INFOW
 
struct  _WSANAMESPACE_INFOEXA
 
struct  _WSANAMESPACE_INFOEXW
 

Macros

#define _WINSOCK2API_
 
#define _WINSOCKAPI_   /* to prevent later inclusion of winsock.h */
 
#define _GNU_H_WINDOWS32_SOCKETS
 
#define _NEED_POPPACK
 
#define INCL_WINSOCK_API_PROTOTYPES   1
 
#define INCL_WINSOCK_API_TYPEDEFS   0
 
#define MAKEWORD(low, high)   ((WORD)(((BYTE)(low)) | ((WORD)((BYTE)(high))) << 8))
 
#define WINSOCK_VERSION   MAKEWORD(2,2)
 
#define WINSOCK_API_LINKAGE
 
#define _BSDTYPES_DEFINED
 
#define FD_SETSIZE   64
 
#define FD_CLR(fd, set)
 
#define FD_SET(fd, set)
 
#define FD_ZERO(set)   (((fd_set FAR*)(set))->fd_count=0)
 
#define FD_ISSET(fd, set)   __WSAFDIsSet((SOCKET)(fd), (fd_set FAR*)(set))
 
#define _TIMEVAL_DEFINED
 
#define _STRUCT_TIMEVAL
 
#define timerisset(tvp)   ((tvp)->tv_sec || (tvp)->tv_usec)
 
#define timercmp(tvp, uvp, cmp)
 
#define timerclear(tvp)   (tvp)->tv_sec = (tvp)->tv_usec = 0
 
#define h_addr   h_addr_list[0]
 
#define FIONBIO   _IOW('f', 126, u_long)
 
#define SOMAXCONN   0x7fffffff
 
#define MSG_OOB   1
 
#define MSG_PEEK   2
 
#define MSG_DONTROUTE   4
 
#define h_errno   WSAGetLastError()
 
#define HOST_NOT_FOUND   WSAHOST_NOT_FOUND
 
#define TRY_AGAIN   WSATRY_AGAIN
 
#define NO_RECOVERY   WSANO_RECOVERY
 
#define NO_DATA   WSANO_DATA
 
#define NO_ADDRESS   WSANO_ADDRESS
 
#define FIONREAD   _IOR('f', 127, u_long)
 
#define FIOASYNC   _IOW('f', 125, u_long)
 
#define SIOCSHIWAT   _IOW('s', 0, u_long)
 
#define SIOCGHIWAT   _IOR('s', 1, u_long)
 
#define SIOCSLOWAT   _IOW('s', 2, u_long)
 
#define SIOCGLOWAT   _IOR('s', 3, u_long)
 
#define SIOCATMARK   _IOR('s', 7, u_long)
 
#define IMPLINK_IP   155
 
#define IMPLINK_LOWEXPER   156
 
#define IMPLINK_HIGHEXPER   158
 
#define ADDR_ANY   INADDR_ANY
 
#define WSADESCRIPTION_LEN   256
 
#define WSASYS_STATUS_LEN   128
 
#define INVALID_SOCKET   (SOCKET)(~0)
 
#define SOCKET_ERROR   (-1)
 
#define FROM_PROTOCOL_INFO   (-1)
 
#define SO_PROTOCOL_INFOA   0x2004
 
#define SO_PROTOCOL_INFOW   0x2005
 
#define SO_PROTOCOL_INFO   SO_PROTOCOL_INFOA
 
#define PVD_CONFIG   0x3001
 
#define PF_UNSPEC   AF_UNSPEC
 
#define PF_UNIX   AF_UNIX
 
#define PF_INET   AF_INET
 
#define PF_IMPLINK   AF_IMPLINK
 
#define PF_PUP   AF_PUP
 
#define PF_CHAOS   AF_CHAOS
 
#define PF_NS   AF_NS
 
#define PF_IPX   AF_IPX
 
#define PF_ISO   AF_ISO
 
#define PF_OSI   AF_OSI
 
#define PF_ECMA   AF_ECMA
 
#define PF_DATAKIT   AF_DATAKIT
 
#define PF_CCITT   AF_CCITT
 
#define PF_SNA   AF_SNA
 
#define PF_DECnet   AF_DECnet
 
#define PF_DLI   AF_DLI
 
#define PF_LAT   AF_LAT
 
#define PF_HYLINK   AF_HYLINK
 
#define PF_APPLETALK   AF_APPLETALK
 
#define PF_VOICEVIEW   AF_VOICEVIEW
 
#define PF_FIREFOX   AF_FIREFOX
 
#define PF_UNKNOWN1   AF_UNKNOWN1
 
#define PF_BAN   AF_BAN
 
#define PF_ATM   AF_ATM
 
#define PF_INET6   AF_INET6
 
#define PF_MAX   AF_MAX
 
#define MSG_PARTIAL   0x8000
 
#define MSG_INTERRUPT   0x10
 
#define MSG_MAXIOVLEN   16
 
#define MAXGETHOSTSTRUCT   1024
 
#define FD_READ_BIT   0
 
#define FD_READ   (1 << FD_READ_BIT)
 
#define FD_WRITE_BIT   1
 
#define FD_WRITE   (1 << FD_WRITE_BIT)
 
#define FD_OOB_BIT   2
 
#define FD_OOB   (1 << FD_OOB_BIT)
 
#define FD_ACCEPT_BIT   3
 
#define FD_ACCEPT   (1 << FD_ACCEPT_BIT)
 
#define FD_CONNECT_BIT   4
 
#define FD_CONNECT   (1 << FD_CONNECT_BIT)
 
#define FD_CLOSE_BIT   5
 
#define FD_CLOSE   (1 << FD_CLOSE_BIT)
 
#define FD_QOS_BIT   6
 
#define FD_QOS   (1 << FD_QOS_BIT)
 
#define FD_GROUP_QOS_BIT   7
 
#define FD_GROUP_QOS   (1 << FD_GROUP_QOS_BIT)
 
#define FD_ROUTING_INTERFACE_CHANGE_BIT   8
 
#define FD_ROUTING_INTERFACE_CHANGE   (1 << FD_ROUTING_INTERFACE_CHANGE_BIT)
 
#define FD_ADDRESS_LIST_CHANGE_BIT   9
 
#define FD_ADDRESS_LIST_CHANGE   (1 << FD_ADDRESS_LIST_CHANGE_BIT)
 
#define FD_MAX_EVENTS   10
 
#define FD_ALL_EVENTS   ((1 << FD_MAX_EVENTS) - 1)
 
#define WSABASEERR   10000
 
#define WSAEINTR   (WSABASEERR+4)
 
#define WSAEBADF   (WSABASEERR+9)
 
#define WSAEACCES   (WSABASEERR+13)
 
#define WSAEFAULT   (WSABASEERR+14)
 
#define WSAEINVAL   (WSABASEERR+22)
 
#define WSAEMFILE   (WSABASEERR+24)
 
#define WSAEWOULDBLOCK   (WSABASEERR+35)
 
#define WSAEINPROGRESS   (WSABASEERR+36)
 
#define WSAEALREADY   (WSABASEERR+37)
 
#define WSAENOTSOCK   (WSABASEERR+38)
 
#define WSAEDESTADDRREQ   (WSABASEERR+39)
 
#define WSAEMSGSIZE   (WSABASEERR+40)
 
#define WSAEPROTOTYPE   (WSABASEERR+41)
 
#define WSAENOPROTOOPT   (WSABASEERR+42)
 
#define WSAEPROTONOSUPPORT   (WSABASEERR+43)
 
#define WSAESOCKTNOSUPPORT   (WSABASEERR+44)
 
#define WSAEOPNOTSUPP   (WSABASEERR+45)
 
#define WSAEPFNOSUPPORT   (WSABASEERR+46)
 
#define WSAEAFNOSUPPORT   (WSABASEERR+47)
 
#define WSAEADDRINUSE   (WSABASEERR+48)
 
#define WSAEADDRNOTAVAIL   (WSABASEERR+49)
 
#define WSAENETDOWN   (WSABASEERR+50)
 
#define WSAENETUNREACH   (WSABASEERR+51)
 
#define WSAENETRESET   (WSABASEERR+52)
 
#define WSAECONNABORTED   (WSABASEERR+53)
 
#define WSAECONNRESET   (WSABASEERR+54)
 
#define WSAENOBUFS   (WSABASEERR+55)
 
#define WSAEISCONN   (WSABASEERR+56)
 
#define WSAENOTCONN   (WSABASEERR+57)
 
#define WSAESHUTDOWN   (WSABASEERR+58)
 
#define WSAETOOMANYREFS   (WSABASEERR+59)
 
#define WSAETIMEDOUT   (WSABASEERR+60)
 
#define WSAECONNREFUSED   (WSABASEERR+61)
 
#define WSAELOOP   (WSABASEERR+62)
 
#define WSAENAMETOOLONG   (WSABASEERR+63)
 
#define WSAEHOSTDOWN   (WSABASEERR+64)
 
#define WSAEHOSTUNREACH   (WSABASEERR+65)
 
#define WSAENOTEMPTY   (WSABASEERR+66)
 
#define WSAEPROCLIM   (WSABASEERR+67)
 
#define WSAEUSERS   (WSABASEERR+68)
 
#define WSAEDQUOT   (WSABASEERR+69)
 
#define WSAESTALE   (WSABASEERR+70)
 
#define WSAEREMOTE   (WSABASEERR+71)
 
#define WSASYSNOTREADY   (WSABASEERR+91)
 
#define WSAVERNOTSUPPORTED   (WSABASEERR+92)
 
#define WSANOTINITIALISED   (WSABASEERR+93)
 
#define WSAEDISCON   (WSABASEERR+101)
 
#define WSAENOMORE   (WSABASEERR+102)
 
#define WSAECANCELLED   (WSABASEERR+103)
 
#define WSAEINVALIDPROCTABLE   (WSABASEERR+104)
 
#define WSAEINVALIDPROVIDER   (WSABASEERR+105)
 
#define WSAEPROVIDERFAILEDINIT   (WSABASEERR+106)
 
#define WSASYSCALLFAILURE   (WSABASEERR+107)
 
#define WSASERVICE_NOT_FOUND   (WSABASEERR+108)
 
#define WSATYPE_NOT_FOUND   (WSABASEERR+109)
 
#define WSA_E_NO_MORE   (WSABASEERR+110)
 
#define WSA_E_CANCELLED   (WSABASEERR+111)
 
#define WSAEREFUSED   (WSABASEERR+112)
 
#define WSAHOST_NOT_FOUND   (WSABASEERR+1001)
 
#define WSATRY_AGAIN   (WSABASEERR+1002)
 
#define WSANO_RECOVERY   (WSABASEERR+1003)
 
#define WSANO_DATA   (WSABASEERR+1004)
 
#define WSA_QOS_RECEIVERS   (WSABASEERR + 1005)
 
#define WSA_QOS_SENDERS   (WSABASEERR + 1006)
 
#define WSA_QOS_NO_SENDERS   (WSABASEERR + 1007)
 
#define WSA_QOS_NO_RECEIVERS   (WSABASEERR + 1008)
 
#define WSA_QOS_REQUEST_CONFIRMED   (WSABASEERR + 1009)
 
#define WSA_QOS_ADMISSION_FAILURE   (WSABASEERR + 1010)
 
#define WSA_QOS_POLICY_FAILURE   (WSABASEERR + 1011)
 
#define WSA_QOS_BAD_STYLE   (WSABASEERR + 1012)
 
#define WSA_QOS_BAD_OBJECT   (WSABASEERR + 1013)
 
#define WSA_QOS_TRAFFIC_CTRL_ERROR   (WSABASEERR + 1014)
 
#define WSA_QOS_GENERIC_ERROR   (WSABASEERR + 1015)
 
#define WSA_QOS_ESERVICETYPE   (WSABASEERR + 1016)
 
#define WSA_QOS_EFLOWSPEC   (WSABASEERR + 1017)
 
#define WSA_QOS_EPROVSPECBUF   (WSABASEERR + 1018)
 
#define WSA_QOS_EFILTERSTYLE   (WSABASEERR + 1019)
 
#define WSA_QOS_EFILTERTYPE   (WSABASEERR + 1020)
 
#define WSA_QOS_EFILTERCOUNT   (WSABASEERR + 1021)
 
#define WSA_QOS_EOBJLENGTH   (WSABASEERR + 1022)
 
#define WSA_QOS_EFLOWCOUNT   (WSABASEERR + 1023)
 
#define WSA_QOS_EUNKOWNPSOBJ   (WSABASEERR + 1024)
 
#define WSA_QOS_EPOLICYOBJ   (WSABASEERR + 1025)
 
#define WSA_QOS_EFLOWDESC   (WSABASEERR + 1026)
 
#define WSA_QOS_EPSFLOWSPEC   (WSABASEERR + 1027)
 
#define WSA_QOS_EPSFILTERSPEC   (WSABASEERR + 1028)
 
#define WSA_QOS_ESDMODEOBJ   (WSABASEERR + 1029)
 
#define WSA_QOS_ESHAPERATEOBJ   (WSABASEERR + 1030)
 
#define WSA_QOS_RESERVED_PETYPE   (WSABASEERR + 1031)
 
#define WSANO_ADDRESS   WSANO_DATA
 
#define CF_ACCEPT   0x0000
 
#define CF_REJECT   0x0001
 
#define CF_DEFER   0x0002
 
#define SD_RECEIVE   0x00
 
#define SD_SEND   0x01
 
#define SD_BOTH   0x02
 
#define SG_UNCONSTRAINED_GROUP   0x01
 
#define SG_CONSTRAINED_GROUP   0x02
 
#define MAX_PROTOCOL_CHAIN   7
 
#define BASE_PROTOCOL   1
 
#define LAYERED_PROTOCOL   0
 
#define WSAPROTOCOL_LEN   255
 
#define PFL_MULTIPLE_PROTO_ENTRIES   0x00000001
 
#define PFL_RECOMMENDED_PROTO_ENTRY   0x00000002
 
#define PFL_HIDDEN   0x00000004
 
#define PFL_MATCHES_PROTOCOL_ZERO   0x00000008
 
#define PFL_NETWORKDIRECT_PROVIDER   0x00000010
 
#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 XP1_SAN_SUPPORT_SDP   0x00080000
 
#define BIGENDIAN   0x0000
 
#define LITTLEENDIAN   0x0001
 
#define SECURITY_PROTOCOL_NONE   0x0000
 
#define JL_SENDER_ONLY   0x01
 
#define JL_RECEIVER_ONLY   0x02
 
#define JL_BOTH   0x04
 
#define WSA_FLAG_OVERLAPPED   0x01
 
#define WSA_FLAG_MULTIPOINT_C_ROOT   0x02
 
#define WSA_FLAG_MULTIPOINT_C_LEAF   0x04
 
#define WSA_FLAG_MULTIPOINT_D_ROOT   0x08
 
#define WSA_FLAG_MULTIPOINT_D_LEAF   0x10
 
#define WSA_FLAG_ACCESS_SYSTEM_SECURITY   0x40
 
#define TH_NETDEV   0x00000001
 
#define TH_TAPI   0x00000002
 
#define SERVICE_MULTIPLE   0x00000001
 
#define RES_UNUSED_1   0x00000001
 
#define RES_FLUSH_CACHE   0x00000002
 
#define RES_SERVICE   0x00000004
 
#define SERVICE_TYPE_VALUE_IPXPORTA   "IpxSocket"
 
#define SERVICE_TYPE_VALUE_IPXPORTW   L"IpxSocket"
 
#define SERVICE_TYPE_VALUE_SAPIDA   "SapId"
 
#define SERVICE_TYPE_VALUE_SAPIDW   L"SapId"
 
#define SERVICE_TYPE_VALUE_TCPPORTA   "TcpPort"
 
#define SERVICE_TYPE_VALUE_TCPPORTW   L"TcpPort"
 
#define SERVICE_TYPE_VALUE_UDPPORTA   "UdpPort"
 
#define SERVICE_TYPE_VALUE_UDPPORTW   L"UdpPort"
 
#define SERVICE_TYPE_VALUE_OBJECTIDA   "ObjectId"
 
#define SERVICE_TYPE_VALUE_OBJECTIDW   L"ObjectId"
 
#define SERVICE_TYPE_VALUE_SAPID   SERVICE_TYPE_VALUE_SAPIDA
 
#define SERVICE_TYPE_VALUE_TCPPORT   SERVICE_TYPE_VALUE_TCPPORTA
 
#define SERVICE_TYPE_VALUE_UDPPORT   SERVICE_TYPE_VALUE_UDPPORTA
 
#define SERVICE_TYPE_VALUE_OBJECTID   SERVICE_TYPE_VALUE_OBJECTIDA
 
#define LUP_DEEP   0x0001
 
#define LUP_CONTAINERS   0x0002
 
#define LUP_NOCONTAINERS   0x0004
 
#define LUP_NEAREST   0x0008
 
#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   0x0FF0
 
#define LUP_RES_SERVICE   0x8000
 
#define LUP_FLUSHCACHE   0x1000
 
#define LUP_FLUSHPREVIOUS   0x2000
 
#define LUP_NON_AUTHORITATIVE   0x4000
 
#define LUP_SECURE   0x8000
 
#define LUP_RETURN_PREFERRED_NAMES   0x10000
 
#define LUP_ADDRCONFIG   0x00100000
 
#define LUP_DUAL_ADDR   0x00200000
 
#define LUP_FILESERVER   0x00400000
 
#define RESULT_IS_ALIAS   0x0001
 
#define s_addr   S_un.S_addr
 
#define s_host   S_un.S_un_b.s_b2
 
#define s_net   S_un.S_un_b.s_b1
 
#define s_imp   S_un.S_un_w.s_w2
 
#define s_impno   S_un.S_un_b.s_b4
 
#define s_lh   S_un.S_un_b.s_b3
 
#define WSAAPI   FAR PASCAL
 
#define WSA_IO_PENDING   (WSAEWOULDBLOCK)
 
#define WSA_IO_INCOMPLETE   (WSAEWOULDBLOCK)
 
#define WSA_INVALID_HANDLE   (WSAENOTSOCK)
 
#define WSA_INVALID_PARAMETER   (WSAEINVAL)
 
#define WSA_NOT_ENOUGH_MEMORY   (WSAENOBUFS)
 
#define WSA_OPERATION_ABORTED   (WSAEINTR)
 
#define WSA_INVALID_EVENT   ((WSAEVENT)NULL)
 
#define WSA_MAXIMUM_WAIT_EVENTS   (MAXIMUM_WAIT_OBJECTS)
 
#define WSA_WAIT_FAILED   ((DWORD)-1L)
 
#define WSA_WAIT_EVENT_0   ((DWORD)0)
 
#define WSA_WAIT_TIMEOUT   ((DWORD)0x102L)
 
#define WSA_INFINITE   ((DWORD)-1L)
 
#define __BLOB_T_DEFINED
 
#define _tagBLOB_DEFINED
 
#define _BLOB_DEFINED
 
#define _LPBLOB_DEFINED
 
#define WSAConnectByName   WSAConnectByNameA
 
#define WSADuplicateSocket   WSADuplicateSocketA
 
#define WSAEnumProtocols   WSAEnumProtocolsA
 
#define WSASocket   WSASocketA
 
#define WSAAddressToString   WSAAddressToStringA
 
#define WSAStringToAddress   WSAStringToAddressA
 
#define WSALookupServiceBegin   WSALookupServiceBeginA
 
#define WSALookupServiceNext   WSALookupServiceNextA
 
#define WSAInstallServiceClass   WSAInstallServiceClassA
 
#define WSAGetServiceClassInfo   WSAGetServiceClassInfoA
 
#define WSAEnumNameSpaceProviders   WSAEnumNameSpaceProvidersA
 
#define WSAGetServiceClassNameByClassId   WSAGetServiceClassNameByClassIdA
 
#define WSASetService   WSASetServiceA
 
#define WSAMAKEASYNCREPLY(buflen, error)   MAKELONG(buflen,error)
 
#define WSAMAKESELECTREPLY(event, error)   MAKELONG(event,error)
 
#define WSAGETASYNCBUFLEN(lParam)   LOWORD(lParam)
 
#define WSAGETASYNCERROR(lParam)   HIWORD(lParam)
 
#define WSAGETSELECTEVENT(lParam)   LOWORD(lParam)
 
#define WSAGETSELECTERROR(lParam)   HIWORD(lParam)
 

Typedefs

typedef unsigned char u_char
 
typedef unsigned short u_short
 
typedef unsigned int u_int
 
typedef unsigned long u_long
 
typedef UINT_PTR SOCKET
 
typedef struct fd_set fd_set
 
typedef struct in_addr IN_ADDR
 
typedef struct in_addrPIN_ADDR
 
typedef struct WSAData WSADATA
 
typedef struct WSADataLPWSADATA
 
typedef DWORD WSAEVENT
 
typedef DWORD FARLPWSAEVENT
 
typedef struct _WSAOVERLAPPED WSAOVERLAPPED
 
typedef struct _WSAOVERLAPPEDLPWSAOVERLAPPED
 
typedef struct _QualityOfService QOS
 
typedef struct _QualityOfServiceLPQOS
 
typedef unsigned int GROUP
 
typedef struct _WSANETWORKEVENTS WSANETWORKEVENTS
 
typedef struct _WSANETWORKEVENTSLPWSANETWORKEVENTS
 
typedef struct _WSAPROTOCOLCHAIN WSAPROTOCOLCHAIN
 
typedef struct _WSAPROTOCOLCHAINLPWSAPROTOCOLCHAIN
 
typedef struct _WSAPROTOCOL_INFOA WSAPROTOCOL_INFOA
 
typedef struct _WSAPROTOCOL_INFOALPWSAPROTOCOL_INFOA
 
typedef struct _WSAPROTOCOL_INFOW WSAPROTOCOL_INFOW
 
typedef struct _WSAPROTOCOL_INFOWLPWSAPROTOCOL_INFOW
 
typedef WSAPROTOCOL_INFOA WSAPROTOCOL_INFO
 
typedef LPWSAPROTOCOL_INFOA LPWSAPROTOCOL_INFO
 
typedef int(CALLBACKLPCONDITIONPROC) (IN LPWSABUF lpCallerId, IN LPWSABUF lpCallerData, IN OUT LPQOS lpSQOS, IN OUT LPQOS lpGQOS, IN LPWSABUF lpCalleeId, IN LPWSABUF lpCalleeData, OUT GROUP FAR *g, IN DWORD_PTR dwCallbackData)
 
typedef void(CALLBACKLPWSAOVERLAPPED_COMPLETION_ROUTINE) (IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)
 
typedef struct _BLOB BLOB
 
typedef struct _BLOBPBLOB
 
typedef struct _BLOBLPBLOB
 
typedef struct _AFPROTOCOLS AFPROTOCOLS
 
typedef struct _AFPROTOCOLSPAFPROTOCOLS
 
typedef struct _AFPROTOCOLSLPAFPROTOCOLS
 
typedef enum _WSAEcomparator WSAECOMPARATOR
 
typedef enum _WSAEcomparatorPWSAECOMPARATOR
 
typedef enum _WSAEcomparatorLPWSAECOMPARATOR
 
typedef struct _WSAVersion WSAVERSION
 
typedef struct _WSAVersionPWSAVERSION
 
typedef struct _WSAVersionLPWSAVERSION
 
typedef struct _WSAQuerySetA WSAQUERYSETA
 
typedef struct _WSAQuerySetAPWSAQUERYSETA
 
typedef struct _WSAQuerySetALPWSAQUERYSETA
 
typedef struct _WSAQuerySet2A WSAQUERYSET2A
 
typedef struct _WSAQuerySet2APWSAQUERYSET2A
 
typedef struct _WSAQuerySet2ALPWSAQUERYSET2A
 
typedef struct _WSAQuerySet2W WSAQUERYSET2W
 
typedef struct _WSAQuerySet2WPWSAQUERYSET2W
 
typedef struct _WSAQuerySet2WLPWSAQUERYSET2W
 
typedef WSAQUERYSETA WSAQUERYSET
 
typedef PWSAQUERYSETA PWSAQUERYSET
 
typedef LPWSAQUERYSETA LPWSAQUERYSET
 
typedef WSAQUERYSET2A WSAQUERYSET2
 
typedef PWSAQUERYSET2A PWSAQUERYSET2
 
typedef LPWSAQUERYSET2A LPWSAQUERYSET2
 
typedef enum _WSAESETSERVICEOP WSAESETSERVICEOP
 
typedef enum _WSAESETSERVICEOPPWSAESETSERVICEOP
 
typedef enum _WSAESETSERVICEOPLPWSAESETSERVICEOP
 
typedef struct _WSANSClassInfoA WSANSCLASSINFOA
 
typedef struct _WSANSClassInfoAPWSANSCLASSINFOA
 
typedef struct _WSANSClassInfoALPWSANSCLASSINFOA
 
typedef struct _WSANSClassInfoW WSANSCLASSINFOW
 
typedef struct _WSANSClassInfoWPWSANSCLASSINFOW
 
typedef struct _WSANSClassInfoWLPWSANSCLASSINFOW
 
typedef WSANSCLASSINFOA WSANSCLASSINFO
 
typedef PWSANSCLASSINFOA PWSANSCLASSINFO
 
typedef LPWSANSCLASSINFOA LPWSANSCLASSINFO
 
typedef struct _WSAServiceClassInfoA WSASERVICECLASSINFOA
 
typedef struct _WSAServiceClassInfoAPWSASERVICECLASSINFOA
 
typedef struct _WSAServiceClassInfoALPWSASERVICECLASSINFOA
 
typedef struct _WSAServiceClassInfoW WSASERVICECLASSINFOW
 
typedef struct _WSAServiceClassInfoWPWSASERVICECLASSINFOW
 
typedef struct _WSAServiceClassInfoWLPWSASERVICECLASSINFOW
 
typedef WSASERVICECLASSINFOA WSASERVICECLASSINFO
 
typedef PWSASERVICECLASSINFOA PWSASERVICECLASSINFO
 
typedef LPWSASERVICECLASSINFOA LPWSASERVICECLASSINFO
 
typedef struct _WSANAMESPACE_INFOA WSANAMESPACE_INFOA
 
typedef struct _WSANAMESPACE_INFOAPWSANAMESPACE_INFOA
 
typedef struct _WSANAMESPACE_INFOALPWSANAMESPACE_INFOA
 
typedef struct _WSANAMESPACE_INFOW WSANAMESPACE_INFOW
 
typedef struct _WSANAMESPACE_INFOWPWSANAMESPACE_INFOW
 
typedef struct _WSANAMESPACE_INFOWLPWSANAMESPACE_INFOW
 
typedef struct _WSANAMESPACE_INFOEXA WSANAMESPACE_INFOEXA
 
typedef struct _WSANAMESPACE_INFOEXAPWSANAMESPACE_INFOEXA
 
typedef struct _WSANAMESPACE_INFOEXALPWSANAMESPACE_INFOEXA
 
typedef struct _WSANAMESPACE_INFOEXW WSANAMESPACE_INFOEXW
 
typedef struct _WSANAMESPACE_INFOEXWPWSANAMESPACE_INFOEXW
 
typedef struct _WSANAMESPACE_INFOEXWLPWSANAMESPACE_INFOEXW
 
typedef WSANAMESPACE_INFOA WSANAMESPACE_INFO
 
typedef PWSANAMESPACE_INFOA PWSANAMESPACE_INFO
 
typedef LPWSANAMESPACE_INFOA LPWSANAMESPACE_INFO
 
typedef WSANAMESPACE_INFOEXA WSANAMESPACE_INFOEX
 
typedef PWSANAMESPACE_INFOEXA PWSANAMESPACE_INFOEX
 
typedef LPWSANAMESPACE_INFOEXA LPWSANAMESPACE_INFOEX
 
typedef struct sockaddr_in FARLPSOCKADDR_IN
 
typedef struct linger LINGER
 
typedef struct lingerPLINGER
 
typedef struct linger FARLPLINGER
 
typedef struct fd_set FD_SET
 
typedef struct fd_setPFD_SET
 
typedef struct fd_set FARLPFD_SET
 
typedef struct hostent HOSTENT
 
typedef struct hostentPHOSTENT
 
typedef struct hostent FARLPHOSTENT
 
typedef struct servent SERVENT
 
typedef struct serventPSERVENT
 
typedef struct servent FARLPSERVENT
 
typedef struct protoent PROTOENT
 
typedef struct protoentPPROTOENT
 
typedef struct protoent FARLPPROTOENT
 
typedef struct timeval TIMEVAL
 
typedef struct timevalPTIMEVAL
 
typedef struct timeval FARLPTIMEVAL
 

Enumerations

enum  _WSAEcomparator { COMP_EQUAL = 0 , COMP_NOTLESS }
 
enum  _WSAESETSERVICEOP { RNRSERVICE_REGISTER =0 , RNRSERVICE_DEREGISTER , RNRSERVICE_DELETE }
 

Functions

int PASCAL FAR __WSAFDIsSet (SOCKET, fd_set FAR *)
 
 _Struct_size_bytes_ (dwSize) typedef struct _WSAQuerySetW
 
_Must_inspect_result_ WINSOCK_API_LINKAGE SOCKET WSAAPI accept (_In_ SOCKET s, _Out_writes_bytes_opt_(*addrlen) struct sockaddr FAR *addr, _Inout_opt_ int FAR *addrlen)
 
WINSOCK_API_LINKAGE int WSAAPI bind (_In_ SOCKET s, _In_reads_bytes_(namelen) const struct sockaddr FAR *addr, _In_ int namelen)
 
WINSOCK_API_LINKAGE int WSAAPI closesocket (_In_ SOCKET s)
 
WINSOCK_API_LINKAGE int WSAAPI connect (_In_ SOCKET s, _In_reads_bytes_(namelen) const struct sockaddr FAR *name, _In_ int namelen)
 
WINSOCK_API_LINKAGE int WSAAPI ioctlsocket (_In_ SOCKET s, _In_ long cmd, _Inout_ u_long FAR *argp)
 
WINSOCK_API_LINKAGE int WSAAPI getpeername (_In_ SOCKET s, _Out_writes_bytes_to_(*namelen, *namelen) struct sockaddr FAR *name, _Inout_ int FAR *namelen)
 
WINSOCK_API_LINKAGE int WSAAPI getsockname (_In_ SOCKET s, _Out_writes_bytes_to_(*namelen, *namelen) struct sockaddr FAR *name, _Inout_ int FAR *namelen)
 
WINSOCK_API_LINKAGE int WSAAPI getsockopt (_In_ SOCKET s, _In_ int level, _In_ int optname, _Out_writes_bytes_(*optlen) char FAR *optval, _Inout_ int FAR *optlen)
 
WINSOCK_API_LINKAGE u_long WSAAPI htonl (IN u_long hostlong)
 
WINSOCK_API_LINKAGE u_short WSAAPI htons (_In_ u_short hostshort)
 
WINSOCK_API_LINKAGE unsigned long WSAAPI inet_addr (_In_z_ const char FAR *cp)
 
WINSOCK_API_LINKAGE char FAR *WSAAPI inet_ntoa (_In_ struct in_addr in)
 
WINSOCK_API_LINKAGE int WSAAPI listen (_In_ SOCKET s, _In_ int backlog)
 
WINSOCK_API_LINKAGE u_long WSAAPI ntohl (_In_ u_long netlong)
 
WINSOCK_API_LINKAGE u_short WSAAPI ntohs (_In_ u_short netshort)
 
WINSOCK_API_LINKAGE int WSAAPI recv (_In_ SOCKET s, _Out_writes_bytes_to_(len, return) __out_data_source(NETWORK) char FAR *buf, _In_ int len, _In_ int flags)
 
WINSOCK_API_LINKAGE int WSAAPI recvfrom (_In_ SOCKET s, _Out_writes_bytes_to_(len, return) __out_data_source(NETWORK) char FAR *buf, _In_ int len, _In_ int flags, _Out_writes_bytes_to_opt_(*fromlen, *fromlen) struct sockaddr FAR *from, _Inout_opt_ int FAR *fromlen)
 
WINSOCK_API_LINKAGE int WSAAPI select (_In_ int nfds, _Inout_opt_ fd_set FAR *readfds, _Inout_opt_ fd_set FAR *writefds, _Inout_opt_ fd_set FAR *exceptfds, _In_opt_ const struct timeval FAR *timeout)
 
WINSOCK_API_LINKAGE int WSAAPI send (_In_ SOCKET s, _In_reads_bytes_(len) const char FAR *buf, _In_ int len, _In_ int flags)
 
WINSOCK_API_LINKAGE int WSAAPI sendto (_In_ SOCKET s, _In_reads_bytes_(len) const char FAR *buf, _In_ int len, _In_ int flags, _In_reads_bytes_(tolen) const struct sockaddr FAR *to, _In_ int tolen)
 
WINSOCK_API_LINKAGE int WSAAPI setsockopt (_In_ SOCKET s, _In_ int level, _In_ int optname, _In_reads_bytes_opt_(optlen) const char FAR *optval, _In_ int optlen)
 
WINSOCK_API_LINKAGE int WSAAPI shutdown (_In_ SOCKET s, _In_ int how)
 
_Must_inspect_result_ WINSOCK_API_LINKAGE SOCKET WSAAPI socket (_In_ int af, _In_ int type, _In_ int protocol)
 
WINSOCK_API_LINKAGE struct hostent FAR *WSAAPI gethostbyaddr (_In_reads_bytes_(len) const char FAR *addr, _In_ int len, _In_ int type)
 
WINSOCK_API_LINKAGE struct hostent FAR *WSAAPI gethostbyname (_In_z_ const char FAR *name)
 
WINSOCK_API_LINKAGE int WSAAPI gethostname (_Out_writes_bytes_(namelen) char FAR *name, _In_ int namelen)
 
WINSOCK_API_LINKAGE struct servent FAR *WSAAPI getservbyport (_In_ int port, _In_opt_z_ const char FAR *proto)
 
WINSOCK_API_LINKAGE struct servent FAR *WSAAPI getservbyname (_In_z_ const char FAR *name, _In_opt_z_ const char FAR *proto)
 
WINSOCK_API_LINKAGE struct protoent FAR *WSAAPI getprotobynumber (_In_ int number)
 
WINSOCK_API_LINKAGE struct protoent FAR *WSAAPI getprotobyname (_In_z_ const char FAR *name)
 
_Must_inspect_result_ WINSOCK_API_LINKAGE int WSAAPI WSAStartup (_In_ WORD wVersionRequired, _Out_ LPWSADATA lpWSAData)
 
WINSOCK_API_LINKAGE int WSAAPI WSACleanup (void)
 
WINSOCK_API_LINKAGE void WSAAPI WSASetLastError (_In_ int iError)
 
WINSOCK_API_LINKAGE int WSAAPI WSAGetLastError (void)
 
WINSOCK_API_LINKAGE BOOL WSAAPI WSAIsBlocking (void)
 
WINSOCK_API_LINKAGE int WSAAPI WSAUnhookBlockingHook (void)
 
WINSOCK_API_LINKAGE FARPROC WSAAPI WSASetBlockingHook (_In_ FARPROC lpBlockFunc)
 
WINSOCK_API_LINKAGE int WSAAPI WSACancelBlockingCall (void)
 
WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetServByName (_In_ HWND hWnd, _In_ u_int wMsg, _In_z_ const char FAR *name, _In_z_ const char FAR *proto, _Out_writes_bytes_(buflen) char FAR *buf, _In_ int buflen)
 
WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetServByPort (_In_ HWND hWnd, _In_ u_int wMsg, _In_ int port, _In_ const char FAR *proto, _Out_writes_bytes_(buflen) char FAR *buf, _In_ int buflen)
 
WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetProtoByName (_In_ HWND hWnd, _In_ u_int wMsg, _In_z_ const char FAR *name, _Out_writes_bytes_(buflen) char FAR *buf, _In_ int buflen)
 
WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetProtoByNumber (_In_ HWND hWnd, _In_ u_int wMsg, _In_ int number, _Out_writes_bytes_(buflen) char FAR *buf, _In_ int buflen)
 
WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetHostByName (_In_ HWND hWnd, _In_ u_int wMsg, _In_z_ const char FAR *name, _Out_writes_bytes_(buflen) char FAR *buf, _In_ int buflen)
 
WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetHostByAddr (_In_ HWND hWnd, _In_ u_int wMsg, _In_reads_bytes_(len) const char FAR *addr, _In_ int len, _In_ int type, _Out_writes_bytes_(buflen) char FAR *buf, _In_ int buflen)
 
WINSOCK_API_LINKAGE int WSAAPI WSACancelAsyncRequest (_In_ HANDLE hAsyncTaskHandle)
 
WINSOCK_API_LINKAGE int WSAAPI WSAAsyncSelect (_In_ SOCKET s, _In_ HWND hWnd, _In_ u_int wMsg, _In_ long lEvent)
 
_Must_inspect_result_ WINSOCK_API_LINKAGE SOCKET WSAAPI WSAAccept (_In_ SOCKET s, _Out_writes_bytes_to_opt_(*addrlen, *addrlen) struct sockaddr FAR *addr, _Inout_opt_ LPINT addrlen, _In_opt_ LPCONDITIONPROC lpfnCondition, _In_opt_ DWORD_PTR dwCallbackData)
 
WINSOCK_API_LINKAGE BOOL WSAAPI WSACloseEvent (_In_ WSAEVENT hEvent)
 
WINSOCK_API_LINKAGE int WSAAPI WSAConnect (_In_ SOCKET s, _In_reads_bytes_(namelen) const struct sockaddr FAR *name, _In_ int namelen, _In_opt_ LPWSABUF lpCallerData, _Out_opt_ LPWSABUF lpCalleeData, _In_opt_ LPQOS lpSQOS, _In_opt_ LPQOS lpGQOS)
 
BOOL PASCAL WSAConnectByNameW (_In_ SOCKET s, _In_ LPWSTR nodename, _In_ LPWSTR servicename, _Inout_opt_ LPDWORD LocalAddressLength, _Out_writes_bytes_to_opt_(*LocalAddressLength, *LocalAddressLength) LPSOCKADDR LocalAddress, _Inout_opt_ LPDWORD RemoteAddressLength, _Out_writes_bytes_to_opt_(*RemoteAddressLength, *RemoteAddressLength) LPSOCKADDR RemoteAddress, _In_opt_ const struct timeval *timeout, _Reserved_ LPWSAOVERLAPPED Reserved)
 
BOOL PASCAL WSAConnectByNameA (_In_ SOCKET s, _In_ LPCSTR nodename, _In_ LPCSTR servicename, _Inout_opt_ LPDWORD LocalAddressLength, _Out_writes_bytes_to_opt_(*LocalAddressLength, *LocalAddressLength) LPSOCKADDR LocalAddress, _Inout_opt_ LPDWORD RemoteAddressLength, _Out_writes_bytes_to_opt_(*RemoteAddressLength, *RemoteAddressLength) LPSOCKADDR RemoteAddress, _In_opt_ const struct timeval *timeout, _Reserved_ LPWSAOVERLAPPED Reserved)
 
BOOL PASCAL WSAConnectByList (_In_ SOCKET s, _In_ PSOCKET_ADDRESS_LIST SocketAddress, _Inout_opt_ LPDWORD LocalAddressLength, _Out_writes_bytes_to_opt_(*LocalAddressLength, *LocalAddressLength) LPSOCKADDR LocalAddress, _Inout_opt_ LPDWORD RemoteAddressLength, _Out_writes_bytes_to_opt_(*RemoteAddressLength, *RemoteAddressLength) LPSOCKADDR RemoteAddress, _In_opt_ const struct timeval *timeout, _Reserved_ LPWSAOVERLAPPED Reserved)
 
WINSOCK_API_LINKAGE WSAEVENT WSAAPI WSACreateEvent (void)
 
WINSOCK_API_LINKAGE int WSAAPI WSADuplicateSocketA (_In_ SOCKET s, _In_ DWORD dwProcessId, _Out_ LPWSAPROTOCOL_INFOA lpProtocolInfo)
 
WINSOCK_API_LINKAGE int WSAAPI WSADuplicateSocketW (_In_ SOCKET s, _In_ DWORD dwProcessId, _Out_ LPWSAPROTOCOL_INFOW lpProtocolInfo)
 
WINSOCK_API_LINKAGE int WSAAPI WSAEnumNetworkEvents (_In_ SOCKET s, _In_ WSAEVENT hEventObject, _Out_ LPWSANETWORKEVENTS lpNetworkEvents)
 
WINSOCK_API_LINKAGE int WSAAPI WSAEnumProtocolsA (_In_opt_ LPINT lpiProtocols, _Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferLength) LPWSAPROTOCOL_INFOA lpProtocolBuffer, _Inout_ LPDWORD lpdwBufferLength)
 
WINSOCK_API_LINKAGE int WSAAPI WSAEnumProtocolsW (_In_opt_ LPINT lpiProtocols, _Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferLength) LPWSAPROTOCOL_INFOW lpProtocolBuffer, _Inout_ LPDWORD lpdwBufferLength)
 
WINSOCK_API_LINKAGE int WSAAPI WSAEventSelect (_In_ SOCKET s, _In_opt_ WSAEVENT hEventObject, _In_ long lNetworkEvents)
 
WINSOCK_API_LINKAGE BOOL WSAAPI WSAGetOverlappedResult (_In_ SOCKET s, _In_ LPWSAOVERLAPPED lpOverlapped, _Out_ LPDWORD lpcbTransfer, _In_ BOOL fWait, _Out_ LPDWORD lpdwFlags)
 
WINSOCK_API_LINKAGE BOOL WSAAPI WSAGetQOSByName (_In_ SOCKET s, _In_ LPWSABUF lpQOSName, _Out_ LPQOS lpQOS)
 
WINSOCK_API_LINKAGE int WSAAPI WSAHtonl (_In_ SOCKET s, _In_ u_long hostlong, _Out_ u_long FAR *lpnetlong)
 
WINSOCK_API_LINKAGE int WSAAPI WSAHtons (_In_ SOCKET s, _In_ u_short hostshort, _Out_ u_short FAR *lpnetshort)
 
WINSOCK_API_LINKAGE int WSAAPI WSAIoctl (_In_ SOCKET s, _In_ DWORD dwIoControlCode, _In_reads_bytes_opt_(cbInBuffer) LPVOID lpvInBuffer, _In_ DWORD cbInBuffer, _Out_writes_bytes_to_opt_(cbOutBuffer, *lpcbBytesReturned) LPVOID lpvOutBuffer, _In_ DWORD cbOutBuffer, _Out_ LPDWORD lpcbBytesReturned, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
 
WINSOCK_API_LINKAGE SOCKET WSAAPI WSAJoinLeaf (_In_ SOCKET s, _In_reads_bytes_(namelen) const struct sockaddr FAR *name, _In_ int namelen, _In_opt_ LPWSABUF lpCallerData, _Out_opt_ LPWSABUF lpCalleeData, _In_opt_ LPQOS lpSQOS, _In_opt_ LPQOS lpGQOS, _In_ DWORD dwFlags)
 
WINSOCK_API_LINKAGE int WSAAPI WSANtohl (_In_ SOCKET s, _In_ u_long netlong, _Out_ u_long FAR *lphostlong)
 
WINSOCK_API_LINKAGE int WSAAPI WSANtohs (_In_ SOCKET s, _In_ u_short netshort, _Out_ u_short FAR *lphostshort)
 
WINSOCK_API_LINKAGE int WSAAPI WSARecv (_In_ SOCKET s, _In_reads_(dwBufferCount) __out_data_source(NETWORK) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesRecvd, _Inout_ LPDWORD lpFlags, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
 
WINSOCK_API_LINKAGE int WSAAPI WSARecvDisconnect (_In_ SOCKET s, _In_opt_ __out_data_source(NETWORK) LPWSABUF lpInboundDisconnectData)
 
WINSOCK_API_LINKAGE int WSAAPI WSARecvFrom (_In_ SOCKET s, _In_reads_(dwBufferCount) __out_data_source(NETWORK) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesRecvd, _Inout_ LPDWORD lpFlags, _Out_writes_bytes_to_opt_(*lpFromlen, *lpFromlen) struct sockaddr FAR *lpFrom, _Inout_opt_ LPINT lpFromlen, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
 
WINSOCK_API_LINKAGE BOOL WSAAPI WSAResetEvent (_In_ WSAEVENT hEvent)
 
WINSOCK_API_LINKAGE int WSAAPI WSASendDisconnect (_In_ SOCKET s, _In_opt_ LPWSABUF lpOutboundDisconnectData)
 
WINSOCK_API_LINKAGE int WSAAPI WSASend (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesSent, _In_ DWORD dwFlags, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
 
WINSOCK_API_LINKAGE int WSAAPI WSASendTo (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesSent, _In_ DWORD dwFlags, _In_reads_bytes_opt_(iTolen) const struct sockaddr FAR *lpTo, _In_ int iTolen, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
 
WINSOCK_API_LINKAGE BOOL WSAAPI WSASetEvent (_In_ WSAEVENT hEvent)
 
_Must_inspect_result_ WINSOCK_API_LINKAGE SOCKET WSAAPI WSASocketA (_In_ int af, _In_ int type, _In_ int protocol, _In_opt_ LPWSAPROTOCOL_INFOA lpProtocolInfo, _In_ GROUP g, _In_ DWORD dwFlags)
 
_Must_inspect_result_ WINSOCK_API_LINKAGE SOCKET WSAAPI WSASocketW (_In_ int af, _In_ int type, _In_ int protocol, _In_opt_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _In_ GROUP g, _In_ DWORD dwFlags)
 
WINSOCK_API_LINKAGE DWORD WSAAPI WSAWaitForMultipleEvents (_In_ DWORD cEvents, _In_reads_(cEvents) const WSAEVENT FAR *lphEvents, _In_ BOOL fWaitAll, _In_ DWORD dwTimeout, _In_ BOOL fAlertable)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAAddressToStringA (_In_reads_bytes_(dwAddressLength) LPSOCKADDR lpsaAddress, _In_ DWORD dwAddressLength, _In_opt_ LPWSAPROTOCOL_INFOA lpProtocolInfo, _Out_writes_to_(*lpdwAddressStringLength, *lpdwAddressStringLength) LPSTR lpszAddressString, _Inout_ LPDWORD lpdwAddressStringLength)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAAddressToStringW (_In_reads_bytes_(dwAddressLength) LPSOCKADDR lpsaAddress, _In_ DWORD dwAddressLength, _In_opt_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _Out_writes_to_(*lpdwAddressStringLength, *lpdwAddressStringLength) LPWSTR lpszAddressString, _Inout_ LPDWORD lpdwAddressStringLength)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAStringToAddressA (_In_ LPSTR AddressString, _In_ INT AddressFamily, _In_opt_ LPWSAPROTOCOL_INFOA lpProtocolInfo, _Out_writes_bytes_to_(*lpAddressLength, *lpAddressLength) LPSOCKADDR lpAddress, _Inout_ LPINT lpAddressLength)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAStringToAddressW (_In_ LPWSTR AddressString, _In_ INT AddressFamily, _In_opt_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _Out_writes_bytes_to_(*lpAddressLength, *lpAddressLength) LPSOCKADDR lpAddress, _Inout_ LPINT lpAddressLength)
 
WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceBeginA (_In_ LPWSAQUERYSETA lpqsRestrictions, _In_ DWORD dwControlFlags, _Out_ LPHANDLE lphLookup)
 
WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceBeginW (_In_ LPWSAQUERYSETW lpqsRestrictions, _In_ DWORD dwControlFlags, _Out_ LPHANDLE lphLookup)
 
WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceNextA (_In_ HANDLE hLookup, _In_ DWORD dwControlFlags, _Inout_ LPDWORD lpdwBufferLength, _Out_writes_bytes_to_(*lpdwBufferLength, *lpdwBufferLength) LPWSAQUERYSETA lpqsResults)
 
WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceNextW (_In_ HANDLE hLookup, _In_ DWORD dwControlFlags, _Inout_ LPDWORD lpdwBufferLength, _Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferLength) LPWSAQUERYSETW lpqsResults)
 
WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceEnd (_In_ HANDLE hLookup)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAInstallServiceClassA (_In_ LPWSASERVICECLASSINFOA lpServiceClassInfo)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAInstallServiceClassW (_In_ LPWSASERVICECLASSINFOW lpServiceClassInfo)
 
WINSOCK_API_LINKAGE INT WSAAPI WSARemoveServiceClass (_In_ LPGUID lpServiceClassId)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAGetServiceClassInfoA (_In_ LPGUID lpProviderId, _In_ LPGUID lpServiceClassId, _Inout_ LPDWORD lpdwBufSize, _Out_writes_bytes_to_(*lpdwBufSize, *lpdwBufSize) LPWSASERVICECLASSINFOA lpServiceClassInfo)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAGetServiceClassInfoW (_In_ LPGUID lpProviderId, _In_ LPGUID lpServiceClassId, _Inout_ LPDWORD lpdwBufSize, _Out_writes_bytes_to_(*lpdwBufSize, *lpdwBufSize) LPWSASERVICECLASSINFOW lpServiceClassInfo)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAEnumNameSpaceProvidersA (_Inout_ LPDWORD lpdwBufferLength, _Out_writes_bytes_to_(*lpdwBufferLength, *lpdwBufferLength) LPWSANAMESPACE_INFOA lpnspBuffer)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAEnumNameSpaceProvidersW (_Inout_ LPDWORD lpdwBufferLength, _Out_writes_bytes_to_(*lpdwBufferLength, *lpdwBufferLength) LPWSANAMESPACE_INFOW lpnspBuffer)
 
 _Success_ (return==0) WINSOCK_API_LINKAGE INT WSAAPI WSAGetServiceClassNameByClassIdA(_In_ LPGUID lpServiceClassId
 
WINSOCK_API_LINKAGE INT WSAAPI WSASetServiceA (_In_ LPWSAQUERYSETA lpqsRegInfo, _In_ WSAESETSERVICEOP essoperation, _In_ DWORD dwControlFlags)
 
WINSOCK_API_LINKAGE INT WSAAPI WSASetServiceW (_In_ LPWSAQUERYSETW lpqsRegInfo, _In_ WSAESETSERVICEOP essoperation, _In_ DWORD dwControlFlags)
 
WINSOCK_API_LINKAGE INT WSAAPI WSAProviderConfigChange (_Inout_ LPHANDLE lpNotificationHandle, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
 

Variables

 WSAQUERYSETW
 
PWSAQUERYSETW
 
LPWSAQUERYSETW
 
_Out_writes_bytes_to_ lpdwBufferLength LPSTR lpszServiceClassName
 
_Out_writes_bytes_to_ lpdwBufferLength LPSTR _Inout_ LPDWORD lpdwBufferLength
 

Macro Definition Documentation

◆ __BLOB_T_DEFINED

#define __BLOB_T_DEFINED

Definition at line 766 of file winsock2.h.

◆ _BLOB_DEFINED

#define _BLOB_DEFINED

Definition at line 711 of file wtypes.idl.

◆ _BSDTYPES_DEFINED

#define _BSDTYPES_DEFINED

Definition at line 63 of file winsock2.h.

◆ _GNU_H_WINDOWS32_SOCKETS

#define _GNU_H_WINDOWS32_SOCKETS

Definition at line 7 of file winsock2.h.

◆ _LPBLOB_DEFINED

#define _LPBLOB_DEFINED

Definition at line 712 of file wtypes.idl.

◆ _NEED_POPPACK

#define _NEED_POPPACK

Definition at line 11 of file winsock2.h.

◆ _STRUCT_TIMEVAL

#define _STRUCT_TIMEVAL

Definition at line 148 of file winsock2.h.

◆ _tagBLOB_DEFINED

#define _tagBLOB_DEFINED

Definition at line 710 of file wtypes.idl.

◆ _TIMEVAL_DEFINED

#define _TIMEVAL_DEFINED

Definition at line 147 of file winsock2.h.

◆ _WINSOCK2API_

#define _WINSOCK2API_

Definition at line 4 of file winsock2.h.

◆ _WINSOCKAPI_

#define _WINSOCKAPI_   /* to prevent later inclusion of winsock.h */

Definition at line 5 of file winsock2.h.

◆ ADDR_ANY

#define ADDR_ANY   INADDR_ANY

Definition at line 237 of file winsock2.h.

◆ BASE_PROTOCOL

#define BASE_PROTOCOL   1

Definition at line 425 of file winsock2.h.

◆ BIGENDIAN

#define BIGENDIAN   0x0000

Definition at line 457 of file winsock2.h.

◆ CF_ACCEPT

#define CF_ACCEPT   0x0000

Definition at line 413 of file winsock2.h.

◆ CF_DEFER

#define CF_DEFER   0x0002

Definition at line 415 of file winsock2.h.

◆ CF_REJECT

#define CF_REJECT   0x0001

Definition at line 414 of file winsock2.h.

◆ FD_ACCEPT

#define FD_ACCEPT   (1 << FD_ACCEPT_BIT)

Definition at line 300 of file winsock2.h.

◆ FD_ACCEPT_BIT

#define FD_ACCEPT_BIT   3

Definition at line 299 of file winsock2.h.

◆ FD_ADDRESS_LIST_CHANGE

#define FD_ADDRESS_LIST_CHANGE   (1 << FD_ADDRESS_LIST_CHANGE_BIT)

Definition at line 312 of file winsock2.h.

◆ FD_ADDRESS_LIST_CHANGE_BIT

#define FD_ADDRESS_LIST_CHANGE_BIT   9

Definition at line 311 of file winsock2.h.

◆ FD_ALL_EVENTS

#define FD_ALL_EVENTS   ((1 << FD_MAX_EVENTS) - 1)

Definition at line 314 of file winsock2.h.

◆ FD_CLOSE

#define FD_CLOSE   (1 << FD_CLOSE_BIT)

Definition at line 304 of file winsock2.h.

◆ FD_CLOSE_BIT

#define FD_CLOSE_BIT   5

Definition at line 303 of file winsock2.h.

◆ FD_CLR

#define FD_CLR (   fd,
  set 
)
Value:
do { \
u_int __i; \
for (__i = 0; __i < ((fd_set FAR*)(set))->fd_count ; __i++) { \
if (((fd_set FAR*)(set))->fd_array[__i] == fd) { \
while (__i < ((fd_set FAR*)(set))->fd_count-1) { \
((fd_set FAR*)(set))->fd_array[__i] = \
((fd_set FAR*)(set))->fd_array[__i+1]; \
__i++; \
} \
((fd_set FAR*)(set))->fd_count--; \
break; \
} \
} \
} while(0)
Definition: _set.h:50
UINT32 u_int
Definition: types.h:82
#define FAR
Definition: zlib.h:34
static int fd
Definition: io.c:51
Definition: winsock.h:66

Definition at line 95 of file winsock2.h.

◆ FD_CONNECT

#define FD_CONNECT   (1 << FD_CONNECT_BIT)

Definition at line 302 of file winsock2.h.

◆ FD_CONNECT_BIT

#define FD_CONNECT_BIT   4

Definition at line 301 of file winsock2.h.

◆ FD_GROUP_QOS

#define FD_GROUP_QOS   (1 << FD_GROUP_QOS_BIT)

Definition at line 308 of file winsock2.h.

◆ FD_GROUP_QOS_BIT

#define FD_GROUP_QOS_BIT   7

Definition at line 307 of file winsock2.h.

◆ FD_ISSET

#define FD_ISSET (   fd,
  set 
)    __WSAFDIsSet((SOCKET)(fd), (fd_set FAR*)(set))

Definition at line 134 of file winsock2.h.

◆ FD_MAX_EVENTS

#define FD_MAX_EVENTS   10

Definition at line 313 of file winsock2.h.

◆ FD_OOB

#define FD_OOB   (1 << FD_OOB_BIT)

Definition at line 298 of file winsock2.h.

◆ FD_OOB_BIT

#define FD_OOB_BIT   2

Definition at line 297 of file winsock2.h.

◆ FD_QOS

#define FD_QOS   (1 << FD_QOS_BIT)

Definition at line 306 of file winsock2.h.

◆ FD_QOS_BIT

#define FD_QOS_BIT   6

Definition at line 305 of file winsock2.h.

◆ FD_READ

#define FD_READ   (1 << FD_READ_BIT)

Definition at line 294 of file winsock2.h.

◆ FD_READ_BIT

#define FD_READ_BIT   0

Definition at line 293 of file winsock2.h.

◆ FD_ROUTING_INTERFACE_CHANGE

#define FD_ROUTING_INTERFACE_CHANGE   (1 << FD_ROUTING_INTERFACE_CHANGE_BIT)

Definition at line 310 of file winsock2.h.

◆ FD_ROUTING_INTERFACE_CHANGE_BIT

#define FD_ROUTING_INTERFACE_CHANGE_BIT   8

Definition at line 309 of file winsock2.h.

◆ FD_SET

#define FD_SET (   fd,
  set 
)
Value:
do { \
u_int __i; \
for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count; __i++) { \
if (((fd_set FAR *)(set))->fd_array[__i] == (fd)) { \
break; \
} \
} \
if (__i == ((fd_set FAR *)(set))->fd_count) { \
if (((fd_set FAR *)(set))->fd_count < FD_SETSIZE) { \
((fd_set FAR *)(set))->fd_array[__i] = (fd); \
((fd_set FAR *)(set))->fd_count++; \
} \
} \
} while(0)
#define FD_SETSIZE
Definition: winsock2.h:75

Definition at line 113 of file winsock2.h.

◆ FD_SETSIZE

#define FD_SETSIZE   64

Definition at line 75 of file winsock2.h.

◆ FD_WRITE

#define FD_WRITE   (1 << FD_WRITE_BIT)

Definition at line 296 of file winsock2.h.

◆ FD_WRITE_BIT

#define FD_WRITE_BIT   1

Definition at line 295 of file winsock2.h.

◆ FD_ZERO

#define FD_ZERO (   set)    (((fd_set FAR*)(set))->fd_count=0)

Definition at line 130 of file winsock2.h.

◆ FIOASYNC

#define FIOASYNC   _IOW('f', 125, u_long)

Definition at line 226 of file winsock2.h.

◆ FIONBIO

#define FIONBIO   _IOW('f', 126, u_long)

Definition at line 180 of file winsock2.h.

◆ FIONREAD

#define FIONREAD   _IOR('f', 127, u_long)

Definition at line 225 of file winsock2.h.

◆ FROM_PROTOCOL_INFO

#define FROM_PROTOCOL_INFO   (-1)

Definition at line 246 of file winsock2.h.

◆ h_addr

#define h_addr   h_addr_list[0]

Definition at line 165 of file winsock2.h.

◆ h_errno

#define h_errno   WSAGetLastError()

Definition at line 216 of file winsock2.h.

◆ HOST_NOT_FOUND

#define HOST_NOT_FOUND   WSAHOST_NOT_FOUND

Definition at line 217 of file winsock2.h.

◆ IMPLINK_HIGHEXPER

#define IMPLINK_HIGHEXPER   158

Definition at line 235 of file winsock2.h.

◆ IMPLINK_IP

#define IMPLINK_IP   155

Definition at line 233 of file winsock2.h.

◆ IMPLINK_LOWEXPER

#define IMPLINK_LOWEXPER   156

Definition at line 234 of file winsock2.h.

◆ INCL_WINSOCK_API_PROTOTYPES

#define INCL_WINSOCK_API_PROTOTYPES   1

Definition at line 15 of file winsock2.h.

◆ INCL_WINSOCK_API_TYPEDEFS

#define INCL_WINSOCK_API_TYPEDEFS   0

Definition at line 19 of file winsock2.h.

◆ INVALID_SOCKET

#define INVALID_SOCKET   (SOCKET)(~0)

Definition at line 242 of file winsock2.h.

◆ JL_BOTH

#define JL_BOTH   0x04

Definition at line 464 of file winsock2.h.

◆ JL_RECEIVER_ONLY

#define JL_RECEIVER_ONLY   0x02

Definition at line 463 of file winsock2.h.

◆ JL_SENDER_ONLY

#define JL_SENDER_ONLY   0x01

Definition at line 462 of file winsock2.h.

◆ LAYERED_PROTOCOL

#define LAYERED_PROTOCOL   0

Definition at line 426 of file winsock2.h.

◆ LITTLEENDIAN

#define LITTLEENDIAN   0x0001

Definition at line 458 of file winsock2.h.

◆ LUP_ADDRCONFIG

#define LUP_ADDRCONFIG   0x00100000

Definition at line 529 of file winsock2.h.

◆ LUP_CONTAINERS

#define LUP_CONTAINERS   0x0002

Definition at line 511 of file winsock2.h.

◆ LUP_DEEP

#define LUP_DEEP   0x0001

Definition at line 510 of file winsock2.h.

◆ LUP_DUAL_ADDR

#define LUP_DUAL_ADDR   0x00200000

Definition at line 530 of file winsock2.h.

◆ LUP_FILESERVER

#define LUP_FILESERVER   0x00400000

Definition at line 531 of file winsock2.h.

◆ LUP_FLUSHCACHE

#define LUP_FLUSHCACHE   0x1000

Definition at line 524 of file winsock2.h.

◆ LUP_FLUSHPREVIOUS

#define LUP_FLUSHPREVIOUS   0x2000

Definition at line 525 of file winsock2.h.

◆ LUP_NEAREST

#define LUP_NEAREST   0x0008

Definition at line 513 of file winsock2.h.

◆ LUP_NOCONTAINERS

#define LUP_NOCONTAINERS   0x0004

Definition at line 512 of file winsock2.h.

◆ LUP_NON_AUTHORITATIVE

#define LUP_NON_AUTHORITATIVE   0x4000

Definition at line 526 of file winsock2.h.

◆ LUP_RES_SERVICE

#define LUP_RES_SERVICE   0x8000

Definition at line 523 of file winsock2.h.

◆ LUP_RETURN_ADDR

#define LUP_RETURN_ADDR   0x0100

Definition at line 518 of file winsock2.h.

◆ LUP_RETURN_ALIASES

#define LUP_RETURN_ALIASES   0x0400

Definition at line 520 of file winsock2.h.

◆ LUP_RETURN_ALL

#define LUP_RETURN_ALL   0x0FF0

Definition at line 522 of file winsock2.h.

◆ LUP_RETURN_BLOB

#define LUP_RETURN_BLOB   0x0200

Definition at line 519 of file winsock2.h.

◆ LUP_RETURN_COMMENT

#define LUP_RETURN_COMMENT   0x0080

Definition at line 517 of file winsock2.h.

◆ LUP_RETURN_NAME

#define LUP_RETURN_NAME   0x0010

Definition at line 514 of file winsock2.h.

◆ LUP_RETURN_PREFERRED_NAMES

#define LUP_RETURN_PREFERRED_NAMES   0x10000

Definition at line 528 of file winsock2.h.

◆ LUP_RETURN_QUERY_STRING

#define LUP_RETURN_QUERY_STRING   0x0800

Definition at line 521 of file winsock2.h.

◆ LUP_RETURN_TYPE

#define LUP_RETURN_TYPE   0x0020

Definition at line 515 of file winsock2.h.

◆ LUP_RETURN_VERSION

#define LUP_RETURN_VERSION   0x0040

Definition at line 516 of file winsock2.h.

◆ LUP_SECURE

#define LUP_SECURE   0x8000

Definition at line 527 of file winsock2.h.

◆ MAKEWORD

#define MAKEWORD (   low,
  high 
)    ((WORD)(((BYTE)(low)) | ((WORD)((BYTE)(high))) << 8))

Definition at line 27 of file winsock2.h.

◆ MAX_PROTOCOL_CHAIN

#define MAX_PROTOCOL_CHAIN   7

Definition at line 423 of file winsock2.h.

◆ MAXGETHOSTSTRUCT

#define MAXGETHOSTSTRUCT   1024

Definition at line 291 of file winsock2.h.

◆ MSG_DONTROUTE

#define MSG_DONTROUTE   4

Definition at line 211 of file winsock2.h.

◆ MSG_INTERRUPT

#define MSG_INTERRUPT   0x10

Definition at line 288 of file winsock2.h.

◆ MSG_MAXIOVLEN

#define MSG_MAXIOVLEN   16

Definition at line 289 of file winsock2.h.

◆ MSG_OOB

#define MSG_OOB   1

Definition at line 209 of file winsock2.h.

◆ MSG_PARTIAL

#define MSG_PARTIAL   0x8000

Definition at line 287 of file winsock2.h.

◆ MSG_PEEK

#define MSG_PEEK   2

Definition at line 210 of file winsock2.h.

◆ NO_ADDRESS

#define NO_ADDRESS   WSANO_ADDRESS

Definition at line 221 of file winsock2.h.

◆ NO_DATA

#define NO_DATA   WSANO_DATA

Definition at line 220 of file winsock2.h.

◆ NO_RECOVERY

#define NO_RECOVERY   WSANO_RECOVERY

Definition at line 219 of file winsock2.h.

◆ PF_APPLETALK

#define PF_APPLETALK   AF_APPLETALK

Definition at line 275 of file winsock2.h.

◆ PF_ATM

#define PF_ATM   AF_ATM

Definition at line 280 of file winsock2.h.

◆ PF_BAN

#define PF_BAN   AF_BAN

Definition at line 279 of file winsock2.h.

◆ PF_CCITT

#define PF_CCITT   AF_CCITT

Definition at line 269 of file winsock2.h.

◆ PF_CHAOS

#define PF_CHAOS   AF_CHAOS

Definition at line 262 of file winsock2.h.

◆ PF_DATAKIT

#define PF_DATAKIT   AF_DATAKIT

Definition at line 268 of file winsock2.h.

◆ PF_DECnet

#define PF_DECnet   AF_DECnet

Definition at line 271 of file winsock2.h.

◆ PF_DLI

#define PF_DLI   AF_DLI

Definition at line 272 of file winsock2.h.

◆ PF_ECMA

#define PF_ECMA   AF_ECMA

Definition at line 267 of file winsock2.h.

◆ PF_FIREFOX

#define PF_FIREFOX   AF_FIREFOX

Definition at line 277 of file winsock2.h.

◆ PF_HYLINK

#define PF_HYLINK   AF_HYLINK

Definition at line 274 of file winsock2.h.

◆ PF_IMPLINK

#define PF_IMPLINK   AF_IMPLINK

Definition at line 260 of file winsock2.h.

◆ PF_INET

#define PF_INET   AF_INET

Definition at line 259 of file winsock2.h.

◆ PF_INET6

#define PF_INET6   AF_INET6

Definition at line 281 of file winsock2.h.

◆ PF_IPX

#define PF_IPX   AF_IPX

Definition at line 264 of file winsock2.h.

◆ PF_ISO

#define PF_ISO   AF_ISO

Definition at line 265 of file winsock2.h.

◆ PF_LAT

#define PF_LAT   AF_LAT

Definition at line 273 of file winsock2.h.

◆ PF_MAX

#define PF_MAX   AF_MAX

Definition at line 285 of file winsock2.h.

◆ PF_NS

#define PF_NS   AF_NS

Definition at line 263 of file winsock2.h.

◆ PF_OSI

#define PF_OSI   AF_OSI

Definition at line 266 of file winsock2.h.

◆ PF_PUP

#define PF_PUP   AF_PUP

Definition at line 261 of file winsock2.h.

◆ PF_SNA

#define PF_SNA   AF_SNA

Definition at line 270 of file winsock2.h.

◆ PF_UNIX

#define PF_UNIX   AF_UNIX

Definition at line 258 of file winsock2.h.

◆ PF_UNKNOWN1

#define PF_UNKNOWN1   AF_UNKNOWN1

Definition at line 278 of file winsock2.h.

◆ PF_UNSPEC

#define PF_UNSPEC   AF_UNSPEC

Definition at line 257 of file winsock2.h.

◆ PF_VOICEVIEW

#define PF_VOICEVIEW   AF_VOICEVIEW

Definition at line 276 of file winsock2.h.

◆ PFL_HIDDEN

#define PFL_HIDDEN   0x00000004

Definition at line 432 of file winsock2.h.

◆ PFL_MATCHES_PROTOCOL_ZERO

#define PFL_MATCHES_PROTOCOL_ZERO   0x00000008

Definition at line 433 of file winsock2.h.

◆ PFL_MULTIPLE_PROTO_ENTRIES

#define PFL_MULTIPLE_PROTO_ENTRIES   0x00000001

Definition at line 430 of file winsock2.h.

◆ PFL_NETWORKDIRECT_PROVIDER

#define PFL_NETWORKDIRECT_PROVIDER   0x00000010

Definition at line 434 of file winsock2.h.

◆ PFL_RECOMMENDED_PROTO_ENTRY

#define PFL_RECOMMENDED_PROTO_ENTRY   0x00000002

Definition at line 431 of file winsock2.h.

◆ PVD_CONFIG

#define PVD_CONFIG   0x3001

Definition at line 255 of file winsock2.h.

◆ RES_FLUSH_CACHE

#define RES_FLUSH_CACHE   0x00000002

Definition at line 479 of file winsock2.h.

◆ RES_SERVICE

#define RES_SERVICE   0x00000004

Definition at line 481 of file winsock2.h.

◆ RES_UNUSED_1

#define RES_UNUSED_1   0x00000001

Definition at line 478 of file winsock2.h.

◆ RESULT_IS_ALIAS

#define RESULT_IS_ALIAS   0x0001

Definition at line 533 of file winsock2.h.

◆ s_addr

#define s_addr   S_un.S_addr

Definition at line 542 of file winsock2.h.

◆ s_host

#define s_host   S_un.S_un_b.s_b2

Definition at line 543 of file winsock2.h.

◆ s_imp

#define s_imp   S_un.S_un_w.s_w2

Definition at line 545 of file winsock2.h.

◆ s_impno

#define s_impno   S_un.S_un_b.s_b4

Definition at line 546 of file winsock2.h.

◆ s_lh

#define s_lh   S_un.S_un_b.s_b3

Definition at line 547 of file winsock2.h.

◆ s_net

#define s_net   S_un.S_un_b.s_b1

Definition at line 544 of file winsock2.h.

◆ SD_BOTH

#define SD_BOTH   0x02

Definition at line 418 of file winsock2.h.

◆ SD_RECEIVE

#define SD_RECEIVE   0x00

Definition at line 416 of file winsock2.h.

◆ SD_SEND

#define SD_SEND   0x01

Definition at line 417 of file winsock2.h.

◆ SECURITY_PROTOCOL_NONE

#define SECURITY_PROTOCOL_NONE   0x0000

Definition at line 460 of file winsock2.h.

◆ SERVICE_MULTIPLE

#define SERVICE_MULTIPLE   0x00000001

Definition at line 476 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_IPXPORTA

#define SERVICE_TYPE_VALUE_IPXPORTA   "IpxSocket"

Definition at line 484 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_IPXPORTW

#define SERVICE_TYPE_VALUE_IPXPORTW   L"IpxSocket"

Definition at line 485 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_OBJECTID

#define SERVICE_TYPE_VALUE_OBJECTID   SERVICE_TYPE_VALUE_OBJECTIDA

Definition at line 507 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_OBJECTIDA

#define SERVICE_TYPE_VALUE_OBJECTIDA   "ObjectId"

Definition at line 495 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_OBJECTIDW

#define SERVICE_TYPE_VALUE_OBJECTIDW   L"ObjectId"

Definition at line 496 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_SAPID

#define SERVICE_TYPE_VALUE_SAPID   SERVICE_TYPE_VALUE_SAPIDA

Definition at line 504 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_SAPIDA

#define SERVICE_TYPE_VALUE_SAPIDA   "SapId"

Definition at line 486 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_SAPIDW

#define SERVICE_TYPE_VALUE_SAPIDW   L"SapId"

Definition at line 487 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_TCPPORT

#define SERVICE_TYPE_VALUE_TCPPORT   SERVICE_TYPE_VALUE_TCPPORTA

Definition at line 505 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_TCPPORTA

#define SERVICE_TYPE_VALUE_TCPPORTA   "TcpPort"

Definition at line 489 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_TCPPORTW

#define SERVICE_TYPE_VALUE_TCPPORTW   L"TcpPort"

Definition at line 490 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_UDPPORT

#define SERVICE_TYPE_VALUE_UDPPORT   SERVICE_TYPE_VALUE_UDPPORTA

Definition at line 506 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_UDPPORTA

#define SERVICE_TYPE_VALUE_UDPPORTA   "UdpPort"

Definition at line 492 of file winsock2.h.

◆ SERVICE_TYPE_VALUE_UDPPORTW

#define SERVICE_TYPE_VALUE_UDPPORTW   L"UdpPort"

Definition at line 493 of file winsock2.h.

◆ SG_CONSTRAINED_GROUP

#define SG_CONSTRAINED_GROUP   0x02

Definition at line 421 of file winsock2.h.

◆ SG_UNCONSTRAINED_GROUP

#define SG_UNCONSTRAINED_GROUP   0x01

Definition at line 420 of file winsock2.h.

◆ SIOCATMARK

#define SIOCATMARK   _IOR('s', 7, u_long)

Definition at line 231 of file winsock2.h.

◆ SIOCGHIWAT

#define SIOCGHIWAT   _IOR('s', 1, u_long)

Definition at line 228 of file winsock2.h.

◆ SIOCGLOWAT

#define SIOCGLOWAT   _IOR('s', 3, u_long)

Definition at line 230 of file winsock2.h.

◆ SIOCSHIWAT

#define SIOCSHIWAT   _IOW('s', 0, u_long)

Definition at line 227 of file winsock2.h.

◆ SIOCSLOWAT

#define SIOCSLOWAT   _IOW('s', 2, u_long)

Definition at line 229 of file winsock2.h.

◆ SO_PROTOCOL_INFO

#define SO_PROTOCOL_INFO   SO_PROTOCOL_INFOA

Definition at line 253 of file winsock2.h.

◆ SO_PROTOCOL_INFOA

#define SO_PROTOCOL_INFOA   0x2004

Definition at line 248 of file winsock2.h.

◆ SO_PROTOCOL_INFOW

#define SO_PROTOCOL_INFOW   0x2005

Definition at line 249 of file winsock2.h.

◆ SOCKET_ERROR

#define SOCKET_ERROR   (-1)

Definition at line 244 of file winsock2.h.

◆ SOMAXCONN

#define SOMAXCONN   0x7fffffff

Definition at line 207 of file winsock2.h.

◆ TH_NETDEV

#define TH_NETDEV   0x00000001

Definition at line 473 of file winsock2.h.

◆ TH_TAPI

#define TH_TAPI   0x00000002

Definition at line 474 of file winsock2.h.

◆ timerclear

#define timerclear (   tvp)    (tvp)->tv_sec = (tvp)->tv_usec = 0

Definition at line 161 of file winsock2.h.

◆ timercmp

#define timercmp (   tvp,
  uvp,
  cmp 
)
Value:
(((tvp)->tv_sec != (uvp)->tv_sec) ? \
((tvp)->tv_sec cmp (uvp)->tv_sec) : \
((tvp)->tv_usec cmp (uvp)->tv_usec))
#define cmp(status, error)
Definition: error.c:114

Definition at line 156 of file winsock2.h.

◆ timerisset

#define timerisset (   tvp)    ((tvp)->tv_sec || (tvp)->tv_usec)

Definition at line 154 of file winsock2.h.

◆ TRY_AGAIN

#define TRY_AGAIN   WSATRY_AGAIN

Definition at line 218 of file winsock2.h.

◆ WINSOCK_API_LINKAGE

#define WINSOCK_API_LINKAGE

Definition at line 38 of file winsock2.h.

◆ WINSOCK_VERSION

#define WINSOCK_VERSION   MAKEWORD(2,2)

Definition at line 31 of file winsock2.h.

◆ WSA_E_CANCELLED

#define WSA_E_CANCELLED   (WSABASEERR+111)

Definition at line 375 of file winsock2.h.

◆ WSA_E_NO_MORE

#define WSA_E_NO_MORE   (WSABASEERR+110)

Definition at line 374 of file winsock2.h.

◆ WSA_FLAG_ACCESS_SYSTEM_SECURITY

#define WSA_FLAG_ACCESS_SYSTEM_SECURITY   0x40

Definition at line 471 of file winsock2.h.

◆ WSA_FLAG_MULTIPOINT_C_LEAF

#define WSA_FLAG_MULTIPOINT_C_LEAF   0x04

Definition at line 468 of file winsock2.h.

◆ WSA_FLAG_MULTIPOINT_C_ROOT

#define WSA_FLAG_MULTIPOINT_C_ROOT   0x02

Definition at line 467 of file winsock2.h.

◆ WSA_FLAG_MULTIPOINT_D_LEAF

#define WSA_FLAG_MULTIPOINT_D_LEAF   0x10

Definition at line 470 of file winsock2.h.

◆ WSA_FLAG_MULTIPOINT_D_ROOT

#define WSA_FLAG_MULTIPOINT_D_ROOT   0x08

Definition at line 469 of file winsock2.h.

◆ WSA_FLAG_OVERLAPPED

#define WSA_FLAG_OVERLAPPED   0x01

Definition at line 466 of file winsock2.h.

◆ WSA_INFINITE

#define WSA_INFINITE   ((DWORD)-1L)

Definition at line 628 of file winsock2.h.

◆ WSA_INVALID_EVENT

#define WSA_INVALID_EVENT   ((WSAEVENT)NULL)

Definition at line 623 of file winsock2.h.

◆ WSA_INVALID_HANDLE

#define WSA_INVALID_HANDLE   (WSAENOTSOCK)

Definition at line 618 of file winsock2.h.

◆ WSA_INVALID_PARAMETER

#define WSA_INVALID_PARAMETER   (WSAEINVAL)

Definition at line 619 of file winsock2.h.

◆ WSA_IO_INCOMPLETE

#define WSA_IO_INCOMPLETE   (WSAEWOULDBLOCK)

Definition at line 617 of file winsock2.h.

◆ WSA_IO_PENDING

#define WSA_IO_PENDING   (WSAEWOULDBLOCK)

Definition at line 616 of file winsock2.h.

◆ WSA_MAXIMUM_WAIT_EVENTS

#define WSA_MAXIMUM_WAIT_EVENTS   (MAXIMUM_WAIT_OBJECTS)

Definition at line 624 of file winsock2.h.

◆ WSA_NOT_ENOUGH_MEMORY

#define WSA_NOT_ENOUGH_MEMORY   (WSAENOBUFS)

Definition at line 620 of file winsock2.h.

◆ WSA_OPERATION_ABORTED

#define WSA_OPERATION_ABORTED   (WSAEINTR)

Definition at line 621 of file winsock2.h.

◆ WSA_QOS_ADMISSION_FAILURE

#define WSA_QOS_ADMISSION_FAILURE   (WSABASEERR + 1010)

Definition at line 386 of file winsock2.h.

◆ WSA_QOS_BAD_OBJECT

#define WSA_QOS_BAD_OBJECT   (WSABASEERR + 1013)

Definition at line 389 of file winsock2.h.

◆ WSA_QOS_BAD_STYLE

#define WSA_QOS_BAD_STYLE   (WSABASEERR + 1012)

Definition at line 388 of file winsock2.h.

◆ WSA_QOS_EFILTERCOUNT

#define WSA_QOS_EFILTERCOUNT   (WSABASEERR + 1021)

Definition at line 397 of file winsock2.h.

◆ WSA_QOS_EFILTERSTYLE

#define WSA_QOS_EFILTERSTYLE   (WSABASEERR + 1019)

Definition at line 395 of file winsock2.h.

◆ WSA_QOS_EFILTERTYPE

#define WSA_QOS_EFILTERTYPE   (WSABASEERR + 1020)

Definition at line 396 of file winsock2.h.

◆ WSA_QOS_EFLOWCOUNT

#define WSA_QOS_EFLOWCOUNT   (WSABASEERR + 1023)

Definition at line 399 of file winsock2.h.

◆ WSA_QOS_EFLOWDESC

#define WSA_QOS_EFLOWDESC   (WSABASEERR + 1026)

Definition at line 402 of file winsock2.h.

◆ WSA_QOS_EFLOWSPEC

#define WSA_QOS_EFLOWSPEC   (WSABASEERR + 1017)

Definition at line 393 of file winsock2.h.

◆ WSA_QOS_EOBJLENGTH

#define WSA_QOS_EOBJLENGTH   (WSABASEERR + 1022)

Definition at line 398 of file winsock2.h.

◆ WSA_QOS_EPOLICYOBJ

#define WSA_QOS_EPOLICYOBJ   (WSABASEERR + 1025)

Definition at line 401 of file winsock2.h.

◆ WSA_QOS_EPROVSPECBUF

#define WSA_QOS_EPROVSPECBUF   (WSABASEERR + 1018)

Definition at line 394 of file winsock2.h.

◆ WSA_QOS_EPSFILTERSPEC

#define WSA_QOS_EPSFILTERSPEC   (WSABASEERR + 1028)

Definition at line 404 of file winsock2.h.

◆ WSA_QOS_EPSFLOWSPEC

#define WSA_QOS_EPSFLOWSPEC   (WSABASEERR + 1027)

Definition at line 403 of file winsock2.h.

◆ WSA_QOS_ESDMODEOBJ

#define WSA_QOS_ESDMODEOBJ   (WSABASEERR + 1029)

Definition at line 405 of file winsock2.h.

◆ WSA_QOS_ESERVICETYPE

#define WSA_QOS_ESERVICETYPE   (WSABASEERR + 1016)

Definition at line 392 of file winsock2.h.

◆ WSA_QOS_ESHAPERATEOBJ

#define WSA_QOS_ESHAPERATEOBJ   (WSABASEERR + 1030)

Definition at line 406 of file winsock2.h.

◆ WSA_QOS_EUNKOWNPSOBJ

#define WSA_QOS_EUNKOWNPSOBJ   (WSABASEERR + 1024)

Definition at line 400 of file winsock2.h.

◆ WSA_QOS_GENERIC_ERROR

#define WSA_QOS_GENERIC_ERROR   (WSABASEERR + 1015)

Definition at line 391 of file winsock2.h.

◆ WSA_QOS_NO_RECEIVERS

#define WSA_QOS_NO_RECEIVERS   (WSABASEERR + 1008)

Definition at line 384 of file winsock2.h.

◆ WSA_QOS_NO_SENDERS

#define WSA_QOS_NO_SENDERS   (WSABASEERR + 1007)

Definition at line 383 of file winsock2.h.

◆ WSA_QOS_POLICY_FAILURE

#define WSA_QOS_POLICY_FAILURE   (WSABASEERR + 1011)

Definition at line 387 of file winsock2.h.

◆ WSA_QOS_RECEIVERS

#define WSA_QOS_RECEIVERS   (WSABASEERR + 1005)

Definition at line 381 of file winsock2.h.

◆ WSA_QOS_REQUEST_CONFIRMED

#define WSA_QOS_REQUEST_CONFIRMED   (WSABASEERR + 1009)

Definition at line 385 of file winsock2.h.

◆ WSA_QOS_RESERVED_PETYPE

#define WSA_QOS_RESERVED_PETYPE   (WSABASEERR + 1031)

Definition at line 407 of file winsock2.h.

◆ WSA_QOS_SENDERS

#define WSA_QOS_SENDERS   (WSABASEERR + 1006)

Definition at line 382 of file winsock2.h.

◆ WSA_QOS_TRAFFIC_CTRL_ERROR

#define WSA_QOS_TRAFFIC_CTRL_ERROR   (WSABASEERR + 1014)

Definition at line 390 of file winsock2.h.

◆ WSA_WAIT_EVENT_0

#define WSA_WAIT_EVENT_0   ((DWORD)0)

Definition at line 626 of file winsock2.h.

◆ WSA_WAIT_FAILED

#define WSA_WAIT_FAILED   ((DWORD)-1L)

Definition at line 625 of file winsock2.h.

◆ WSA_WAIT_TIMEOUT

#define WSA_WAIT_TIMEOUT   ((DWORD)0x102L)

Definition at line 627 of file winsock2.h.

◆ WSAAddressToString

#define WSAAddressToString   WSAAddressToStringA

Definition at line 2443 of file winsock2.h.

◆ WSAAPI

#define WSAAPI   FAR PASCAL

Definition at line 605 of file winsock2.h.

◆ WSABASEERR

#define WSABASEERR   10000

Definition at line 318 of file winsock2.h.

◆ WSAConnectByName

#define WSAConnectByName   WSAConnectByNameA

Definition at line 2119 of file winsock2.h.

◆ WSADESCRIPTION_LEN

#define WSADESCRIPTION_LEN   256

Definition at line 239 of file winsock2.h.

◆ WSADuplicateSocket

#define WSADuplicateSocket   WSADuplicateSocketA

Definition at line 2184 of file winsock2.h.

◆ WSAEACCES

#define WSAEACCES   (WSABASEERR+13)

Definition at line 321 of file winsock2.h.

◆ WSAEADDRINUSE

#define WSAEADDRINUSE   (WSABASEERR+48)

Definition at line 338 of file winsock2.h.

◆ WSAEADDRNOTAVAIL

#define WSAEADDRNOTAVAIL   (WSABASEERR+49)

Definition at line 339 of file winsock2.h.

◆ WSAEAFNOSUPPORT

#define WSAEAFNOSUPPORT   (WSABASEERR+47)

Definition at line 337 of file winsock2.h.

◆ WSAEALREADY

#define WSAEALREADY   (WSABASEERR+37)

Definition at line 327 of file winsock2.h.

◆ WSAEBADF

#define WSAEBADF   (WSABASEERR+9)

Definition at line 320 of file winsock2.h.

◆ WSAECANCELLED

#define WSAECANCELLED   (WSABASEERR+103)

Definition at line 367 of file winsock2.h.

◆ WSAECONNABORTED

#define WSAECONNABORTED   (WSABASEERR+53)

Definition at line 343 of file winsock2.h.

◆ WSAECONNREFUSED

#define WSAECONNREFUSED   (WSABASEERR+61)

Definition at line 351 of file winsock2.h.

◆ WSAECONNRESET

#define WSAECONNRESET   (WSABASEERR+54)

Definition at line 344 of file winsock2.h.

◆ WSAEDESTADDRREQ

#define WSAEDESTADDRREQ   (WSABASEERR+39)

Definition at line 329 of file winsock2.h.

◆ WSAEDISCON

#define WSAEDISCON   (WSABASEERR+101)

Definition at line 365 of file winsock2.h.

◆ WSAEDQUOT

#define WSAEDQUOT   (WSABASEERR+69)

Definition at line 359 of file winsock2.h.

◆ WSAEFAULT

#define WSAEFAULT   (WSABASEERR+14)

Definition at line 322 of file winsock2.h.

◆ WSAEHOSTDOWN

#define WSAEHOSTDOWN   (WSABASEERR+64)

Definition at line 354 of file winsock2.h.

◆ WSAEHOSTUNREACH

#define WSAEHOSTUNREACH   (WSABASEERR+65)

Definition at line 355 of file winsock2.h.

◆ WSAEINPROGRESS

#define WSAEINPROGRESS   (WSABASEERR+36)

Definition at line 326 of file winsock2.h.

◆ WSAEINTR

#define WSAEINTR   (WSABASEERR+4)

Definition at line 319 of file winsock2.h.

◆ WSAEINVAL

#define WSAEINVAL   (WSABASEERR+22)

Definition at line 323 of file winsock2.h.

◆ WSAEINVALIDPROCTABLE

#define WSAEINVALIDPROCTABLE   (WSABASEERR+104)

Definition at line 368 of file winsock2.h.

◆ WSAEINVALIDPROVIDER

#define WSAEINVALIDPROVIDER   (WSABASEERR+105)

Definition at line 369 of file winsock2.h.

◆ WSAEISCONN

#define WSAEISCONN   (WSABASEERR+56)

Definition at line 346 of file winsock2.h.

◆ WSAELOOP

#define WSAELOOP   (WSABASEERR+62)

Definition at line 352 of file winsock2.h.

◆ WSAEMFILE

#define WSAEMFILE   (WSABASEERR+24)

Definition at line 324 of file winsock2.h.

◆ WSAEMSGSIZE

#define WSAEMSGSIZE   (WSABASEERR+40)

Definition at line 330 of file winsock2.h.

◆ WSAENAMETOOLONG

#define WSAENAMETOOLONG   (WSABASEERR+63)

Definition at line 353 of file winsock2.h.

◆ WSAENETDOWN

#define WSAENETDOWN   (WSABASEERR+50)

Definition at line 340 of file winsock2.h.

◆ WSAENETRESET

#define WSAENETRESET   (WSABASEERR+52)

Definition at line 342 of file winsock2.h.

◆ WSAENETUNREACH

#define WSAENETUNREACH   (WSABASEERR+51)

Definition at line 341 of file winsock2.h.

◆ WSAENOBUFS

#define WSAENOBUFS   (WSABASEERR+55)

Definition at line 345 of file winsock2.h.

◆ WSAENOMORE

#define WSAENOMORE   (WSABASEERR+102)

Definition at line 366 of file winsock2.h.

◆ WSAENOPROTOOPT

#define WSAENOPROTOOPT   (WSABASEERR+42)

Definition at line 332 of file winsock2.h.

◆ WSAENOTCONN

#define WSAENOTCONN   (WSABASEERR+57)

Definition at line 347 of file winsock2.h.

◆ WSAENOTEMPTY

#define WSAENOTEMPTY   (WSABASEERR+66)

Definition at line 356 of file winsock2.h.

◆ WSAENOTSOCK

#define WSAENOTSOCK   (WSABASEERR+38)

Definition at line 328 of file winsock2.h.

◆ WSAEnumNameSpaceProviders

#define WSAEnumNameSpaceProviders   WSAEnumNameSpaceProvidersA

Definition at line 2589 of file winsock2.h.

◆ WSAEnumProtocols

#define WSAEnumProtocols   WSAEnumProtocolsA

Definition at line 2214 of file winsock2.h.

◆ WSAEOPNOTSUPP

#define WSAEOPNOTSUPP   (WSABASEERR+45)

Definition at line 335 of file winsock2.h.

◆ WSAEPFNOSUPPORT

#define WSAEPFNOSUPPORT   (WSABASEERR+46)

Definition at line 336 of file winsock2.h.

◆ WSAEPROCLIM

#define WSAEPROCLIM   (WSABASEERR+67)

Definition at line 357 of file winsock2.h.

◆ WSAEPROTONOSUPPORT

#define WSAEPROTONOSUPPORT   (WSABASEERR+43)

Definition at line 333 of file winsock2.h.

◆ WSAEPROTOTYPE

#define WSAEPROTOTYPE   (WSABASEERR+41)

Definition at line 331 of file winsock2.h.

◆ WSAEPROVIDERFAILEDINIT

#define WSAEPROVIDERFAILEDINIT   (WSABASEERR+106)

Definition at line 370 of file winsock2.h.

◆ WSAEREFUSED

#define WSAEREFUSED   (WSABASEERR+112)

Definition at line 376 of file winsock2.h.

◆ WSAEREMOTE

#define WSAEREMOTE   (WSABASEERR+71)

Definition at line 361 of file winsock2.h.

◆ WSAESHUTDOWN

#define WSAESHUTDOWN   (WSABASEERR+58)

Definition at line 348 of file winsock2.h.

◆ WSAESOCKTNOSUPPORT

#define WSAESOCKTNOSUPPORT   (WSABASEERR+44)

Definition at line 334 of file winsock2.h.

◆ WSAESTALE

#define WSAESTALE   (WSABASEERR+70)

Definition at line 360 of file winsock2.h.

◆ WSAETIMEDOUT

#define WSAETIMEDOUT   (WSABASEERR+60)

Definition at line 350 of file winsock2.h.

◆ WSAETOOMANYREFS

#define WSAETOOMANYREFS   (WSABASEERR+59)

Definition at line 349 of file winsock2.h.

◆ WSAEUSERS

#define WSAEUSERS   (WSABASEERR+68)

Definition at line 358 of file winsock2.h.

◆ WSAEWOULDBLOCK

#define WSAEWOULDBLOCK   (WSABASEERR+35)

Definition at line 325 of file winsock2.h.

◆ WSAGETASYNCBUFLEN

#define WSAGETASYNCBUFLEN (   lParam)    LOWORD(lParam)

Definition at line 2728 of file winsock2.h.

◆ WSAGETASYNCERROR

#define WSAGETASYNCERROR (   lParam)    HIWORD(lParam)

Definition at line 2729 of file winsock2.h.

◆ WSAGETSELECTERROR

#define WSAGETSELECTERROR (   lParam)    HIWORD(lParam)

Definition at line 2731 of file winsock2.h.

◆ WSAGETSELECTEVENT

#define WSAGETSELECTEVENT (   lParam)    LOWORD(lParam)

Definition at line 2730 of file winsock2.h.

◆ WSAGetServiceClassInfo

#define WSAGetServiceClassInfo   WSAGetServiceClassInfoA

Definition at line 2569 of file winsock2.h.

◆ WSAGetServiceClassNameByClassId

#define WSAGetServiceClassNameByClassId   WSAGetServiceClassNameByClassIdA

Definition at line 2613 of file winsock2.h.

◆ WSAHOST_NOT_FOUND

#define WSAHOST_NOT_FOUND   (WSABASEERR+1001)

Definition at line 377 of file winsock2.h.

◆ WSAInstallServiceClass

#define WSAInstallServiceClass   WSAInstallServiceClassA

Definition at line 2539 of file winsock2.h.

◆ WSALookupServiceBegin

#define WSALookupServiceBegin   WSALookupServiceBeginA

Definition at line 2491 of file winsock2.h.

◆ WSALookupServiceNext

#define WSALookupServiceNext   WSALookupServiceNextA

Definition at line 2515 of file winsock2.h.

◆ WSAMAKEASYNCREPLY

#define WSAMAKEASYNCREPLY (   buflen,
  error 
)    MAKELONG(buflen,error)

Definition at line 2726 of file winsock2.h.

◆ WSAMAKESELECTREPLY

#define WSAMAKESELECTREPLY (   event,
  error 
)    MAKELONG(event,error)

Definition at line 2727 of file winsock2.h.

◆ WSANO_ADDRESS

#define WSANO_ADDRESS   WSANO_DATA

Definition at line 411 of file winsock2.h.

◆ WSANO_DATA

#define WSANO_DATA   (WSABASEERR+1004)

Definition at line 380 of file winsock2.h.

◆ WSANO_RECOVERY

#define WSANO_RECOVERY   (WSABASEERR+1003)

Definition at line 379 of file winsock2.h.

◆ WSANOTINITIALISED

#define WSANOTINITIALISED   (WSABASEERR+93)

Definition at line 364 of file winsock2.h.

◆ WSAPROTOCOL_LEN

#define WSAPROTOCOL_LEN   255

Definition at line 428 of file winsock2.h.

◆ WSASERVICE_NOT_FOUND

#define WSASERVICE_NOT_FOUND   (WSABASEERR+108)

Definition at line 372 of file winsock2.h.

◆ WSASetService

#define WSASetService   WSASetServiceA

Definition at line 2635 of file winsock2.h.

◆ WSASocket

#define WSASocket   WSASocketA

Definition at line 2407 of file winsock2.h.

◆ WSAStringToAddress

#define WSAStringToAddress   WSAStringToAddressA

Definition at line 2469 of file winsock2.h.

◆ WSASYS_STATUS_LEN

#define WSASYS_STATUS_LEN   128

Definition at line 240 of file winsock2.h.

◆ WSASYSCALLFAILURE

#define WSASYSCALLFAILURE   (WSABASEERR+107)

Definition at line 371 of file winsock2.h.

◆ WSASYSNOTREADY

#define WSASYSNOTREADY   (WSABASEERR+91)

Definition at line 362 of file winsock2.h.

◆ WSATRY_AGAIN

#define WSATRY_AGAIN   (WSABASEERR+1002)

Definition at line 378 of file winsock2.h.

◆ WSATYPE_NOT_FOUND

#define WSATYPE_NOT_FOUND   (WSABASEERR+109)

Definition at line 373 of file winsock2.h.

◆ WSAVERNOTSUPPORTED

#define WSAVERNOTSUPPORTED   (WSABASEERR+92)

Definition at line 363 of file winsock2.h.

◆ XP1_CONNECT_DATA

#define XP1_CONNECT_DATA   0x00000080

Definition at line 443 of file winsock2.h.

◆ XP1_CONNECTIONLESS

#define XP1_CONNECTIONLESS   0x00000001

Definition at line 436 of file winsock2.h.

◆ XP1_DISCONNECT_DATA

#define XP1_DISCONNECT_DATA   0x00000100

Definition at line 444 of file winsock2.h.

◆ XP1_EXPEDITED_DATA

#define XP1_EXPEDITED_DATA   0x00000040

Definition at line 442 of file winsock2.h.

◆ XP1_GRACEFUL_CLOSE

#define XP1_GRACEFUL_CLOSE   0x00000020

Definition at line 441 of file winsock2.h.

◆ XP1_GUARANTEED_DELIVERY

#define XP1_GUARANTEED_DELIVERY   0x00000002

Definition at line 437 of file winsock2.h.

◆ XP1_GUARANTEED_ORDER

#define XP1_GUARANTEED_ORDER   0x00000004

Definition at line 438 of file winsock2.h.

◆ XP1_IFS_HANDLES

#define XP1_IFS_HANDLES   0x00020000

Definition at line 453 of file winsock2.h.

◆ XP1_INTERRUPT

#define XP1_INTERRUPT   0x00004000

Definition at line 450 of file winsock2.h.

◆ XP1_MESSAGE_ORIENTED

#define XP1_MESSAGE_ORIENTED   0x00000008

Definition at line 439 of file winsock2.h.

◆ XP1_MULTIPOINT_CONTROL_PLANE

#define XP1_MULTIPOINT_CONTROL_PLANE   0x00000800

Definition at line 447 of file winsock2.h.

◆ XP1_MULTIPOINT_DATA_PLANE

#define XP1_MULTIPOINT_DATA_PLANE   0x00001000

Definition at line 448 of file winsock2.h.

◆ XP1_PARTIAL_MESSAGE

#define XP1_PARTIAL_MESSAGE   0x00040000

Definition at line 454 of file winsock2.h.

◆ XP1_PSEUDO_STREAM

#define XP1_PSEUDO_STREAM   0x00000010

Definition at line 440 of file winsock2.h.

◆ XP1_QOS_SUPPORTED

#define XP1_QOS_SUPPORTED   0x00002000

Definition at line 449 of file winsock2.h.

◆ XP1_SAN_SUPPORT_SDP

#define XP1_SAN_SUPPORT_SDP   0x00080000

Definition at line 455 of file winsock2.h.

◆ XP1_SUPPORT_BROADCAST

#define XP1_SUPPORT_BROADCAST   0x00000200

Definition at line 445 of file winsock2.h.

◆ XP1_SUPPORT_MULTIPOINT

#define XP1_SUPPORT_MULTIPOINT   0x00000400

Definition at line 446 of file winsock2.h.

◆ XP1_UNI_RECV

#define XP1_UNI_RECV   0x00010000

Definition at line 452 of file winsock2.h.

◆ XP1_UNI_SEND

#define XP1_UNI_SEND   0x00008000

Definition at line 451 of file winsock2.h.

Typedef Documentation

◆ AFPROTOCOLS

◆ BLOB

typedef struct _BLOB BLOB

◆ fd_set

typedef struct fd_set fd_set

◆ FD_SET

typedef struct fd_set FD_SET

Definition at line 2710 of file winsock2.h.

◆ GROUP

typedef unsigned int GROUP

Definition at line 640 of file winsock2.h.

◆ HOSTENT

Definition at line 2713 of file winsock2.h.

◆ IN_ADDR

◆ LINGER

typedef struct linger LINGER

Definition at line 2707 of file winsock2.h.

◆ LPAFPROTOCOLS

◆ LPBLOB

typedef struct _BLOB* LPBLOB

◆ LPCONDITIONPROC

typedef int(CALLBACK * LPCONDITIONPROC) (IN LPWSABUF lpCallerId, IN LPWSABUF lpCallerData, IN OUT LPQOS lpSQOS, IN OUT LPQOS lpGQOS, IN LPWSABUF lpCalleeId, IN LPWSABUF lpCalleeData, OUT GROUP FAR *g, IN DWORD_PTR dwCallbackData)

Definition at line 710 of file winsock2.h.

◆ LPFD_SET

Definition at line 2712 of file winsock2.h.

◆ LPHOSTENT

Definition at line 2715 of file winsock2.h.

◆ LPLINGER

Definition at line 2709 of file winsock2.h.

◆ LPPROTOENT

Definition at line 2721 of file winsock2.h.

◆ LPQOS

◆ LPSERVENT

Definition at line 2718 of file winsock2.h.

◆ LPSOCKADDR_IN

Definition at line 2706 of file winsock2.h.

◆ LPTIMEVAL

Definition at line 2724 of file winsock2.h.

◆ LPWSADATA

◆ LPWSAECOMPARATOR

◆ LPWSAESETSERVICEOP

◆ LPWSAEVENT

typedef DWORD FAR* LPWSAEVENT

Definition at line 606 of file winsock2.h.

◆ LPWSANAMESPACE_INFO

Definition at line 988 of file winsock2.h.

◆ LPWSANAMESPACE_INFOA

◆ LPWSANAMESPACE_INFOEX

Definition at line 991 of file winsock2.h.

◆ LPWSANAMESPACE_INFOEXA

◆ LPWSANAMESPACE_INFOEXW

◆ LPWSANAMESPACE_INFOW

◆ LPWSANETWORKEVENTS

◆ LPWSANSCLASSINFO

Definition at line 917 of file winsock2.h.

◆ LPWSANSCLASSINFOA

◆ LPWSANSCLASSINFOW

◆ LPWSAOVERLAPPED

◆ LPWSAOVERLAPPED_COMPLETION_ROUTINE

typedef void(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE) (IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)

Definition at line 721 of file winsock2.h.

◆ LPWSAPROTOCOL_INFO

Definition at line 707 of file winsock2.h.

◆ LPWSAPROTOCOL_INFOA

◆ LPWSAPROTOCOL_INFOW

◆ LPWSAPROTOCOLCHAIN

◆ LPWSAQUERYSET

Definition at line 882 of file winsock2.h.

◆ LPWSAQUERYSET2

Definition at line 885 of file winsock2.h.

◆ LPWSAQUERYSET2A

◆ LPWSAQUERYSET2W

◆ LPWSAQUERYSETA

◆ LPWSASERVICECLASSINFO

Definition at line 941 of file winsock2.h.

◆ LPWSASERVICECLASSINFOA

◆ LPWSASERVICECLASSINFOW

◆ LPWSAVERSION

◆ PAFPROTOCOLS

◆ PBLOB

typedef struct _BLOB* PBLOB

◆ PFD_SET

typedef struct fd_set* PFD_SET

Definition at line 2711 of file winsock2.h.

◆ PHOSTENT

Definition at line 2714 of file winsock2.h.

◆ PIN_ADDR

typedef struct in_addr * PIN_ADDR

◆ PLINGER

typedef struct linger* PLINGER

Definition at line 2708 of file winsock2.h.

◆ PPROTOENT

Definition at line 2720 of file winsock2.h.

◆ PROTOENT

Definition at line 2719 of file winsock2.h.

◆ PSERVENT

Definition at line 2717 of file winsock2.h.

◆ PTIMEVAL

Definition at line 2723 of file winsock2.h.

◆ PWSAECOMPARATOR

◆ PWSAESETSERVICEOP

◆ PWSANAMESPACE_INFO

Definition at line 987 of file winsock2.h.

◆ PWSANAMESPACE_INFOA

◆ PWSANAMESPACE_INFOEX

Definition at line 990 of file winsock2.h.

◆ PWSANAMESPACE_INFOEXA

◆ PWSANAMESPACE_INFOEXW

◆ PWSANAMESPACE_INFOW

◆ PWSANSCLASSINFO

Definition at line 916 of file winsock2.h.

◆ PWSANSCLASSINFOA

◆ PWSANSCLASSINFOW

◆ PWSAQUERYSET

Definition at line 881 of file winsock2.h.

◆ PWSAQUERYSET2

Definition at line 884 of file winsock2.h.

◆ PWSAQUERYSET2A

◆ PWSAQUERYSET2W

◆ PWSAQUERYSETA

◆ PWSASERVICECLASSINFO

Definition at line 940 of file winsock2.h.

◆ PWSASERVICECLASSINFOA

◆ PWSASERVICECLASSINFOW

◆ PWSAVERSION

◆ QOS

◆ SERVENT

Definition at line 2716 of file winsock2.h.

◆ SOCKET

typedef UINT_PTR SOCKET

Definition at line 72 of file winsock2.h.

◆ TIMEVAL

Definition at line 2722 of file winsock2.h.

◆ u_char

typedef unsigned char u_char

Definition at line 55 of file winsock2.h.

◆ u_int

typedef unsigned int u_int

Definition at line 57 of file winsock2.h.

◆ u_long

typedef unsigned long u_long

Definition at line 59 of file winsock2.h.

◆ u_short

Definition at line 56 of file winsock2.h.

◆ WSADATA

◆ WSAECOMPARATOR

◆ WSAESETSERVICEOP

◆ WSAEVENT

typedef DWORD WSAEVENT

Definition at line 606 of file winsock2.h.

◆ WSANAMESPACE_INFO

Definition at line 986 of file winsock2.h.

◆ WSANAMESPACE_INFOA

◆ WSANAMESPACE_INFOEX

Definition at line 989 of file winsock2.h.

◆ WSANAMESPACE_INFOEXA

◆ WSANAMESPACE_INFOEXW

◆ WSANAMESPACE_INFOW

◆ WSANETWORKEVENTS

◆ WSANSCLASSINFO

Definition at line 915 of file winsock2.h.

◆ WSANSCLASSINFOA

◆ WSANSCLASSINFOW

◆ WSAOVERLAPPED

◆ WSAPROTOCOL_INFO

Definition at line 706 of file winsock2.h.

◆ WSAPROTOCOL_INFOA

◆ WSAPROTOCOL_INFOW

◆ WSAPROTOCOLCHAIN

◆ WSAQUERYSET

Definition at line 880 of file winsock2.h.

◆ WSAQUERYSET2

Definition at line 883 of file winsock2.h.

◆ WSAQUERYSET2A

◆ WSAQUERYSET2W

◆ WSAQUERYSETA

◆ WSASERVICECLASSINFO

Definition at line 939 of file winsock2.h.

◆ WSASERVICECLASSINFOA

◆ WSASERVICECLASSINFOW

◆ WSAVERSION

Enumeration Type Documentation

◆ _WSAEcomparator

Enumerator
COMP_EQUAL 
COMP_NOTLESS 

Definition at line 791 of file winsock2.h.

791 {
792 COMP_EQUAL = 0,
enum _WSAEcomparator WSAECOMPARATOR
enum _WSAEcomparator * PWSAECOMPARATOR
@ COMP_EQUAL
Definition: winsock2.h:792
@ COMP_NOTLESS
Definition: winsock2.h:793
enum _WSAEcomparator * LPWSAECOMPARATOR

◆ _WSAESETSERVICEOP

Enumerator
RNRSERVICE_REGISTER 
RNRSERVICE_DEREGISTER 
RNRSERVICE_DELETE 

Definition at line 888 of file winsock2.h.

888 {
enum _WSAESETSERVICEOP * LPWSAESETSERVICEOP
enum _WSAESETSERVICEOP WSAESETSERVICEOP
enum _WSAESETSERVICEOP * PWSAESETSERVICEOP
@ RNRSERVICE_DEREGISTER
Definition: winsock2.h:890
@ RNRSERVICE_REGISTER
Definition: winsock2.h:889
@ RNRSERVICE_DELETE
Definition: winsock2.h:891

Function Documentation

◆ __WSAFDIsSet()

int PASCAL FAR __WSAFDIsSet ( SOCKET  ,
fd_set FAR  
)

◆ _Struct_size_bytes_()

_Struct_size_bytes_ ( dwSize  )

Definition at line 819 of file winsock2.h.

820 {
821 _Field_range_(>=,sizeof(struct _WSAQuerySetW)) DWORD dwSize;
822 LPWSTR lpszServiceInstanceName;
823 LPGUID lpServiceClassId;
824 LPWSAVERSION lpVersion;
825 LPWSTR lpszComment;
826 DWORD dwNameSpace;
827 LPGUID lpNSProviderId;
828 LPWSTR lpszContext;
829 DWORD dwNumberOfProtocols;
830 _Field_size_(dwNumberOfProtocols) LPAFPROTOCOLS lpafpProtocols;
831 LPWSTR lpszQueryString;
832 DWORD dwNumberOfCsAddrs;
833 _Field_size_(dwNumberOfCsAddrs) LPCSADDR_INFO lpcsaBuffer;
834 DWORD dwOutputFlags;
835 LPBLOB lpBlob;
unsigned long DWORD
Definition: ntddk_ex.h:95
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
#define _Field_size_(s)
Definition: no_sal2.h:332
#define _Field_range_(l, h)
Definition: no_sal2.h:380
Definition: nspapi.h:57
* LPWSAQUERYSETW
Definition: winsock2.h:836
WSAQUERYSETW
Definition: winsock2.h:836
* PWSAQUERYSETW
Definition: winsock2.h:836
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ _Success_()

_Success_ ( return  = = 0)

◆ accept()

◆ bind()

◆ closesocket()

◆ connect()

◆ gethostbyaddr()

WINSOCK_API_LINKAGE struct hostent FAR *WSAAPI gethostbyaddr ( _In_reads_bytes_(len) const char FAR addr,
_In_ int  len,
_In_ int  type 
)

◆ gethostbyname()

◆ gethostname()

WINSOCK_API_LINKAGE int WSAAPI gethostname ( _Out_writes_bytes_(namelen) char FAR name,
_In_ int  namelen 
)

◆ getpeername()

◆ getprotobyname()

◆ getprotobynumber()

WINSOCK_API_LINKAGE struct protoent FAR *WSAAPI getprotobynumber ( _In_ int  number)

◆ getservbyname()

WINSOCK_API_LINKAGE struct servent FAR *WSAAPI getservbyname ( _In_z_ const char FAR name,
_In_opt_z_ const char FAR proto 
)

◆ getservbyport()

WINSOCK_API_LINKAGE struct servent FAR *WSAAPI getservbyport ( _In_ int  port,
_In_opt_z_ const char FAR proto 
)

◆ getsockname()

◆ getsockopt()

WINSOCK_API_LINKAGE int WSAAPI getsockopt ( _In_ SOCKET  s,
_In_ int  level,
_In_ int  optname,
_Out_writes_bytes_ *optlen char FAR optval,
_Inout_ int FAR optlen 
)

◆ htonl()

WINSOCK_API_LINKAGE u_long WSAAPI htonl ( IN u_long  hostlong)

◆ htons()

◆ inet_addr()

◆ inet_ntoa()

◆ ioctlsocket()

WINSOCK_API_LINKAGE int WSAAPI ioctlsocket ( _In_ SOCKET  s,
_In_ long  cmd,
_Inout_ u_long FAR argp 
)

◆ listen()

WINSOCK_API_LINKAGE int WSAAPI listen ( _In_ SOCKET  s,
_In_ int  backlog 
)

◆ ntohl()

◆ ntohs()

◆ recv()

◆ recvfrom()

◆ select()

WINSOCK_API_LINKAGE int WSAAPI select ( _In_ int  nfds,
_Inout_opt_ fd_set FAR readfds,
_Inout_opt_ fd_set FAR writefds,
_Inout_opt_ fd_set FAR exceptfds,
_In_opt_ const struct timeval FAR timeout 
)

◆ send()

WINSOCK_API_LINKAGE int WSAAPI send ( _In_ SOCKET  s,
_In_reads_bytes_(len) const char FAR buf,
_In_ int  len,
_In_ int  flags 
)

◆ sendto()

WINSOCK_API_LINKAGE int WSAAPI sendto ( _In_ SOCKET  s,
_In_reads_bytes_(len) const char FAR buf,
_In_ int  len,
_In_ int  flags,
_In_reads_bytes_(tolen) const struct sockaddr FAR to,
_In_ int  tolen 
)

◆ setsockopt()

WINSOCK_API_LINKAGE int WSAAPI setsockopt ( _In_ SOCKET  s,
_In_ int  level,
_In_ int  optname,
_In_reads_bytes_opt_(optlen) const char FAR optval,
_In_ int  optlen 
)

◆ shutdown()

WINSOCK_API_LINKAGE int WSAAPI shutdown ( _In_ SOCKET  s,
_In_ int  how 
)

◆ socket()

_Must_inspect_result_ WINSOCK_API_LINKAGE SOCKET WSAAPI socket ( _In_ int  af,
_In_ int  type,
_In_ int  protocol 
)

◆ WSAAccept()

◆ WSAAddressToStringA()

WINSOCK_API_LINKAGE INT WSAAPI WSAAddressToStringA ( _In_reads_bytes_(dwAddressLength) LPSOCKADDR  lpsaAddress,
_In_ DWORD  dwAddressLength,
_In_opt_ LPWSAPROTOCOL_INFOA  lpProtocolInfo,
_Out_writes_to_ *, *lpdwAddressStringLength LPSTR  lpszAddressString,
_Inout_ LPDWORD  lpdwAddressStringLength 
)

◆ WSAAddressToStringW()

WINSOCK_API_LINKAGE INT WSAAPI WSAAddressToStringW ( _In_reads_bytes_(dwAddressLength) LPSOCKADDR  lpsaAddress,
_In_ DWORD  dwAddressLength,
_In_opt_ LPWSAPROTOCOL_INFOW  lpProtocolInfo,
_Out_writes_to_ *, *lpdwAddressStringLength LPWSTR  lpszAddressString,
_Inout_ LPDWORD  lpdwAddressStringLength 
)

◆ WSAAsyncGetHostByAddr()

WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetHostByAddr ( _In_ HWND  hWnd,
_In_ u_int  wMsg,
_In_reads_bytes_(len) const char FAR addr,
_In_ int  len,
_In_ int  type,
_Out_writes_bytes_(buflen) char FAR buf,
_In_ int  buflen 
)

◆ WSAAsyncGetHostByName()

WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetHostByName ( _In_ HWND  hWnd,
_In_ u_int  wMsg,
_In_z_ const char FAR name,
_Out_writes_bytes_(buflen) char FAR buf,
_In_ int  buflen 
)

◆ WSAAsyncGetProtoByName()

WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetProtoByName ( _In_ HWND  hWnd,
_In_ u_int  wMsg,
_In_z_ const char FAR name,
_Out_writes_bytes_(buflen) char FAR buf,
_In_ int  buflen 
)

◆ WSAAsyncGetProtoByNumber()

WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetProtoByNumber ( _In_ HWND  hWnd,
_In_ u_int  wMsg,
_In_ int  number,
_Out_writes_bytes_(buflen) char FAR buf,
_In_ int  buflen 
)

◆ WSAAsyncGetServByName()

WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetServByName ( _In_ HWND  hWnd,
_In_ u_int  wMsg,
_In_z_ const char FAR name,
_In_z_ const char FAR proto,
_Out_writes_bytes_(buflen) char FAR buf,
_In_ int  buflen 
)

◆ WSAAsyncGetServByPort()

WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetServByPort ( _In_ HWND  hWnd,
_In_ u_int  wMsg,
_In_ int  port,
_In_ const char FAR proto,
_Out_writes_bytes_(buflen) char FAR buf,
_In_ int  buflen 
)

◆ WSAAsyncSelect()

WINSOCK_API_LINKAGE int WSAAPI WSAAsyncSelect ( _In_ SOCKET  s,
_In_ HWND  hWnd,
_In_ u_int  wMsg,
_In_ long  lEvent 
)

◆ WSACancelAsyncRequest()

WINSOCK_API_LINKAGE int WSAAPI WSACancelAsyncRequest ( _In_ HANDLE  hAsyncTaskHandle)

◆ WSACancelBlockingCall()

WINSOCK_API_LINKAGE int WSAAPI WSACancelBlockingCall ( void  )

Definition at line 23 of file bhook.c.

24{
28 DPRINT("WSACancelBlockingCall\n");
29
30 /* Call the prolog */
33 {
34 /* Fail */
36 return SOCKET_ERROR;
37 }
38
39 /* Make sure this isn't a 2.2 client */
40 if (LOBYTE(Process->Version) >= 2)
41 {
42 /* Only valid for 1.x */
44 return SOCKET_ERROR;
45 }
46
47 /* Cancel the call */
50 {
51 /* Fail */
53 return SOCKET_ERROR;
54 }
55
56 /* Return success */
57 return ERROR_SUCCESS;
58}
#define ERROR_SUCCESS
Definition: deptool.c:10
#define SetLastError(x)
Definition: compat.h:752
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:223
#define LOBYTE(W)
Definition: jmemdos.c:487
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define DPRINT
Definition: sndvol32.h:73
int32_t INT
Definition: typedefs.h:58
#define WSAEOPNOTSUPP
Definition: winerror.h:1958
#define SOCKET_ERROR
Definition: winsock.h:333
INT WSAAPI WsApiProlog(OUT PWSPROCESS *Process, OUT PWSTHREAD *Thread)
Definition: wsautil.c:91
DWORD WSAAPI WsThreadCancelBlockingCall(IN PWSTHREAD Thread)
Definition: dthread.c:96

◆ WSACleanup()

WINSOCK_API_LINKAGE int WSAAPI WSACleanup ( void  )

Definition at line 60 of file startup.c.

61{
65 LONG RefCount;
66 DPRINT("WSACleanup\n");
67
68 /* Enter startup lock */
70
71 /* Enter prolog */
73 {
74 /* Decrement process reference count and check if it's zero */
75 if (!(RefCount = InterlockedDecrement(&Process->RefCount)))
76 {
77 /* It's zero, destroy the process structure */
79 }
80 else if (RefCount == 1 && WsAsyncThreadInitialized)
81 {
82 /* Kill async thread */
84 }
85
86 DPRINT("WSACleanup RefCount = %ld\n", RefCount);
87 /* Return success */
89
90 /* Clear last error */
92 }
93 else
94 {
95 DPRINT("WSACleanup uninitialized\n");
96 /* Weren't initialized */
99 }
100
101 /* Release startup lock */
103
104 /* Done */
105 return ErrorCode;
106}
#define InterlockedDecrement
Definition: armddk.h:52
#define WsStartupLock()
Definition: startup.c:21
#define WsStartupUnlock()
Definition: startup.c:22
long LONG
Definition: pedump.c:60
VOID WSAAPI WsAsyncTerminateThread(VOID)
Definition: async.c:899
VOID WSAAPI WsProcDelete(IN PWSPROCESS Process)
Definition: dprocess.c:247
BOOLEAN WsAsyncThreadInitialized
Definition: async.c:15

◆ WSACloseEvent()

WINSOCK_API_LINKAGE BOOL WSAAPI WSACloseEvent ( _In_ WSAEVENT  hEvent)

◆ WSAConnect()

WINSOCK_API_LINKAGE int WSAAPI WSAConnect ( _In_ SOCKET  s,
_In_reads_bytes_(namelen) const struct sockaddr FAR name,
_In_ int  namelen,
_In_opt_ LPWSABUF  lpCallerData,
_Out_opt_ LPWSABUF  lpCalleeData,
_In_opt_ LPQOS  lpSQOS,
_In_opt_ LPQOS  lpGQOS 
)

◆ WSAConnectByList()

BOOL PASCAL WSAConnectByList ( _In_ SOCKET  s,
_In_ PSOCKET_ADDRESS_LIST  SocketAddress,
_Inout_opt_ LPDWORD  LocalAddressLength,
_Out_writes_bytes_to_opt_ *, *LocalAddressLength LPSOCKADDR  LocalAddress,
_Inout_opt_ LPDWORD  RemoteAddressLength,
_Out_writes_bytes_to_opt_ *, *RemoteAddressLength LPSOCKADDR  RemoteAddress,
_In_opt_ const struct timeval timeout,
_Reserved_ LPWSAOVERLAPPED  Reserved 
)

◆ WSAConnectByNameA()

BOOL PASCAL WSAConnectByNameA ( _In_ SOCKET  s,
_In_ LPCSTR  nodename,
_In_ LPCSTR  servicename,
_Inout_opt_ LPDWORD  LocalAddressLength,
_Out_writes_bytes_to_opt_ *, *LocalAddressLength LPSOCKADDR  LocalAddress,
_Inout_opt_ LPDWORD  RemoteAddressLength,
_Out_writes_bytes_to_opt_ *, *RemoteAddressLength LPSOCKADDR  RemoteAddress,
_In_opt_ const struct timeval timeout,
_Reserved_ LPWSAOVERLAPPED  Reserved 
)

◆ WSAConnectByNameW()

BOOL PASCAL WSAConnectByNameW ( _In_ SOCKET  s,
_In_ LPWSTR  nodename,
_In_ LPWSTR  servicename,
_Inout_opt_ LPDWORD  LocalAddressLength,
_Out_writes_bytes_to_opt_ *, *LocalAddressLength LPSOCKADDR  LocalAddress,
_Inout_opt_ LPDWORD  RemoteAddressLength,
_Out_writes_bytes_to_opt_ *, *RemoteAddressLength LPSOCKADDR  RemoteAddress,
_In_opt_ const struct timeval timeout,
_Reserved_ LPWSAOVERLAPPED  Reserved 
)

◆ WSACreateEvent()

WINSOCK_API_LINKAGE WSAEVENT WSAAPI WSACreateEvent ( void  )

Definition at line 42 of file event.c.

43{
44 /* CreateEventW can only return the Event or 0 (WSA_INVALID_EVENT) */
45 return CreateEventW(NULL, TRUE, FALSE, NULL);
46}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
Definition: synch.c:651

Referenced by detectChange(), dispatch(), event_client(), CSocket::SetEvents(), START_TEST(), test_events(), Test_Overread(), and Test_WSARecv().

◆ WSADuplicateSocketA()

WINSOCK_API_LINKAGE int WSAAPI WSADuplicateSocketA ( _In_ SOCKET  s,
_In_ DWORD  dwProcessId,
_Out_ LPWSAPROTOCOL_INFOA  lpProtocolInfo 
)

◆ WSADuplicateSocketW()

WINSOCK_API_LINKAGE int WSAAPI WSADuplicateSocketW ( _In_ SOCKET  s,
_In_ DWORD  dwProcessId,
_Out_ LPWSAPROTOCOL_INFOW  lpProtocolInfo 
)

◆ WSAEnumNameSpaceProvidersA()

WINSOCK_API_LINKAGE INT WSAAPI WSAEnumNameSpaceProvidersA ( _Inout_ LPDWORD  lpdwBufferLength,
_Out_writes_bytes_to_ *, *lpdwBufferLength LPWSANAMESPACE_INFOA  lpnspBuffer 
)

◆ WSAEnumNameSpaceProvidersW()

WINSOCK_API_LINKAGE INT WSAAPI WSAEnumNameSpaceProvidersW ( _Inout_ LPDWORD  lpdwBufferLength,
_Out_writes_bytes_to_ *, *lpdwBufferLength LPWSANAMESPACE_INFOW  lpnspBuffer 
)

◆ WSAEnumNetworkEvents()

WINSOCK_API_LINKAGE int WSAAPI WSAEnumNetworkEvents ( _In_ SOCKET  s,
_In_ WSAEVENT  hEventObject,
_Out_ LPWSANETWORKEVENTS  lpNetworkEvents 
)

◆ WSAEnumProtocolsA()

WINSOCK_API_LINKAGE int WSAAPI WSAEnumProtocolsA ( _In_opt_ LPINT  lpiProtocols,
_Out_writes_bytes_to_opt_ *, *lpdwBufferLength LPWSAPROTOCOL_INFOA  lpProtocolBuffer,
_Inout_ LPDWORD  lpdwBufferLength 
)

◆ WSAEnumProtocolsW()

WINSOCK_API_LINKAGE int WSAAPI WSAEnumProtocolsW ( _In_opt_ LPINT  lpiProtocols,
_Out_writes_bytes_to_opt_ *, *lpdwBufferLength LPWSAPROTOCOL_INFOW  lpProtocolBuffer,
_Inout_ LPDWORD  lpdwBufferLength 
)

◆ WSAEventSelect()

WINSOCK_API_LINKAGE int WSAAPI WSAEventSelect ( _In_ SOCKET  s,
_In_opt_ WSAEVENT  hEventObject,
_In_ long  lNetworkEvents 
)

◆ WSAGetLastError()

WINSOCK_API_LINKAGE int WSAAPI WSAGetLastError ( void  )

Definition at line 112 of file dllmain.c.

113{
114 /* Let the Windows Function do the work */
115 return GetLastError();
116}
DWORD WINAPI GetLastError(void)
Definition: except.c:1042

◆ WSAGetOverlappedResult()

WINSOCK_API_LINKAGE BOOL WSAAPI WSAGetOverlappedResult ( _In_ SOCKET  s,
_In_ LPWSAOVERLAPPED  lpOverlapped,
_Out_ LPDWORD  lpcbTransfer,
_In_ BOOL  fWait,
_Out_ LPDWORD  lpdwFlags 
)

◆ WSAGetQOSByName()

WINSOCK_API_LINKAGE BOOL WSAAPI WSAGetQOSByName ( _In_ SOCKET  s,
_In_ LPWSABUF  lpQOSName,
_Out_ LPQOS  lpQOS 
)

◆ WSAGetServiceClassInfoA()

WINSOCK_API_LINKAGE INT WSAAPI WSAGetServiceClassInfoA ( _In_ LPGUID  lpProviderId,
_In_ LPGUID  lpServiceClassId,
_Inout_ LPDWORD  lpdwBufSize,
_Out_writes_bytes_to_ *, *lpdwBufSize LPWSASERVICECLASSINFOA  lpServiceClassInfo 
)

◆ WSAGetServiceClassInfoW()

WINSOCK_API_LINKAGE INT WSAAPI WSAGetServiceClassInfoW ( _In_ LPGUID  lpProviderId,
_In_ LPGUID  lpServiceClassId,
_Inout_ LPDWORD  lpdwBufSize,
_Out_writes_bytes_to_ *, *lpdwBufSize LPWSASERVICECLASSINFOW  lpServiceClassInfo 
)

◆ WSAHtonl()

WINSOCK_API_LINKAGE int WSAAPI WSAHtonl ( _In_ SOCKET  s,
_In_ u_long  hostlong,
_Out_ u_long FAR lpnetlong 
)

◆ WSAHtons()

WINSOCK_API_LINKAGE int WSAAPI WSAHtons ( _In_ SOCKET  s,
_In_ u_short  hostshort,
_Out_ u_short FAR lpnetshort 
)

◆ WSAInstallServiceClassA()

WINSOCK_API_LINKAGE INT WSAAPI WSAInstallServiceClassA ( _In_ LPWSASERVICECLASSINFOA  lpServiceClassInfo)

◆ WSAInstallServiceClassW()

WINSOCK_API_LINKAGE INT WSAAPI WSAInstallServiceClassW ( _In_ LPWSASERVICECLASSINFOW  lpServiceClassInfo)

◆ WSAIoctl()

WINSOCK_API_LINKAGE int WSAAPI WSAIoctl ( _In_ SOCKET  s,
_In_ DWORD  dwIoControlCode,
_In_reads_bytes_opt_(cbInBuffer) LPVOID  lpvInBuffer,
_In_ DWORD  cbInBuffer,
_Out_writes_bytes_to_opt_(cbOutBuffer, *lpcbBytesReturned) LPVOID  lpvOutBuffer,
_In_ DWORD  cbOutBuffer,
_Out_ LPDWORD  lpcbBytesReturned,
_Inout_opt_ LPWSAOVERLAPPED  lpOverlapped,
_In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine 
)

◆ WSAIsBlocking()

WINSOCK_API_LINKAGE BOOL WSAAPI WSAIsBlocking ( void  )

Definition at line 65 of file bhook.c.

66{
70 DPRINT("WSAIsBlocking\n");
71
72 /* Call the prolog */
75 {
76 /* Fail unless its because we're busy */
77 if (ErrorCode != WSAEINPROGRESS) return FALSE;
78 }
79
80 /* Return the value from the thread */
81 return Thread->Blocking;
82}
#define WSAEINPROGRESS
Definition: winerror.h:1949

◆ WSAJoinLeaf()

WINSOCK_API_LINKAGE SOCKET WSAAPI WSAJoinLeaf ( _In_ SOCKET  s,
_In_reads_bytes_(namelen) const struct sockaddr FAR name,
_In_ int  namelen,
_In_opt_ LPWSABUF  lpCallerData,
_Out_opt_ LPWSABUF  lpCalleeData,
_In_opt_ LPQOS  lpSQOS,
_In_opt_ LPQOS  lpGQOS,
_In_ DWORD  dwFlags 
)

◆ WSALookupServiceBeginA()

WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceBeginA ( _In_ LPWSAQUERYSETA  lpqsRestrictions,
_In_ DWORD  dwControlFlags,
_Out_ LPHANDLE  lphLookup 
)

◆ WSALookupServiceBeginW()

WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceBeginW ( _In_ LPWSAQUERYSETW  lpqsRestrictions,
_In_ DWORD  dwControlFlags,
_Out_ LPHANDLE  lphLookup 
)

◆ WSALookupServiceEnd()

WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceEnd ( _In_ HANDLE  hLookup)

◆ WSALookupServiceNextA()

WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceNextA ( _In_ HANDLE  hLookup,
_In_ DWORD  dwControlFlags,
_Inout_ LPDWORD  lpdwBufferLength,
_Out_writes_bytes_to_ *, *lpdwBufferLength LPWSAQUERYSETA  lpqsResults 
)

◆ WSALookupServiceNextW()

WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceNextW ( _In_ HANDLE  hLookup,
_In_ DWORD  dwControlFlags,
_Inout_ LPDWORD  lpdwBufferLength,
_Out_writes_bytes_to_opt_ *, *lpdwBufferLength LPWSAQUERYSETW  lpqsResults 
)

◆ WSANtohl()

WINSOCK_API_LINKAGE int WSAAPI WSANtohl ( _In_ SOCKET  s,
_In_ u_long  netlong,
_Out_ u_long FAR lphostlong 
)

◆ WSANtohs()

WINSOCK_API_LINKAGE int WSAAPI WSANtohs ( _In_ SOCKET  s,
_In_ u_short  netshort,
_Out_ u_short FAR lphostshort 
)

◆ WSAProviderConfigChange()

WINSOCK_API_LINKAGE INT WSAAPI WSAProviderConfigChange ( _Inout_ LPHANDLE  lpNotificationHandle,
_Inout_opt_ LPWSAOVERLAPPED  lpOverlapped,
_In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine 
)

◆ WSARecv()

WINSOCK_API_LINKAGE int WSAAPI WSARecv ( _In_ SOCKET  s,
_In_reads_(dwBufferCount) __out_data_source(NETWORK) LPWSABUF  lpBuffers,
_In_ DWORD  dwBufferCount,
_Out_opt_ LPDWORD  lpNumberOfBytesRecvd,
_Inout_ LPDWORD  lpFlags,
_Inout_opt_ LPWSAOVERLAPPED  lpOverlapped,
_In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine 
)

◆ WSARecvDisconnect()

WINSOCK_API_LINKAGE int WSAAPI WSARecvDisconnect ( _In_ SOCKET  s,
_In_opt_ __out_data_source(NETWORK) LPWSABUF  lpInboundDisconnectData 
)

◆ WSARecvFrom()

WINSOCK_API_LINKAGE int WSAAPI WSARecvFrom ( _In_ SOCKET  s,
_In_reads_(dwBufferCount) __out_data_source(NETWORK) LPWSABUF  lpBuffers,
_In_ DWORD  dwBufferCount,
_Out_opt_ LPDWORD  lpNumberOfBytesRecvd,
_Inout_ LPDWORD  lpFlags,
_Out_writes_bytes_to_opt_ *, *lpFromlen struct sockaddr FAR lpFrom,
_Inout_opt_ LPINT  lpFromlen,
_Inout_opt_ LPWSAOVERLAPPED  lpOverlapped,
_In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine 
)

◆ WSARemoveServiceClass()

WINSOCK_API_LINKAGE INT WSAAPI WSARemoveServiceClass ( _In_ LPGUID  lpServiceClassId)

◆ WSAResetEvent()

WINSOCK_API_LINKAGE BOOL WSAAPI WSAResetEvent ( _In_ WSAEVENT  hEvent)

◆ WSASend()

WINSOCK_API_LINKAGE int WSAAPI WSASend ( _In_ SOCKET  s,
_In_reads_(dwBufferCount) LPWSABUF  lpBuffers,
_In_ DWORD  dwBufferCount,
_Out_opt_ LPDWORD  lpNumberOfBytesSent,
_In_ DWORD  dwFlags,
_Inout_opt_ LPWSAOVERLAPPED  lpOverlapped,
_In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine 
)

◆ WSASendDisconnect()

WINSOCK_API_LINKAGE int WSAAPI WSASendDisconnect ( _In_ SOCKET  s,
_In_opt_ LPWSABUF  lpOutboundDisconnectData 
)

◆ WSASendTo()

WINSOCK_API_LINKAGE int WSAAPI WSASendTo ( _In_ SOCKET  s,
_In_reads_(dwBufferCount) LPWSABUF  lpBuffers,
_In_ DWORD  dwBufferCount,
_Out_opt_ LPDWORD  lpNumberOfBytesSent,
_In_ DWORD  dwFlags,
_In_reads_bytes_opt_(iTolen) const struct sockaddr FAR lpTo,
_In_ int  iTolen,
_Inout_opt_ LPWSAOVERLAPPED  lpOverlapped,
_In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine 
)

◆ WSASetBlockingHook()

WINSOCK_API_LINKAGE FARPROC WSAAPI WSASetBlockingHook ( _In_ FARPROC  lpBlockFunc)

◆ WSASetEvent()

WINSOCK_API_LINKAGE BOOL WSAAPI WSASetEvent ( _In_ WSAEVENT  hEvent)

◆ WSASetLastError()

WINSOCK_API_LINKAGE void WSAAPI WSASetLastError ( _In_ int  iError)

◆ WSASetServiceA()

WINSOCK_API_LINKAGE INT WSAAPI WSASetServiceA ( _In_ LPWSAQUERYSETA  lpqsRegInfo,
_In_ WSAESETSERVICEOP  essoperation,
_In_ DWORD  dwControlFlags 
)

◆ WSASetServiceW()

WINSOCK_API_LINKAGE INT WSAAPI WSASetServiceW ( _In_ LPWSAQUERYSETW  lpqsRegInfo,
_In_ WSAESETSERVICEOP  essoperation,
_In_ DWORD  dwControlFlags 
)

◆ WSASocketA()

_Must_inspect_result_ WINSOCK_API_LINKAGE SOCKET WSAAPI WSASocketA ( _In_ int  af,
_In_ int  type,
_In_ int  protocol,
_In_opt_ LPWSAPROTOCOL_INFOA  lpProtocolInfo,
_In_ GROUP  g,
_In_ DWORD  dwFlags 
)

◆ WSASocketW()

_Must_inspect_result_ WINSOCK_API_LINKAGE SOCKET WSAAPI WSASocketW ( _In_ int  af,
_In_ int  type,
_In_ int  protocol,
_In_opt_ LPWSAPROTOCOL_INFOW  lpProtocolInfo,
_In_ GROUP  g,
_In_ DWORD  dwFlags 
)

◆ WSAStartup()

_Must_inspect_result_ WINSOCK_API_LINKAGE int WSAAPI WSAStartup ( _In_ WORD  wVersionRequired,
_Out_ LPWSADATA  lpWSAData 
)

◆ WSAStringToAddressA()

WINSOCK_API_LINKAGE INT WSAAPI WSAStringToAddressA ( _In_ LPSTR  AddressString,
_In_ INT  AddressFamily,
_In_opt_ LPWSAPROTOCOL_INFOA  lpProtocolInfo,
_Out_writes_bytes_to_ *, *lpAddressLength LPSOCKADDR  lpAddress,
_Inout_ LPINT  lpAddressLength 
)

◆ WSAStringToAddressW()

WINSOCK_API_LINKAGE INT WSAAPI WSAStringToAddressW ( _In_ LPWSTR  AddressString,
_In_ INT  AddressFamily,
_In_opt_ LPWSAPROTOCOL_INFOW  lpProtocolInfo,
_Out_writes_bytes_to_ *, *lpAddressLength LPSOCKADDR  lpAddress,
_Inout_ LPINT  lpAddressLength 
)

◆ WSAUnhookBlockingHook()

WINSOCK_API_LINKAGE int WSAAPI WSAUnhookBlockingHook ( void  )

Definition at line 130 of file bhook.c.

131{
135 DPRINT("WSAUnhookBlockingHook\n");
136
137 /* Call the prolog */
140 {
141 /* Fail */
143 return SOCKET_ERROR;
144 }
145
146 /* Make sure this isn't a 2.2 client */
147 if (LOBYTE(Process->Version) >= 2)
148 {
149 /* Only valid for 1.x */
151 return SOCKET_ERROR;
152 }
153
154 /* Set the blocking hook and return the previous one */
156}
DWORD WSAAPI WsThreadUnhookBlockingHook(IN PWSTHREAD Thread)
Definition: dthread.c:84

◆ WSAWaitForMultipleEvents()

WINSOCK_API_LINKAGE DWORD WSAAPI WSAWaitForMultipleEvents ( _In_ DWORD  cEvents,
_In_reads_(cEvents) const WSAEVENT FAR lphEvents,
_In_ BOOL  fWaitAll,
_In_ DWORD  dwTimeout,
_In_ BOOL  fAlertable 
)

Variable Documentation

◆ lpdwBufferLength

_Out_writes_bytes_to_ lpdwBufferLength LPWSTR _Inout_ LPDWORD lpdwBufferLength

Definition at line 2599 of file winsock2.h.

◆ lpszServiceClassName

Definition at line 2598 of file winsock2.h.

◆ LPWSAQUERYSETW

* LPWSAQUERYSETW

Definition at line 836 of file winsock2.h.

◆ PWSAQUERYSETW

* PWSAQUERYSETW

Definition at line 836 of file winsock2.h.

◆ WSAQUERYSETW

WSAQUERYSETW

Definition at line 836 of file winsock2.h.

Referenced by LookupNodeByAddr(), and WSALookupServiceNextA().