ReactOS  0.4.13-dev-257-gfabbd7c
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  hostent
 
struct  linger
 
struct  netent
 
struct  servent
 
struct  protoent
 
struct  WSAData
 
struct  sockproto
 
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 WINSOCK_VERSION   MAKEWORD(2,2)
 
#define WINSOCK_API_LINKAGE   DECLSPEC_IMPORT
 
#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 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 WSAAPI   FAR PASCAL
 
#define WSAEVENT   HANDLE
 
#define LPWSAEVENT   LPHANDLE
 
#define WSAOVERLAPPED   OVERLAPPED
 
#define WSA_IO_PENDING   (ERROR_IO_PENDING)
 
#define WSA_IO_INCOMPLETE   (ERROR_IO_INCOMPLETE)
 
#define WSA_INVALID_HANDLE   (ERROR_INVALID_HANDLE)
 
#define WSA_INVALID_PARAMETER   (ERROR_INVALID_PARAMETER)
 
#define WSA_NOT_ENOUGH_MEMORY   (ERROR_NOT_ENOUGH_MEMORY)
 
#define WSA_OPERATION_ABORTED   (ERROR_OPERATION_ABORTED)
 
#define WSA_INVALID_EVENT   ((WSAEVENT)NULL)
 
#define WSA_MAXIMUM_WAIT_EVENTS   (MAXIMUM_WAIT_OBJECTS)
 
#define WSA_WAIT_FAILED   ((DWORD)-1L)
 
#define WSA_WAIT_EVENT_0   (WAIT_OBJECT_0)
 
#define WSA_WAIT_IO_COMPLETION   (WAIT_IO_COMPLETION)
 
#define WSA_WAIT_TIMEOUT   (WAIT_TIMEOUT)
 
#define WSA_INFINITE   (INFINITE)
 
#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 UINT_PTR SOCKET
 
typedef struct fd_set fd_set
 
typedef struct WSAData WSADATA
 
typedef struct WSADataLPWSADATA
 
typedef struct _OVERLAPPEDLPWSAOVERLAPPED
 
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 770 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 771 of file winsock2.h.

◆ _NEED_POPPACK

#define _NEED_POPPACK

Definition at line 11 of file winsock2.h.

◆ _tagBLOB_DEFINED

#define _tagBLOB_DEFINED

Definition at line 769 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_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_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_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.

◆ 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.

◆ LPWSAEVENT

#define LPWSAEVENT   LPHANDLE

Definition at line 586 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.

◆ 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.

◆ 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.

◆ TRY_AGAIN

#define TRY_AGAIN   WSATRY_AGAIN

Definition at line 218 of file winsock2.h.

◆ WINSOCK_API_LINKAGE

#define WINSOCK_API_LINKAGE   DECLSPEC_IMPORT

Definition at line 36 of file winsock2.h.

◆ WINSOCK_VERSION

#define WINSOCK_VERSION   MAKEWORD(2,2)

Definition at line 31 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   (INFINITE)

Definition at line 601 of file winsock2.h.

◆ WSA_INVALID_EVENT

#define WSA_INVALID_EVENT   ((WSAEVENT)NULL)

Definition at line 595 of file winsock2.h.

◆ WSA_INVALID_HANDLE

#define WSA_INVALID_HANDLE   (ERROR_INVALID_HANDLE)

Definition at line 591 of file winsock2.h.

◆ WSA_INVALID_PARAMETER

#define WSA_INVALID_PARAMETER   (ERROR_INVALID_PARAMETER)

Definition at line 592 of file winsock2.h.

◆ WSA_IO_INCOMPLETE

#define WSA_IO_INCOMPLETE   (ERROR_IO_INCOMPLETE)

Definition at line 590 of file winsock2.h.

◆ WSA_IO_PENDING

#define WSA_IO_PENDING   (ERROR_IO_PENDING)

Definition at line 589 of file winsock2.h.

◆ WSA_MAXIMUM_WAIT_EVENTS

#define WSA_MAXIMUM_WAIT_EVENTS   (MAXIMUM_WAIT_OBJECTS)

Definition at line 596 of file winsock2.h.

◆ WSA_NOT_ENOUGH_MEMORY

#define WSA_NOT_ENOUGH_MEMORY   (ERROR_NOT_ENOUGH_MEMORY)

Definition at line 593 of file winsock2.h.

◆ WSA_OPERATION_ABORTED

#define WSA_OPERATION_ABORTED   (ERROR_OPERATION_ABORTED)

Definition at line 594 of file winsock2.h.

◆ WSA_WAIT_EVENT_0

#define WSA_WAIT_EVENT_0   (WAIT_OBJECT_0)

Definition at line 598 of file winsock2.h.

◆ WSA_WAIT_FAILED

#define WSA_WAIT_FAILED   ((DWORD)-1L)

Definition at line 597 of file winsock2.h.

◆ WSA_WAIT_IO_COMPLETION

#define WSA_WAIT_IO_COMPLETION   (WAIT_IO_COMPLETION)

Definition at line 599 of file winsock2.h.

◆ WSA_WAIT_TIMEOUT

#define WSA_WAIT_TIMEOUT   (WAIT_TIMEOUT)

Definition at line 600 of file winsock2.h.

◆ WSAAddressToString

#define WSAAddressToString   WSAAddressToStringA

Definition at line 2443 of file winsock2.h.

◆ WSAAPI

#define WSAAPI   FAR PASCAL

Definition at line 584 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.

◆ WSAEnumNameSpaceProviders

#define WSAEnumNameSpaceProviders   WSAEnumNameSpaceProvidersA

Definition at line 2589 of file winsock2.h.

◆ WSAEnumProtocols

#define WSAEnumProtocols   WSAEnumProtocolsA

Definition at line 2214 of file winsock2.h.

◆ WSAEVENT

#define WSAEVENT   HANDLE

Definition at line 585 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.

◆ 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.

◆ WSAOVERLAPPED

#define WSAOVERLAPPED   OVERLAPPED

Definition at line 587 of file winsock2.h.

◆ WSAPROTOCOL_LEN

#define WSAPROTOCOL_LEN   255

Definition at line 428 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.

◆ 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.

◆ 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 711 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

◆ 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

Definition at line 588 of file winsock2.h.

◆ LPWSAOVERLAPPED_COMPLETION_ROUTINE

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

Definition at line 722 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.

◆ 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.

◆ WSADATA

◆ WSAECOMPARATOR

◆ WSAESETSERVICEOP

◆ 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

◆ 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 * LPWSAECOMPARATOR
enum _WSAEcomparator * PWSAECOMPARATOR

◆ _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

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;
Definition: nspapi.h:57
* LPWSAQUERYSETW
Definition: winsock2.h:836
#define _Field_size_(size)
Definition: no_sal2.h:189
#define _Field_range_(min, max)
Definition: no_sal2.h:188
unsigned long DWORD
Definition: ntddk_ex.h:95
WSAQUERYSETW
Definition: winsock2.h:836
* PWSAQUERYSETW
Definition: winsock2.h:836
WCHAR * LPWSTR
Definition: xmlstorage.h:184
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54

◆ _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()

WINSOCK_API_LINKAGE unsigned long WSAAPI inet_addr ( _In_z_ const char FAR cp)

◆ 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 {
27  INT ErrorCode;
28  DPRINT("WSACancelBlockingCall\n");
29 
30  /* Call the prolog */
32  if (ErrorCode != ERROR_SUCCESS)
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 */
49  if (ErrorCode != ERROR_SUCCESS)
50  {
51  /* Fail */
53  return SOCKET_ERROR;
54  }
55 
56  /* Return success */
57  return ERROR_SUCCESS;
58 }
#define SOCKET_ERROR
Definition: winsock.h:333
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define ERROR_SUCCESS
Definition: deptool.c:10
#define LOBYTE(W)
Definition: jmemdos.c:487
int32_t INT
Definition: typedefs.h:56
#define WSAEOPNOTSUPP
Definition: winerror.h:1958
void DPRINT(...)
Definition: polytest.cpp:61
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
#define SetLastError(x)
Definition: compat.h:409
INT WSAAPI WsApiProlog(OUT PWSPROCESS *Process, OUT PWSTHREAD *Thread)
Definition: wsautil.c:91
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
DWORD WSAAPI WsThreadCancelBlockingCall(IN PWSTHREAD Thread)
Definition: dthread.c:96

Referenced by AreLegacyFunctionsSupported(), and WsAsyncThreadBlockingHook().

◆ WSACleanup()

WINSOCK_API_LINKAGE int WSAAPI WSACleanup ( void  )

Definition at line 60 of file startup.c.

61 {
64  INT ErrorCode;
65  LONG RefCount;
66  DPRINT("WSACleanup\n");
67 
68  /* Enter startup lock */
69  WsStartupLock();
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 */
102  WsStartupUnlock();
103 
104  /* Done */
105  return ErrorCode;
106 }
#define SOCKET_ERROR
Definition: winsock.h:333
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define ERROR_SUCCESS
Definition: deptool.c:10
int32_t INT
Definition: typedefs.h:56
long LONG
Definition: pedump.c:60
void DPRINT(...)
Definition: polytest.cpp:61
BOOLEAN WsAsyncThreadInitialized
Definition: async.c:15
VOID WSAAPI WsAsyncTerminateThread(VOID)
Definition: async.c:899
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
VOID WSAAPI WsProcDelete(IN PWSPROCESS Process)
Definition: dprocess.c:247
#define SetLastError(x)
Definition: compat.h:409
INT WSAAPI WsApiProlog(OUT PWSPROCESS *Process, OUT PWSTHREAD *Thread)
Definition: wsautil.c:91
#define InterlockedDecrement
Definition: armddk.h:52
#define WsStartupLock()
Definition: startup.c:21
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
#define WsStartupUnlock()
Definition: startup.c:22

Referenced by AdapterStop(), adns_finish(), cleanup(), Cleanup(), close_http(), closelog(), CreateServers(), CreateSocket(), DeinitWinsock(), DestroyConnection(), ErrorExit(), Exit(), Icmp6CreateFile(), IcmpCloseHandle(), IcmpCreateFile(), inet_ntoa(), init_abort(), init_begin(), init_finish(), InitWinsock(), InternetTransport_UnregisterClass(), kickoff_telnetd(), main(), NETCON_unload(), netconn_unload(), open_http(), openlog(), read_line(), runProg(), service_main(), ServiceMain(), SocketTest(), START_TEST(), test_extendedSocketOptions(), test_getsockname(), Test_ioctlsocket(), Test_recv(), test_WithWSAStartup(), Test_WSAIoctl_GetInterfaceList(), Test_WSARecv(), tirpc_exit(), userlist(), winsock_fini(), winsock_init(), wmain(), WsAsyncCheckAndInitThread(), WsAsyncThread(), wWinMain(), and Telnet::~Telnet().

◆ 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 TRUE
Definition: types.h:120
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
Definition: synch.c:597
smooth NULL
Definition: ftsmooth.c:416

Referenced by detectChange(), dispatch(), event_client(), recv_thread(), CSocket::SetEvents(), START_TEST(), test_DisconnectEx(), test_events(), test_GetAddrInfoExW(), test_sioAddressListChange(), test_WSAEnumNetworkEvents(), 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:1059

Referenced by __rpc_fd2sockinfo(), __rpc_get_time_offset(), AcceptConnections(), AdapterDiscoveryThread(), AreLegacyFunctionsSupported(), bindresvport_sa(), clnt_vc_create(), create_netconn_socket(), CreateSocket(), dataconn(), detectChange(), do_bind(), do_getservbyname(), drain_socket_thread(), EchoIncomingPackets(), ErrorExit(), event_client(), Exit(), fputcSocket(), fputSocket(), FTP_Connect(), FTPFILE_WriteFile(), getdomainname(), GetIpHostName(), got_one(), IcmpSendEcho(), InternetTransport_ReadLine(), InternetTransport_WndProc(), InternetTransport_Write(), IsWinsockInitialized(), main(), make_listening_socket(), mwsNSPLookupServiceBegin(), mwsNSPLookupServiceNext(), NetBTRecv(), NETCON_is_alive(), NETCON_recv(), NETCON_send(), NETCON_set_timeout(), netconn_is_alive(), netfinger(), open_http(), POP3Transport_ParseResponse(), print_getaddrinfo(), processRequest(), read_ssl_chunk(), read_vc(), ReceiveIncomingPackets(), recvrequest(), ResolveTarget(), rpcrt4_conn_tcp_read(), rpcrt4_conn_tcp_write(), rpcrt4_ip_tcp_parse_top_of_tower(), rpcrt4_ncacn_ip_tcp_open(), rpcrt4_protseq_ncacn_ip_tcp_open_endpoint(), rpcrt4_protseq_sock_get_wait_array(), rpcrt4_sock_wait_for_recv(), rpcrt4_sock_wait_for_send(), rtime(), SConnect(), select_server(), send_file(), SendLine(), SendRequest(), sendrequest(), SendTime(), SError(), setup_connector_socket(), setup_iocp_src(), setup_server_socket(), SetUpListener(), ShutdownConnection(), sock_recv(), sock_send(), START_TEST(), svc_run(), test_accept(), test_AcceptEx(), test_addr_to_print(), test_address_list_query(), Test_CloseDuplicatedSocket(), Test_CloseWhileSelectDuplicatedSocket(), Test_CloseWhileSelectSameSocket(), test_completion_port(), test_ConnectEx(), test_DisconnectEx(), test_errors(), test_events(), test_extendedSocketOptions(), test_getaddrinfo(), test_GetAddrInfoExW(), test_GetAddrInfoW(), test_gethostbyname(), test_gethostbyname_hack(), test_gethostname(), test_getpeername(), test_getsockname(), test_inet_pton(), test_ioctlsocket(), test_ip_pktinfo(), test_ipv6only(), test_listen(), test_select(), test_send(), test_sendto(), test_set_getsockopt(), test_sioAddressListChange(), test_sioRoutingInterfaceQuery(), test_so_reuseaddr(), test_synchronous_WSAIoctl(), test_TransmitFile(), test_WithoutWSAStartup(), test_WithWSAStartup(), test_WSAAddressToStringA(), test_WSAAddressToStringW(), test_WSADuplicateSocket(), test_WSAEnumNameSpaceProvidersA(), test_WSAEnumNameSpaceProvidersW(), test_WSAEnumProtocolsA(), test_WSAEnumProtocolsW(), Test_WSAIoctl_GetInterfaceList(), test_WSALookupService(), test_WSAPoll(), Test_WSARecv(), test_WSARecv(), test_WSASendMsg(), test_WSASendTo(), test_WSASocket(), test_WSAStringToAddressA(), test_WSAStringToAddressW(), TestBind(), TestNodeName(), TestServiceName(), verify_ipv6_addrinfo(), wmain(), write_vc(), WspiapiLegacyGetNameInfo(), and WspiapiQueryDNS().

◆ 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 {
69  INT ErrorCode;
70  DPRINT("WSAIsBlocking\n");
71 
72  /* Call the prolog */
74  if (ErrorCode != ERROR_SUCCESS)
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 }
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define ERROR_SUCCESS
Definition: deptool.c:10
#define WSAEINPROGRESS
Definition: winerror.h:1949
int32_t INT
Definition: typedefs.h:56
void DPRINT(...)
Definition: polytest.cpp:61
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
INT WSAAPI WsApiProlog(OUT PWSPROCESS *Process, OUT PWSTHREAD *Thread)
Definition: wsautil.c:91
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219

◆ 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 {
134  INT ErrorCode;
135  DPRINT("WSAUnhookBlockingHook\n");
136 
137  /* Call the prolog */
139  if (ErrorCode != ERROR_SUCCESS)
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 }
#define SOCKET_ERROR
Definition: winsock.h:333
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define ERROR_SUCCESS
Definition: deptool.c:10
#define LOBYTE(W)
Definition: jmemdos.c:487
int32_t INT
Definition: typedefs.h:56
#define WSAEOPNOTSUPP
Definition: winerror.h:1958
DWORD WSAAPI WsThreadUnhookBlockingHook(IN PWSTHREAD Thread)
Definition: dthread.c:84
void DPRINT(...)
Definition: polytest.cpp:61
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
#define SetLastError(x)
Definition: compat.h:409
INT WSAAPI WsApiProlog(OUT PWSPROCESS *Process, OUT PWSTHREAD *Thread)
Definition: wsautil.c:91
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219

◆ 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 2598 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(), test_WSALookupService(), and WSALookupServiceNextA().