winsock2.h (5.2.3790.3959-Windows 5.0) | | winsock2.h (6.0.6002.18005-Windows 6.0) |
|
| | //$TAG BIZDEV |
| | // $IPCategory: |
| | // $DealPointID: 118736 |
| | // $AgreementName: berkeley software distribution license |
| | // $AgreementType: oss license |
| | // $ExternalOrigin: regents of the university of california |
| | //$ENDTAG |
| | |
| | //$TAG ENGR |
| | // $Owner: vadime |
| | // $Module: published_inc |
| | // |
| | //$ENDTAG |
| | |
/* Winsock2.h -- definitions to be used with the WinSock 2 DLL and | | /* Winsock2.h -- definitions to be used with the WinSock 2 DLL and |
* WinSock 2 applications. | | * WinSock 2 applications. |
* | | * |
* This header file corresponds to version 2.2.x of the WinSock API | | * This header file corresponds to version 2.2.x of the WinSock API |
* specification. | | * specification. |
* | | * |
* This file includes parts which are Copyright (c) 1982-1986 Regents | | * This file includes parts which are Copyright (c) 1982-1986 Regents |
* of the University of California. All rights reserved. The | | * of the University of California. All rights reserved. The |
* Berkeley Software License Agreement specifies the terms and | | * Berkeley Software License Agreement specifies the terms and |
* conditions for redistribution. | | * conditions for redistribution. |
*/ | | */ |
| | |
#ifndef _WINSOCK2API_ | | #ifndef _WINSOCK2API_ |
#define _WINSOCK2API_ | | #define _WINSOCK2API_ |
#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */ | | #define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */ |
| | |
|
| | #pragma once |
| | |
/* | | /* |
* Ensure structures are packed consistently. | | * Ensure structures are packed consistently. |
* Not necessary for WIN32, it is already packed >=4 and there are | | * Not necessary for WIN32, it is already packed >=4 and there are |
* no structures in this header that have alignment requirement | | * no structures in this header that have alignment requirement |
* higher than 4. | | * higher than 4. |
* For WIN64 we do not have compatibility requirement because it is | | * For WIN64 we do not have compatibility requirement because it is |
* not possible to mix 32/16 bit code with 64 bit code in the same | | * not possible to mix 32/16 bit code with 64 bit code in the same |
* process. | | * process. |
*/ | | */ |
| | |
|
#if !defined(WIN32) && !defined(_WIN64) | | #if (!defined(_WIN64) && !defined(WIN32)) |
#include <pshpack4.h> | | #include <pshpack4.h> |
/* WIN32 can be defined between here and the required poppack | | /* WIN32 can be defined between here and the required poppack |
so define this special macro to ensure poppack */ | | so define this special macro to ensure poppack */ |
#define _NEED_POPPACK | | #define _NEED_POPPACK |
#endif | | #endif |
| | |
/* | | /* |
* Default: include function prototypes, don't include function typedefs. | | * Default: include function prototypes, don't include function typedefs. |
*/ | | */ |
| | |
| | |
skipping to change at line 91 | | skipping to change at line 107 |
extern "C" { | | extern "C" { |
#endif | | #endif |
| | |
/* | | /* |
* Basic system type definitions, taken from the BSD file sys/types.h. | | * Basic system type definitions, taken from the BSD file sys/types.h. |
*/ | | */ |
typedef unsigned char u_char; | | typedef unsigned char u_char; |
typedef unsigned short u_short; | | typedef unsigned short u_short; |
typedef unsigned int u_int; | | typedef unsigned int u_int; |
typedef unsigned long u_long; | | typedef unsigned long u_long; |
|
| | |
| | #if(_WIN32_WINNT >= 0x0501) |
typedef unsigned __int64 u_int64; | | typedef unsigned __int64 u_int64; |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
| | #include <ws2def.h> |
| | |
/* | | /* |
* The new type to be used in all | | * The new type to be used in all |
* instances which refer to sockets. | | * instances which refer to sockets. |
*/ | | */ |
typedef UINT_PTR SOCKET; | | typedef UINT_PTR SOCKET; |
| | |
/* | | /* |
* Select uses arrays of SOCKETs. These macros manipulate such | | * Select uses arrays of SOCKETs. These macros manipulate such |
* arrays. FD_SETSIZE may be defined by the user before including | | * arrays. FD_SETSIZE may be defined by the user before including |
| | |
skipping to change at line 116 | | skipping to change at line 137 |
*/ | | */ |
#ifndef FD_SETSIZE | | #ifndef FD_SETSIZE |
#define FD_SETSIZE 64 | | #define FD_SETSIZE 64 |
#endif /* FD_SETSIZE */ | | #endif /* FD_SETSIZE */ |
| | |
typedef struct fd_set { | | typedef struct fd_set { |
u_int fd_count; /* how many are SET? */ | | u_int fd_count; /* how many are SET? */ |
SOCKET fd_array[FD_SETSIZE]; /* an array of SOCKETs */ | | SOCKET fd_array[FD_SETSIZE]; /* an array of SOCKETs */ |
} fd_set; | | } fd_set; |
| | |
|
extern int PASCAL FAR __WSAFDIsSet(SOCKET, fd_set FAR *); | | __control_entrypoint(DllExport) extern int PASCAL FAR __WSAFDIsSet(SOCKET fd, fd
_set FAR *); |
| | |
#define FD_CLR(fd, set) do { \ | | #define FD_CLR(fd, set) do { \ |
u_int __i; \ | | u_int __i; \ |
for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count ; __i++) { \ | | for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count ; __i++) { \ |
if (((fd_set FAR *)(set))->fd_array[__i] == fd) { \ | | if (((fd_set FAR *)(set))->fd_array[__i] == fd) { \ |
while (__i < ((fd_set FAR *)(set))->fd_count-1) { \ | | while (__i < ((fd_set FAR *)(set))->fd_count-1) { \ |
((fd_set FAR *)(set))->fd_array[__i] = \ | | ((fd_set FAR *)(set))->fd_array[__i] = \ |
((fd_set FAR *)(set))->fd_array[__i+1]; \ | | ((fd_set FAR *)(set))->fd_array[__i+1]; \ |
__i++; \ | | __i++; \ |
} \ | | } \ |
| | |
skipping to change at line 256 | | skipping to change at line 277 |
short p_proto; /* protocol # */ | | short p_proto; /* protocol # */ |
}; | | }; |
| | |
/* | | /* |
* Constants and structures defined by the internet system, | | * Constants and structures defined by the internet system, |
* Per RFC 790, September 1981, taken from the BSD file netinet/in.h. | | * Per RFC 790, September 1981, taken from the BSD file netinet/in.h. |
* IPv6 additions per RFC 2292. | | * IPv6 additions per RFC 2292. |
*/ | | */ |
| | |
/* | | /* |
|
* Protocols | | |
*/ | | |
#define IPPROTO_IP 0 /* dummy for IP */ | | |
#define IPPROTO_HOPOPTS 0 /* IPv6 hop-by-hop options */ | | |
#define IPPROTO_ICMP 1 /* control message protocol */ | | |
#define IPPROTO_IGMP 2 /* internet group management pro | | |
tocol */ | | |
#define IPPROTO_GGP 3 /* gateway^2 (deprecated) */ | | |
#define IPPROTO_IPV4 4 /* IPv4 */ | | |
#define IPPROTO_TCP 6 /* tcp */ | | |
#define IPPROTO_PUP 12 /* pup */ | | |
#define IPPROTO_UDP 17 /* user datagram protocol */ | | |
#define IPPROTO_IDP 22 /* xns idp */ | | |
#define IPPROTO_IPV6 41 /* IPv6 */ | | |
#define IPPROTO_ROUTING 43 /* IPv6 routing header */ | | |
#define IPPROTO_FRAGMENT 44 /* IPv6 fragmentation header */ | | |
#define IPPROTO_ESP 50 /* IPsec ESP header */ | | |
#define IPPROTO_AH 51 /* IPsec AH */ | | |
#define IPPROTO_ICMPV6 58 /* ICMPv6 */ | | |
#define IPPROTO_NONE 59 /* IPv6 no next header */ | | |
#define IPPROTO_DSTOPTS 60 /* IPv6 destination options */ | | |
#define IPPROTO_ND 77 /* UNOFFICIAL net disk proto */ | | |
#define IPPROTO_ICLFXBM 78 | | |
| | |
#define IPPROTO_RAW 255 /* raw IP packet */ | | |
#define IPPROTO_MAX 256 | | |
| | |
/* | | |
* Port/socket numbers: network standard functions | | * Port/socket numbers: network standard functions |
*/ | | */ |
#define IPPORT_ECHO 7 | | #define IPPORT_ECHO 7 |
#define IPPORT_DISCARD 9 | | #define IPPORT_DISCARD 9 |
#define IPPORT_SYSTAT 11 | | #define IPPORT_SYSTAT 11 |
#define IPPORT_DAYTIME 13 | | #define IPPORT_DAYTIME 13 |
#define IPPORT_NETSTAT 15 | | #define IPPORT_NETSTAT 15 |
#define IPPORT_FTP 21 | | #define IPPORT_FTP 21 |
#define IPPORT_TELNET 23 | | #define IPPORT_TELNET 23 |
#define IPPORT_SMTP 25 | | #define IPPORT_SMTP 25 |
| | |
skipping to change at line 361 | | skipping to change at line 355 |
/* network */ | | /* network */ |
#define s_imp S_un.S_un_w.s_w2 | | #define s_imp S_un.S_un_w.s_w2 |
/* imp */ | | /* imp */ |
#define s_impno S_un.S_un_b.s_b4 | | #define s_impno S_un.S_un_b.s_b4 |
/* imp # */ | | /* imp # */ |
#define s_lh S_un.S_un_b.s_b3 | | #define s_lh S_un.S_un_b.s_b3 |
/* logical host */ | | /* logical host */ |
}; | | }; |
#endif | | #endif |
| | |
|
/* | | |
* Definitions of bits in internet address integers. | | |
* On subnets, the decomposition of addresses to host and net parts | | |
* is done according to subnet mask, not the masks here. | | |
*/ | | |
#define IN_CLASSA(i) (((long)(i) & 0x80000000) == 0) | | |
#define IN_CLASSA_NET 0xff000000 | | |
#define IN_CLASSA_NSHIFT 24 | | |
#define IN_CLASSA_HOST 0x00ffffff | | |
#define IN_CLASSA_MAX 128 | | |
| | |
#define IN_CLASSB(i) (((long)(i) & 0xc0000000) == 0x80000000) | | |
#define IN_CLASSB_NET 0xffff0000 | | |
#define IN_CLASSB_NSHIFT 16 | | |
#define IN_CLASSB_HOST 0x0000ffff | | |
#define IN_CLASSB_MAX 65536 | | |
| | |
#define IN_CLASSC(i) (((long)(i) & 0xe0000000) == 0xc0000000) | | |
#define IN_CLASSC_NET 0xffffff00 | | |
#define IN_CLASSC_NSHIFT 8 | | |
#define IN_CLASSC_HOST 0x000000ff | | |
| | |
#define IN_CLASSD(i) (((long)(i) & 0xf0000000) == 0xe0000000) | | |
#define IN_CLASSD_NET 0xf0000000 /* These ones aren't really */ | | |
#define IN_CLASSD_NSHIFT 28 /* net and host fields, but */ | | |
#define IN_CLASSD_HOST 0x0fffffff /* routing needn't know. */ | | |
#define IN_MULTICAST(i) IN_CLASSD(i) | | |
| | |
#define INADDR_ANY (u_long)0x00000000 | | |
#define INADDR_LOOPBACK 0x7f000001 | | |
#define INADDR_BROADCAST (u_long)0xffffffff | | |
#define INADDR_NONE 0xffffffff | | |
| | |
#define ADDR_ANY INADDR_ANY | | #define ADDR_ANY INADDR_ANY |
| | |
|
/* | | |
* Socket address, internet style. | | |
*/ | | |
struct sockaddr_in { | | |
short sin_family; | | |
u_short sin_port; | | |
struct in_addr sin_addr; | | |
char sin_zero[8]; | | |
}; | | |
| | |
#define WSADESCRIPTION_LEN 256 | | #define WSADESCRIPTION_LEN 256 |
#define WSASYS_STATUS_LEN 128 | | #define WSASYS_STATUS_LEN 128 |
| | |
typedef struct WSAData { | | typedef struct WSAData { |
WORD wVersion; | | WORD wVersion; |
WORD wHighVersion; | | WORD wHighVersion; |
#ifdef _WIN64 | | #ifdef _WIN64 |
unsigned short iMaxSockets; | | unsigned short iMaxSockets; |
unsigned short iMaxUdpDg; | | unsigned short iMaxUdpDg; |
char FAR * lpVendorInfo; | | char FAR * lpVendorInfo; |
| | |
skipping to change at line 502 | | skipping to change at line 453 |
#ifdef UNICODE | | #ifdef UNICODE |
#define SO_PROTOCOL_INFO SO_PROTOCOL_INFOW | | #define SO_PROTOCOL_INFO SO_PROTOCOL_INFOW |
#else | | #else |
#define SO_PROTOCOL_INFO SO_PROTOCOL_INFOA | | #define SO_PROTOCOL_INFO SO_PROTOCOL_INFOA |
#endif /* UNICODE */ | | #endif /* UNICODE */ |
#define PVD_CONFIG 0x3001 /* configuration info for service provide
r */ | | #define PVD_CONFIG 0x3001 /* configuration info for service provide
r */ |
#define SO_CONDITIONAL_ACCEPT 0x3002 /* enable true conditional accept: */ | | #define SO_CONDITIONAL_ACCEPT 0x3002 /* enable true conditional accept: */ |
/* connection is not ack-ed to the */ | | /* connection is not ack-ed to the */ |
/* other side until conditional */ | | /* other side until conditional */ |
/* function returns CF_ACCEPT */ | | /* function returns CF_ACCEPT */ |
|
/* | | |
* TCP options. | | |
*/ | | |
#define TCP_NODELAY 0x0001 | | |
| | |
/* | | |
* Address families. | | |
*/ | | |
#define AF_UNSPEC 0 /* unspecified */ | | |
/* | | |
* Although AF_UNSPEC is defined for backwards compatibility, using | | |
* AF_UNSPEC for the "af" parameter when creating a socket is STRONGLY | | |
* DISCOURAGED. The interpretation of the "protocol" parameter | | |
* depends on the actual address family chosen. As environments grow | | |
* to include more and more address families that use overlapping | | |
* protocol values there is more and more chance of choosing an | | |
* undesired address family when AF_UNSPEC is used. | | |
*/ | | |
#define AF_UNIX 1 /* local to host (pipes, portals) */ | | |
#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ | | |
#define AF_IMPLINK 3 /* arpanet imp addresses */ | | |
#define AF_PUP 4 /* pup protocols: e.g. BSP */ | | |
#define AF_CHAOS 5 /* mit CHAOS protocols */ | | |
#define AF_NS 6 /* XEROX NS protocols */ | | |
#define AF_IPX AF_NS /* IPX protocols: IPX, SPX, etc. */ | | |
#define AF_ISO 7 /* ISO protocols */ | | |
#define AF_OSI AF_ISO /* OSI is ISO */ | | |
#define AF_ECMA 8 /* european computer manufacturers */ | | |
#define AF_DATAKIT 9 /* datakit protocols */ | | |
#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ | | |
#define AF_SNA 11 /* IBM SNA */ | | |
#define AF_DECnet 12 /* DECnet */ | | |
#define AF_DLI 13 /* Direct data link interface */ | | |
#define AF_LAT 14 /* LAT */ | | |
#define AF_HYLINK 15 /* NSC Hyperchannel */ | | |
#define AF_APPLETALK 16 /* AppleTalk */ | | |
#define AF_NETBIOS 17 /* NetBios-style addresses */ | | |
#define AF_VOICEVIEW 18 /* VoiceView */ | | |
#define AF_FIREFOX 19 /* Protocols from Firefox */ | | |
#define AF_UNKNOWN1 20 /* Somebody is using this! */ | | |
#define AF_BAN 21 /* Banyan */ | | |
#define AF_ATM 22 /* Native ATM Services */ | | |
#define AF_INET6 23 /* Internetwork Version 6 */ | | |
#define AF_CLUSTER 24 /* Microsoft Wolfpack */ | | |
#define AF_12844 25 /* IEEE 1284.4 WG AF */ | | |
#define AF_IRDA 26 /* IrDA */ | | |
#define AF_NETDES 28 /* Network Designers OSI & gateway | | |
enabled protocols */ | | |
#define AF_TCNPROCESS 29 | | |
#define AF_TCNMESSAGE 30 | | |
#define AF_ICLFXBM 31 | | |
| | |
#define AF_MAX 32 | | |
| | |
/* | | |
* Structure used by kernel to store most | | |
* addresses. | | |
*/ | | |
struct sockaddr { | | |
u_short sa_family; /* address family */ | | |
char sa_data[14]; /* up to 14 bytes of direct address */ | | |
}; | | |
| | |
/* | | |
* Portable socket structure (RFC 2553). | | |
*/ | | |
| | |
/* | | |
* Desired design of maximum size and alignment. | | |
* These are implementation specific. | | |
*/ | | |
#define _SS_MAXSIZE 128 // Maximum size. | | |
#define _SS_ALIGNSIZE (sizeof(__int64)) // Desired alignment. | | |
| | |
/* | | |
* Definitions used for sockaddr_storage structure paddings design. | | |
*/ | | |
#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof (short)) | | |
#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof (short) + _SS_PAD1SIZE \ | | |
+ _SS_ALIGNSIZE)) | | |
| | |
struct sockaddr_storage { | | |
short ss_family; // Address family. | | |
char __ss_pad1[_SS_PAD1SIZE]; // 6 byte pad, this is to make | | |
// implementation specific pad up to | | |
// alignment field that follows explicit | | |
// in the data structure. | | |
__int64 __ss_align; // Field to force desired structure. | | |
char __ss_pad2[_SS_PAD2SIZE]; // 112 byte pad to achieve desired size; | | |
// _SS_MAXSIZE value minus size of | | |
// ss_family, __ss_pad1, and | | |
// __ss_align fields is 112. | | |
}; | | |
| | |
/* | | /* |
* Structure used by kernel to pass protocol | | * Structure used by kernel to pass protocol |
* information in raw sockets. | | * information in raw sockets. |
*/ | | */ |
struct sockproto { | | struct sockproto { |
u_short sp_family; /* address family */ | | u_short sp_family; /* address family */ |
u_short sp_protocol; /* protocol */ | | u_short sp_protocol; /* protocol */ |
}; | | }; |
| | |
| | |
skipping to change at line 633 | | skipping to change at line 491 |
#define PF_DLI AF_DLI | | #define PF_DLI AF_DLI |
#define PF_LAT AF_LAT | | #define PF_LAT AF_LAT |
#define PF_HYLINK AF_HYLINK | | #define PF_HYLINK AF_HYLINK |
#define PF_APPLETALK AF_APPLETALK | | #define PF_APPLETALK AF_APPLETALK |
#define PF_VOICEVIEW AF_VOICEVIEW | | #define PF_VOICEVIEW AF_VOICEVIEW |
#define PF_FIREFOX AF_FIREFOX | | #define PF_FIREFOX AF_FIREFOX |
#define PF_UNKNOWN1 AF_UNKNOWN1 | | #define PF_UNKNOWN1 AF_UNKNOWN1 |
#define PF_BAN AF_BAN | | #define PF_BAN AF_BAN |
#define PF_ATM AF_ATM | | #define PF_ATM AF_ATM |
#define PF_INET6 AF_INET6 | | #define PF_INET6 AF_INET6 |
|
| | #if(_WIN32_WINNT >= 0x0600) |
| | #define PF_BTH AF_BTH |
| | #endif //(_WIN32_WINNT >= 0x0600) |
| | |
#define PF_MAX AF_MAX | | #define PF_MAX AF_MAX |
| | |
/* | | /* |
* Structure used for manipulating linger option. | | * Structure used for manipulating linger option. |
*/ | | */ |
struct linger { | | struct linger { |
u_short l_onoff; /* option on/off */ | | u_short l_onoff; /* option on/off */ |
u_short l_linger; /* linger time */ | | u_short l_linger; /* linger time */ |
}; | | }; |
| | |
skipping to change at line 657 | | skipping to change at line 518 |
#define SOL_SOCKET 0xffff /* options for socket level */ | | #define SOL_SOCKET 0xffff /* options for socket level */ |
| | |
/* | | /* |
* Maximum queue length specifiable by listen. | | * Maximum queue length specifiable by listen. |
*/ | | */ |
#define SOMAXCONN 0x7fffffff | | #define SOMAXCONN 0x7fffffff |
| | |
#define MSG_OOB 0x1 /* process out-of-band data */ | | #define MSG_OOB 0x1 /* process out-of-band data */ |
#define MSG_PEEK 0x2 /* peek at incoming message */ | | #define MSG_PEEK 0x2 /* peek at incoming message */ |
#define MSG_DONTROUTE 0x4 /* send without using routing tables */ | | #define MSG_DONTROUTE 0x4 /* send without using routing tables */ |
|
| | |
| | #if(_WIN32_WINNT >= 0x0502) |
#define MSG_WAITALL 0x8 /* do not complete until packet is compl
etely filled */ | | #define MSG_WAITALL 0x8 /* do not complete until packet is compl
etely filled */ |
|
| | #endif //(_WIN32_WINNT >= 0x0502) |
| | |
#define MSG_PARTIAL 0x8000 /* partial send or recv for message xpor
t */ | | #define MSG_PARTIAL 0x8000 /* partial send or recv for message xpor
t */ |
| | |
/* | | /* |
* WinSock 2 extension -- new flags for WSASend(), WSASendTo(), WSARecv() and | | * WinSock 2 extension -- new flags for WSASend(), WSASendTo(), WSARecv() and |
* WSARecvFrom() | | * WSARecvFrom() |
*/ | | */ |
#define MSG_INTERRUPT 0x10 /* send/recv in the interrupt context */ | | #define MSG_INTERRUPT 0x10 /* send/recv in the interrupt context */ |
| | |
#define MSG_MAXIOVLEN 16 | | #define MSG_MAXIOVLEN 16 |
| | |
skipping to change at line 996 | | skipping to change at line 860 |
#define WSA_INVALID_EVENT ((WSAEVENT)NULL) | | #define WSA_INVALID_EVENT ((WSAEVENT)NULL) |
#define WSA_MAXIMUM_WAIT_EVENTS (MAXIMUM_WAIT_OBJECTS) | | #define WSA_MAXIMUM_WAIT_EVENTS (MAXIMUM_WAIT_OBJECTS) |
#define WSA_WAIT_FAILED ((DWORD)-1L) | | #define WSA_WAIT_FAILED ((DWORD)-1L) |
#define WSA_WAIT_EVENT_0 ((DWORD)0) | | #define WSA_WAIT_EVENT_0 ((DWORD)0) |
#define WSA_WAIT_TIMEOUT ((DWORD)0x102L) | | #define WSA_WAIT_TIMEOUT ((DWORD)0x102L) |
#define WSA_INFINITE ((DWORD)-1L) | | #define WSA_INFINITE ((DWORD)-1L) |
| | |
#endif /* WIN32 */ | | #endif /* WIN32 */ |
| | |
/* | | /* |
|
* WinSock 2 extension -- WSABUF and QOS struct, include qos.h | | * Include qos.h to pull in FLOWSPEC and related definitions |
* to pull in FLOWSPEC and related definitions | | |
*/ | | */ |
|
| | |
typedef struct _WSABUF { | | |
u_long len; /* the length of the buffer */ | | |
char FAR * buf; /* the pointer to the buffer */ | | |
} WSABUF, FAR * LPWSABUF; | | |
| | |
#include <qos.h> | | #include <qos.h> |
| | |
typedef struct _QualityOfService | | typedef struct _QualityOfService |
{ | | { |
FLOWSPEC SendingFlowspec; /* the flow spec for data sending */ | | FLOWSPEC SendingFlowspec; /* the flow spec for data sending */ |
FLOWSPEC ReceivingFlowspec; /* the flow spec for data receiving */ | | FLOWSPEC ReceivingFlowspec; /* the flow spec for data receiving */ |
WSABUF ProviderSpecific; /* additional provider specific stuff *
/ | | WSABUF ProviderSpecific; /* additional provider specific stuff *
/ |
} QOS, FAR * LPQOS; | | } QOS, FAR * LPQOS; |
| | |
/* | | /* |
| | |
skipping to change at line 1146 | | skipping to change at line 1003 |
#define XP1_SUPPORT_BROADCAST 0x00000200 | | #define XP1_SUPPORT_BROADCAST 0x00000200 |
#define XP1_SUPPORT_MULTIPOINT 0x00000400 | | #define XP1_SUPPORT_MULTIPOINT 0x00000400 |
#define XP1_MULTIPOINT_CONTROL_PLANE 0x00000800 | | #define XP1_MULTIPOINT_CONTROL_PLANE 0x00000800 |
#define XP1_MULTIPOINT_DATA_PLANE 0x00001000 | | #define XP1_MULTIPOINT_DATA_PLANE 0x00001000 |
#define XP1_QOS_SUPPORTED 0x00002000 | | #define XP1_QOS_SUPPORTED 0x00002000 |
#define XP1_INTERRUPT 0x00004000 | | #define XP1_INTERRUPT 0x00004000 |
#define XP1_UNI_SEND 0x00008000 | | #define XP1_UNI_SEND 0x00008000 |
#define XP1_UNI_RECV 0x00010000 | | #define XP1_UNI_RECV 0x00010000 |
#define XP1_IFS_HANDLES 0x00020000 | | #define XP1_IFS_HANDLES 0x00020000 |
#define XP1_PARTIAL_MESSAGE 0x00040000 | | #define XP1_PARTIAL_MESSAGE 0x00040000 |
|
| | #define XP1_SAN_SUPPORT_SDP 0x00080000 |
| | |
#define BIGENDIAN 0x0000 | | #define BIGENDIAN 0x0000 |
#define LITTLEENDIAN 0x0001 | | #define LITTLEENDIAN 0x0001 |
| | |
#define SECURITY_PROTOCOL_NONE 0x0000 | | #define SECURITY_PROTOCOL_NONE 0x0000 |
| | |
/* | | /* |
* WinSock 2 extension -- manifest constants for WSAJoinLeaf() | | * WinSock 2 extension -- manifest constants for WSAJoinLeaf() |
*/ | | */ |
#define JL_SENDER_ONLY 0x01 | | #define JL_SENDER_ONLY 0x01 |
| | |
skipping to change at line 1167 | | skipping to change at line 1025 |
#define JL_BOTH 0x04 | | #define JL_BOTH 0x04 |
| | |
/* | | /* |
* WinSock 2 extension -- manifest constants for WSASocket() | | * WinSock 2 extension -- manifest constants for WSASocket() |
*/ | | */ |
#define WSA_FLAG_OVERLAPPED 0x01 | | #define WSA_FLAG_OVERLAPPED 0x01 |
#define WSA_FLAG_MULTIPOINT_C_ROOT 0x02 | | #define WSA_FLAG_MULTIPOINT_C_ROOT 0x02 |
#define WSA_FLAG_MULTIPOINT_C_LEAF 0x04 | | #define WSA_FLAG_MULTIPOINT_C_LEAF 0x04 |
#define WSA_FLAG_MULTIPOINT_D_ROOT 0x08 | | #define WSA_FLAG_MULTIPOINT_D_ROOT 0x08 |
#define WSA_FLAG_MULTIPOINT_D_LEAF 0x10 | | #define WSA_FLAG_MULTIPOINT_D_LEAF 0x10 |
|
| | #define WSA_FLAG_ACCESS_SYSTEM_SECURITY 0x40 |
/* | | |
* WinSock 2 extension -- manifest constants for WSAIoctl() | | |
*/ | | |
#define IOC_UNIX 0x00000000 | | |
#define IOC_WS2 0x08000000 | | |
#define IOC_PROTOCOL 0x10000000 | | |
#define IOC_VENDOR 0x18000000 | | |
| | |
#define _WSAIO(x,y) (IOC_VOID|(x)|(y)) | | |
#define _WSAIOR(x,y) (IOC_OUT|(x)|(y)) | | |
#define _WSAIOW(x,y) (IOC_IN|(x)|(y)) | | |
#define _WSAIORW(x,y) (IOC_INOUT|(x)|(y)) | | |
| | |
#define SIO_ASSOCIATE_HANDLE _WSAIOW(IOC_WS2,1) | | |
#define SIO_ENABLE_CIRCULAR_QUEUEING _WSAIO(IOC_WS2,2) | | |
#define SIO_FIND_ROUTE _WSAIOR(IOC_WS2,3) | | |
#define SIO_FLUSH _WSAIO(IOC_WS2,4) | | |
#define SIO_GET_BROADCAST_ADDRESS _WSAIOR(IOC_WS2,5) | | |
#define SIO_GET_EXTENSION_FUNCTION_POINTER _WSAIORW(IOC_WS2,6) | | |
#define SIO_GET_QOS _WSAIORW(IOC_WS2,7) | | |
#define SIO_GET_GROUP_QOS _WSAIORW(IOC_WS2,8) | | |
#define SIO_MULTIPOINT_LOOPBACK _WSAIOW(IOC_WS2,9) | | |
#define SIO_MULTICAST_SCOPE _WSAIOW(IOC_WS2,10) | | |
#define SIO_SET_QOS _WSAIOW(IOC_WS2,11) | | |
#define SIO_SET_GROUP_QOS _WSAIOW(IOC_WS2,12) | | |
#define SIO_TRANSLATE_HANDLE _WSAIORW(IOC_WS2,13) | | |
#define SIO_ROUTING_INTERFACE_QUERY _WSAIORW(IOC_WS2,20) | | |
#define SIO_ROUTING_INTERFACE_CHANGE _WSAIOW(IOC_WS2,21) | | |
#define SIO_ADDRESS_LIST_QUERY _WSAIOR(IOC_WS2,22) | | |
#define SIO_ADDRESS_LIST_CHANGE _WSAIO(IOC_WS2,23) | | |
#define SIO_QUERY_TARGET_PNP_HANDLE _WSAIOR(IOC_WS2,24) | | |
#define SIO_ADDRESS_LIST_SORT _WSAIORW(IOC_WS2,25) | | |
| | |
/* | | /* |
* WinSock 2 extensions -- data types for the condition function in | | * WinSock 2 extensions -- data types for the condition function in |
* WSAAccept() and overlapped I/O completion routine. | | * WSAAccept() and overlapped I/O completion routine. |
*/ | | */ |
| | |
typedef | | typedef |
int | | int |
(CALLBACK * LPCONDITIONPROC)( | | (CALLBACK * LPCONDITIONPROC)( |
IN LPWSABUF lpCallerId, | | IN LPWSABUF lpCallerId, |
| | |
skipping to change at line 1228 | | skipping to change at line 1054 |
| | |
typedef | | typedef |
void | | void |
(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)( | | (CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)( |
IN DWORD dwError, | | IN DWORD dwError, |
IN DWORD cbTransferred, | | IN DWORD cbTransferred, |
IN LPWSAOVERLAPPED lpOverlapped, | | IN LPWSAOVERLAPPED lpOverlapped, |
IN DWORD dwFlags | | IN DWORD dwFlags |
); | | ); |
| | |
|
| | #if(_WIN32_WINNT >= 0x0501) |
| | |
/* | | /* |
* WinSock 2 extension -- manifest constants and associated structures | | * WinSock 2 extension -- manifest constants and associated structures |
* for WSANSPIoctl() | | * for WSANSPIoctl() |
*/ | | */ |
#define SIO_NSP_NOTIFY_CHANGE _WSAIOW(IOC_WS2,25) | | #define SIO_NSP_NOTIFY_CHANGE _WSAIOW(IOC_WS2,25) |
| | |
typedef enum _WSACOMPLETIONTYPE { | | typedef enum _WSACOMPLETIONTYPE { |
NSP_NOTIFY_IMMEDIATELY = 0, | | NSP_NOTIFY_IMMEDIATELY = 0, |
NSP_NOTIFY_HWND, | | NSP_NOTIFY_HWND, |
NSP_NOTIFY_EVENT, | | NSP_NOTIFY_EVENT, |
| | |
skipping to change at line 1264 | | skipping to change at line 1092 |
LPWSAOVERLAPPED lpOverlapped; | | LPWSAOVERLAPPED lpOverlapped; |
LPWSAOVERLAPPED_COMPLETION_ROUTINE lpfnCompletionProc; | | LPWSAOVERLAPPED_COMPLETION_ROUTINE lpfnCompletionProc; |
} Apc; | | } Apc; |
struct { | | struct { |
LPWSAOVERLAPPED lpOverlapped; | | LPWSAOVERLAPPED lpOverlapped; |
HANDLE hPort; | | HANDLE hPort; |
ULONG_PTR Key; | | ULONG_PTR Key; |
} Port; | | } Port; |
} Parameters; | | } Parameters; |
} WSACOMPLETION, *PWSACOMPLETION, FAR *LPWSACOMPLETION; | | } WSACOMPLETION, *PWSACOMPLETION, FAR *LPWSACOMPLETION; |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
/* | | /* |
* WinSock 2 extension -- manifest constants for SIO_TRANSLATE_HANDLE ioctl | | * WinSock 2 extension -- manifest constants for SIO_TRANSLATE_HANDLE ioctl |
*/ | | */ |
#define TH_NETDEV 0x00000001 | | #define TH_NETDEV 0x00000001 |
#define TH_TAPI 0x00000002 | | #define TH_TAPI 0x00000002 |
| | |
/* | | /* |
|
* Microsoft Windows Extended data types required for the functions to | | |
* convert back and forth between binary and string forms of | | |
* addresses. | | |
*/ | | |
typedef struct sockaddr SOCKADDR; | | |
typedef struct sockaddr *PSOCKADDR; | | |
typedef struct sockaddr FAR *LPSOCKADDR; | | |
| | |
typedef struct sockaddr_storage SOCKADDR_STORAGE; | | |
typedef struct sockaddr_storage *PSOCKADDR_STORAGE; | | |
typedef struct sockaddr_storage FAR *LPSOCKADDR_STORAGE; | | |
| | |
/* | | |
* Manifest constants and type definitions related to name resolution and | | * Manifest constants and type definitions related to name resolution and |
* registration (RNR) API | | * registration (RNR) API |
*/ | | */ |
| | |
#ifndef _tagBLOB_DEFINED | | #ifndef _tagBLOB_DEFINED |
#define _tagBLOB_DEFINED | | #define _tagBLOB_DEFINED |
#define _BLOB_DEFINED | | #define _BLOB_DEFINED |
#define _LPBLOB_DEFINED | | #define _LPBLOB_DEFINED |
typedef struct _BLOB { | | typedef struct _BLOB { |
ULONG cbSize ; | | ULONG cbSize ; |
#ifdef MIDL_PASS | | #ifdef MIDL_PASS |
[size_is(cbSize)] BYTE *pBlobData; | | [size_is(cbSize)] BYTE *pBlobData; |
#else /* MIDL_PASS */ | | #else /* MIDL_PASS */ |
|
BYTE *pBlobData ; | | __field_bcount(cbSize) BYTE *pBlobData ; |
#endif /* MIDL_PASS */ | | #endif /* MIDL_PASS */ |
} BLOB, *LPBLOB ; | | } BLOB, *LPBLOB ; |
#endif | | #endif |
| | |
/* | | /* |
* Service Install Flags | | * Service Install Flags |
*/ | | */ |
| | |
#define SERVICE_MULTIPLE (0x00000001) | | #define SERVICE_MULTIPLE (0x00000001) |
| | |
| | |
skipping to change at line 1326 | | skipping to change at line 1142 |
#define NS_NDS (2) | | #define NS_NDS (2) |
#define NS_PEER_BROWSE (3) | | #define NS_PEER_BROWSE (3) |
#define NS_SLP (5) | | #define NS_SLP (5) |
#define NS_DHCP (6) | | #define NS_DHCP (6) |
| | |
#define NS_TCPIP_LOCAL (10) | | #define NS_TCPIP_LOCAL (10) |
#define NS_TCPIP_HOSTS (11) | | #define NS_TCPIP_HOSTS (11) |
#define NS_DNS (12) | | #define NS_DNS (12) |
#define NS_NETBT (13) | | #define NS_NETBT (13) |
#define NS_WINS (14) | | #define NS_WINS (14) |
|
| | |
| | #if(_WIN32_WINNT >= 0x0501) |
#define NS_NLA (15) /* Network Location Awareness */ | | #define NS_NLA (15) /* Network Location Awareness */ |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
| | #if(_WIN32_WINNT >= 0x0600) |
| | #define NS_BTH (16) /* Bluetooth SDP Namespace */ |
| | #endif //(_WIN32_WINNT >= 0x0600) |
| | |
#define NS_NBP (20) | | #define NS_NBP (20) |
| | |
#define NS_MS (30) | | #define NS_MS (30) |
#define NS_STDA (31) | | #define NS_STDA (31) |
#define NS_NTDS (32) | | #define NS_NTDS (32) |
| | |
|
| | #if(_WIN32_WINNT >= 0x0600) |
| | #define NS_EMAIL (37) |
| | #define NS_PNRPNAME (38) |
| | #define NS_PNRPCLOUD (39) |
| | #endif //(_WIN32_WINNT >= 0x0600) |
| | |
#define NS_X500 (40) | | #define NS_X500 (40) |
#define NS_NIS (41) | | #define NS_NIS (41) |
#define NS_NISPLUS (42) | | #define NS_NISPLUS (42) |
| | |
#define NS_WRQ (50) | | #define NS_WRQ (50) |
| | |
#define NS_NETDES (60) /* Network Designers Limited */ | | #define NS_NETDES (60) /* Network Designers Limited */ |
| | |
/* | | /* |
* Resolution flags for WSAGetAddressByName(). | | * Resolution flags for WSAGetAddressByName(). |
| | |
skipping to change at line 1387 | | skipping to change at line 1216 |
| | |
#else /* not UNICODE */ | | #else /* not UNICODE */ |
| | |
#define SERVICE_TYPE_VALUE_SAPID SERVICE_TYPE_VALUE_SAPIDA | | #define SERVICE_TYPE_VALUE_SAPID SERVICE_TYPE_VALUE_SAPIDA |
#define SERVICE_TYPE_VALUE_TCPPORT SERVICE_TYPE_VALUE_TCPPORTA | | #define SERVICE_TYPE_VALUE_TCPPORT SERVICE_TYPE_VALUE_TCPPORTA |
#define SERVICE_TYPE_VALUE_UDPPORT SERVICE_TYPE_VALUE_UDPPORTA | | #define SERVICE_TYPE_VALUE_UDPPORT SERVICE_TYPE_VALUE_UDPPORTA |
#define SERVICE_TYPE_VALUE_OBJECTID SERVICE_TYPE_VALUE_OBJECTIDA | | #define SERVICE_TYPE_VALUE_OBJECTID SERVICE_TYPE_VALUE_OBJECTIDA |
| | |
#endif | | #endif |
| | |
|
#ifndef __CSADDR_DEFINED__ | | |
#define __CSADDR_DEFINED__ | | |
| | |
/* | | |
* SockAddr Information | | |
*/ | | |
typedef struct _SOCKET_ADDRESS { | | |
LPSOCKADDR lpSockaddr ; | | |
INT iSockaddrLength ; | | |
} SOCKET_ADDRESS, *PSOCKET_ADDRESS, FAR * LPSOCKET_ADDRESS ; | | |
| | |
/* | | |
* CSAddr Information | | |
*/ | | |
typedef struct _CSADDR_INFO { | | |
SOCKET_ADDRESS LocalAddr ; | | |
SOCKET_ADDRESS RemoteAddr ; | | |
INT iSocketType ; | | |
INT iProtocol ; | | |
} CSADDR_INFO, *PCSADDR_INFO, FAR * LPCSADDR_INFO ; | | |
#endif /* __CSADDR_DEFINED__ */ | | |
| | |
/* | | |
* Address list returned via SIO_ADDRESS_LIST_QUERY | | |
*/ | | |
typedef struct _SOCKET_ADDRESS_LIST { | | |
INT iAddressCount; | | |
SOCKET_ADDRESS Address[1]; | | |
} SOCKET_ADDRESS_LIST, FAR * LPSOCKET_ADDRESS_LIST; | | |
| | |
/* | | /* |
* Address Family/Protocol Tuples | | * Address Family/Protocol Tuples |
*/ | | */ |
typedef struct _AFPROTOCOLS { | | typedef struct _AFPROTOCOLS { |
INT iAddressFamily; | | INT iAddressFamily; |
INT iProtocol; | | INT iProtocol; |
} AFPROTOCOLS, *PAFPROTOCOLS, *LPAFPROTOCOLS; | | } AFPROTOCOLS, *PAFPROTOCOLS, *LPAFPROTOCOLS; |
| | |
/* | | /* |
* Client Query API Typedefs | | * Client Query API Typedefs |
| | |
skipping to change at line 1455 | | skipping to change at line 1254 |
{ | | { |
DWORD dwSize; | | DWORD dwSize; |
LPSTR lpszServiceInstanceName; | | LPSTR lpszServiceInstanceName; |
LPGUID lpServiceClassId; | | LPGUID lpServiceClassId; |
LPWSAVERSION lpVersion; | | LPWSAVERSION lpVersion; |
LPSTR lpszComment; | | LPSTR lpszComment; |
DWORD dwNameSpace; | | DWORD dwNameSpace; |
LPGUID lpNSProviderId; | | LPGUID lpNSProviderId; |
LPSTR lpszContext; | | LPSTR lpszContext; |
DWORD dwNumberOfProtocols; | | DWORD dwNumberOfProtocols; |
|
LPAFPROTOCOLS lpafpProtocols; | | __field_ecount(dwNumberOfProtocols) LPAFPROTOCOLS lpafpProtocols; |
LPSTR lpszQueryString; | | LPSTR lpszQueryString; |
DWORD dwNumberOfCsAddrs; | | DWORD dwNumberOfCsAddrs; |
|
LPCSADDR_INFO lpcsaBuffer; | | __field_ecount(dwNumberOfCsAddrs) LPCSADDR_INFO lpcsaBuffer; |
DWORD dwOutputFlags; | | DWORD dwOutputFlags; |
LPBLOB lpBlob; | | LPBLOB lpBlob; |
} WSAQUERYSETA, *PWSAQUERYSETA, *LPWSAQUERYSETA; | | } WSAQUERYSETA, *PWSAQUERYSETA, *LPWSAQUERYSETA; |
|
typedef struct _WSAQuerySetW | | typedef __struct_bcount(dwSize) struct _WSAQuerySetW |
{ | | { |
DWORD dwSize; | | DWORD dwSize; |
LPWSTR lpszServiceInstanceName; | | LPWSTR lpszServiceInstanceName; |
LPGUID lpServiceClassId; | | LPGUID lpServiceClassId; |
LPWSAVERSION lpVersion; | | LPWSAVERSION lpVersion; |
LPWSTR lpszComment; | | LPWSTR lpszComment; |
DWORD dwNameSpace; | | DWORD dwNameSpace; |
LPGUID lpNSProviderId; | | LPGUID lpNSProviderId; |
LPWSTR lpszContext; | | LPWSTR lpszContext; |
DWORD dwNumberOfProtocols; | | DWORD dwNumberOfProtocols; |
|
LPAFPROTOCOLS lpafpProtocols; | | __field_ecount(dwNumberOfProtocols) LPAFPROTOCOLS lpafpProtocols; |
LPWSTR lpszQueryString; | | LPWSTR lpszQueryString; |
DWORD dwNumberOfCsAddrs; | | DWORD dwNumberOfCsAddrs; |
|
LPCSADDR_INFO lpcsaBuffer; | | __field_ecount(dwNumberOfCsAddrs) LPCSADDR_INFO lpcsaBuffer; |
DWORD dwOutputFlags; | | DWORD dwOutputFlags; |
LPBLOB lpBlob; | | LPBLOB lpBlob; |
} WSAQUERYSETW, *PWSAQUERYSETW, *LPWSAQUERYSETW; | | } WSAQUERYSETW, *PWSAQUERYSETW, *LPWSAQUERYSETW; |
|
| | |
| | typedef struct _WSAQuerySet2A |
| | { |
| | DWORD dwSize; |
| | LPSTR lpszServiceInstanceName; |
| | LPWSAVERSION lpVersion; |
| | LPSTR lpszComment; |
| | DWORD dwNameSpace; |
| | LPGUID lpNSProviderId; |
| | LPSTR lpszContext; |
| | DWORD dwNumberOfProtocols; |
| | LPAFPROTOCOLS lpafpProtocols; |
| | LPSTR lpszQueryString; |
| | DWORD dwNumberOfCsAddrs; |
| | LPCSADDR_INFO lpcsaBuffer; |
| | DWORD dwOutputFlags; |
| | LPBLOB lpBlob; |
| | } WSAQUERYSET2A, *PWSAQUERYSET2A, *LPWSAQUERYSET2A; |
| | typedef struct _WSAQuerySet2W |
| | { |
| | DWORD dwSize; |
| | LPWSTR lpszServiceInstanceName; |
| | LPWSAVERSION lpVersion; |
| | LPWSTR lpszComment; |
| | DWORD dwNameSpace; |
| | LPGUID lpNSProviderId; |
| | LPWSTR lpszContext; |
| | DWORD dwNumberOfProtocols; |
| | __field_ecount(dwNumberOfProtocols) LPAFPROTOCOLS lpafpProtocols; |
| | LPWSTR lpszQueryString; |
| | DWORD dwNumberOfCsAddrs; |
| | __field_ecount(dwNumberOfCsAddrs) LPCSADDR_INFO lpcsaBuffer; |
| | DWORD dwOutputFlags; |
| | LPBLOB lpBlob; |
| | } WSAQUERYSET2W, *PWSAQUERYSET2W, *LPWSAQUERYSET2W; |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
typedef WSAQUERYSETW WSAQUERYSET; | | typedef WSAQUERYSETW WSAQUERYSET; |
typedef PWSAQUERYSETW PWSAQUERYSET; | | typedef PWSAQUERYSETW PWSAQUERYSET; |
typedef LPWSAQUERYSETW LPWSAQUERYSET; | | typedef LPWSAQUERYSETW LPWSAQUERYSET; |
|
| | typedef WSAQUERYSET2W WSAQUERYSET2; |
| | typedef PWSAQUERYSET2W PWSAQUERYSET2; |
| | typedef LPWSAQUERYSET2W LPWSAQUERYSET2; |
#else | | #else |
typedef WSAQUERYSETA WSAQUERYSET; | | typedef WSAQUERYSETA WSAQUERYSET; |
typedef PWSAQUERYSETA PWSAQUERYSET; | | typedef PWSAQUERYSETA PWSAQUERYSET; |
typedef LPWSAQUERYSETA LPWSAQUERYSET; | | typedef LPWSAQUERYSETA LPWSAQUERYSET; |
|
| | typedef WSAQUERYSET2A WSAQUERYSET2; |
| | typedef PWSAQUERYSET2A PWSAQUERYSET2; |
| | typedef LPWSAQUERYSET2A LPWSAQUERYSET2; |
#endif /* UNICODE */ | | #endif /* UNICODE */ |
| | |
#define LUP_DEEP 0x0001 | | #define LUP_DEEP 0x0001 |
#define LUP_CONTAINERS 0x0002 | | #define LUP_CONTAINERS 0x0002 |
#define LUP_NOCONTAINERS 0x0004 | | #define LUP_NOCONTAINERS 0x0004 |
#define LUP_NEAREST 0x0008 | | #define LUP_NEAREST 0x0008 |
#define LUP_RETURN_NAME 0x0010 | | #define LUP_RETURN_NAME 0x0010 |
#define LUP_RETURN_TYPE 0x0020 | | #define LUP_RETURN_TYPE 0x0020 |
#define LUP_RETURN_VERSION 0x0040 | | #define LUP_RETURN_VERSION 0x0040 |
#define LUP_RETURN_COMMENT 0x0080 | | #define LUP_RETURN_COMMENT 0x0080 |
#define LUP_RETURN_ADDR 0x0100 | | #define LUP_RETURN_ADDR 0x0100 |
#define LUP_RETURN_BLOB 0x0200 | | #define LUP_RETURN_BLOB 0x0200 |
#define LUP_RETURN_ALIASES 0x0400 | | #define LUP_RETURN_ALIASES 0x0400 |
#define LUP_RETURN_QUERY_STRING 0x0800 | | #define LUP_RETURN_QUERY_STRING 0x0800 |
#define LUP_RETURN_ALL 0x0FF0 | | #define LUP_RETURN_ALL 0x0FF0 |
#define LUP_RES_SERVICE 0x8000 | | #define LUP_RES_SERVICE 0x8000 |
| | |
|
#define LUP_FLUSHCACHE 0x1000 | | #define LUP_FLUSHCACHE 0x1000 |
#define LUP_FLUSHPREVIOUS 0x2000 | | #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 |
| | |
/* | | /* |
* Return flags | | * Return flags |
*/ | | */ |
| | |
#define RESULT_IS_ALIAS 0x0001 | | #define RESULT_IS_ALIAS 0x0001 |
|
| | #if(_WIN32_WINNT >= 0x0501) |
#define RESULT_IS_ADDED 0x0010 | | #define RESULT_IS_ADDED 0x0010 |
#define RESULT_IS_CHANGED 0x0020 | | #define RESULT_IS_CHANGED 0x0020 |
#define RESULT_IS_DELETED 0x0040 | | #define RESULT_IS_DELETED 0x0040 |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
/* | | /* |
* Service Address Registration and Deregistration Data Types. | | * Service Address Registration and Deregistration Data Types. |
*/ | | */ |
| | |
typedef enum _WSAESETSERVICEOP | | typedef enum _WSAESETSERVICEOP |
{ | | { |
RNRSERVICE_REGISTER=0, | | RNRSERVICE_REGISTER=0, |
RNRSERVICE_DEREGISTER, | | RNRSERVICE_DEREGISTER, |
RNRSERVICE_DELETE | | RNRSERVICE_DELETE |
| | |
skipping to change at line 1589 | | skipping to change at line 1439 |
typedef LPWSASERVICECLASSINFOA LPWSASERVICECLASSINFO; | | typedef LPWSASERVICECLASSINFOA LPWSASERVICECLASSINFO; |
#endif /* UNICODE */ | | #endif /* UNICODE */ |
| | |
typedef struct _WSANAMESPACE_INFOA { | | typedef struct _WSANAMESPACE_INFOA { |
GUID NSProviderId; | | GUID NSProviderId; |
DWORD dwNameSpace; | | DWORD dwNameSpace; |
BOOL fActive; | | BOOL fActive; |
DWORD dwVersion; | | DWORD dwVersion; |
LPSTR lpszIdentifier; | | LPSTR lpszIdentifier; |
} WSANAMESPACE_INFOA, *PWSANAMESPACE_INFOA, *LPWSANAMESPACE_INFOA; | | } WSANAMESPACE_INFOA, *PWSANAMESPACE_INFOA, *LPWSANAMESPACE_INFOA; |
|
| | |
typedef struct _WSANAMESPACE_INFOW { | | typedef struct _WSANAMESPACE_INFOW { |
GUID NSProviderId; | | GUID NSProviderId; |
DWORD dwNameSpace; | | DWORD dwNameSpace; |
BOOL fActive; | | BOOL fActive; |
DWORD dwVersion; | | DWORD dwVersion; |
LPWSTR lpszIdentifier; | | LPWSTR lpszIdentifier; |
} WSANAMESPACE_INFOW, *PWSANAMESPACE_INFOW, *LPWSANAMESPACE_INFOW; | | } WSANAMESPACE_INFOW, *PWSANAMESPACE_INFOW, *LPWSANAMESPACE_INFOW; |
|
| | |
| | typedef struct _WSANAMESPACE_INFOEXA { |
| | GUID NSProviderId; |
| | DWORD dwNameSpace; |
| | BOOL fActive; |
| | DWORD dwVersion; |
| | LPSTR lpszIdentifier; |
| | BLOB ProviderSpecific; |
| | } WSANAMESPACE_INFOEXA, *PWSANAMESPACE_INFOEXA, *LPWSANAMESPACE_INFOEXA; |
| | |
| | typedef struct _WSANAMESPACE_INFOEXW { |
| | GUID NSProviderId; |
| | DWORD dwNameSpace; |
| | BOOL fActive; |
| | DWORD dwVersion; |
| | LPWSTR lpszIdentifier; |
| | BLOB ProviderSpecific; |
| | } WSANAMESPACE_INFOEXW, *PWSANAMESPACE_INFOEXW, *LPWSANAMESPACE_INFOEXW; |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
typedef WSANAMESPACE_INFOW WSANAMESPACE_INFO; | | typedef WSANAMESPACE_INFOW WSANAMESPACE_INFO; |
typedef PWSANAMESPACE_INFOW PWSANAMESPACE_INFO; | | typedef PWSANAMESPACE_INFOW PWSANAMESPACE_INFO; |
typedef LPWSANAMESPACE_INFOW LPWSANAMESPACE_INFO; | | typedef LPWSANAMESPACE_INFOW LPWSANAMESPACE_INFO; |
|
| | typedef WSANAMESPACE_INFOEXW WSANAMESPACE_INFOEX; |
| | typedef PWSANAMESPACE_INFOEXW PWSANAMESPACE_INFOEX; |
| | typedef LPWSANAMESPACE_INFOEXW LPWSANAMESPACE_INFOEX; |
#else | | #else |
typedef WSANAMESPACE_INFOA WSANAMESPACE_INFO; | | typedef WSANAMESPACE_INFOA WSANAMESPACE_INFO; |
typedef PWSANAMESPACE_INFOA PWSANAMESPACE_INFO; | | typedef PWSANAMESPACE_INFOA PWSANAMESPACE_INFO; |
typedef LPWSANAMESPACE_INFOA LPWSANAMESPACE_INFO; | | typedef LPWSANAMESPACE_INFOA LPWSANAMESPACE_INFO; |
|
| | typedef WSANAMESPACE_INFOEXA WSANAMESPACE_INFOEX; |
| | typedef PWSANAMESPACE_INFOEXA PWSANAMESPACE_INFOEX; |
| | typedef LPWSANAMESPACE_INFOEXA LPWSANAMESPACE_INFOEX; |
#endif /* UNICODE */ | | #endif /* UNICODE */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0600) |
| | |
| | /* Event flag definitions for WSAPoll(). */ |
| | |
| | #define POLLRDNORM 0x0100 |
| | #define POLLRDBAND 0x0200 |
| | #define POLLIN (POLLRDNORM | POLLRDBAND) |
| | #define POLLPRI 0x0400 |
| | |
| | #define POLLWRNORM 0x0010 |
| | #define POLLOUT (POLLWRNORM) |
| | #define POLLWRBAND 0x0020 |
| | |
| | #define POLLERR 0x0001 |
| | #define POLLHUP 0x0002 |
| | #define POLLNVAL 0x0004 |
| | |
| | typedef struct pollfd { |
| | |
| | SOCKET fd; |
| | SHORT events; |
| | SHORT revents; |
| | |
| | } WSAPOLLFD, *PWSAPOLLFD, FAR *LPWSAPOLLFD; |
| | |
| | #endif // (_WIN32_WINNT >= 0x0600) |
| | |
/* Socket function prototypes */ | | /* Socket function prototypes */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
SOCKET | | SOCKET |
WSAAPI | | WSAAPI |
accept( | | accept( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT struct sockaddr FAR * addr, | | __out_bcount_opt(*addrlen) struct sockaddr FAR * addr, |
IN OUT int FAR * addrlen | | __inout_opt int FAR * addrlen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
SOCKET | | SOCKET |
(WSAAPI * LPFN_ACCEPT)( | | (WSAAPI * LPFN_ACCEPT)( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT struct sockaddr FAR * addr, | | __out_bcount_opt(*addrlen) struct sockaddr FAR * addr, |
IN OUT int FAR * addrlen | | __inout_opt int FAR * addrlen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
bind( | | bind( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const struct sockaddr FAR * name, | | __in_bcount(namelen) const struct sockaddr FAR * name, |
IN int namelen | | IN int namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_BIND)( | | (WSAAPI * LPFN_BIND)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const struct sockaddr FAR * name, | | __in_bcount(namelen) const struct sockaddr FAR * name, |
IN int namelen | | IN int namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
closesocket( | | closesocket( |
IN SOCKET s | | IN SOCKET s |
| | |
skipping to change at line 1673 | | skipping to change at line 1576 |
IN SOCKET s | | IN SOCKET s |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
connect( | | connect( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const struct sockaddr FAR * name, | | __in_bcount(namelen) const struct sockaddr FAR * name, |
IN int namelen | | IN int namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_CONNECT)( | | (WSAAPI * LPFN_CONNECT)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const struct sockaddr FAR * name, | | __in_bcount(namelen) const struct sockaddr FAR * name, |
IN int namelen | | IN int namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
ioctlsocket( | | ioctlsocket( |
IN SOCKET s, | | IN SOCKET s, |
IN long cmd, | | IN long cmd, |
|
IN OUT u_long FAR * argp | | __inout u_long FAR * argp |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_IOCTLSOCKET)( | | (WSAAPI * LPFN_IOCTLSOCKET)( |
IN SOCKET s, | | IN SOCKET s, |
IN long cmd, | | IN long cmd, |
|
IN OUT u_long FAR * argp | | __inout u_long FAR * argp |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
getpeername( | | getpeername( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT struct sockaddr FAR * name, | | __out_bcount_part(*namelen,*namelen) struct sockaddr FAR * name, |
IN OUT int FAR * namelen | | __inout int FAR * namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_GETPEERNAME)( | | (WSAAPI * LPFN_GETPEERNAME)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN struct sockaddr FAR * name, | | __out_bcount_part(*namelen,*namelen) struct sockaddr FAR * name, |
IN OUT int FAR * namelen | | __inout int FAR * namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
getsockname( | | getsockname( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT struct sockaddr FAR * name, | | __out_bcount_part(*namelen,*namelen) struct sockaddr FAR * name, |
IN OUT int FAR * namelen | | __inout int FAR * namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_GETSOCKNAME)( | | (WSAAPI * LPFN_GETSOCKNAME)( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT struct sockaddr FAR * name, | | __out_bcount_part(*namelen,*namelen) struct sockaddr FAR * name, |
IN OUT int FAR * namelen | | __inout int FAR * namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
getsockopt( | | getsockopt( |
IN SOCKET s, | | IN SOCKET s, |
IN int level, | | IN int level, |
IN int optname, | | IN int optname, |
|
OUT char FAR * optval, | | __out_bcount(*optlen) char FAR * optval, |
IN OUT int FAR * optlen | | __inout int FAR * optlen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_GETSOCKOPT)( | | (WSAAPI * LPFN_GETSOCKOPT)( |
IN SOCKET s, | | IN SOCKET s, |
IN int level, | | IN int level, |
IN int optname, | | IN int optname, |
|
OUT char FAR * optval, | | __out_bcount(*optlen) char FAR * optval, |
IN OUT int FAR * optlen | | __inout int FAR * optlen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
u_long | | u_long |
WSAAPI | | WSAAPI |
htonl( | | htonl( |
IN u_long hostlong | | IN u_long hostlong |
); | | ); |
| | |
skipping to change at line 1811 | | skipping to change at line 1714 |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
u_short | | u_short |
(WSAAPI * LPFN_HTONS)( | | (WSAAPI * LPFN_HTONS)( |
IN u_short hostshort | | IN u_short hostshort |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
unsigned long | | unsigned long |
WSAAPI | | WSAAPI |
inet_addr( | | inet_addr( |
|
IN const char FAR * cp | | __in IN const char FAR * cp |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
unsigned long | | unsigned long |
(WSAAPI * LPFN_INET_ADDR)( | | (WSAAPI * LPFN_INET_ADDR)( |
IN const char FAR * cp | | IN const char FAR * cp |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
skipping to change at line 1903 | | skipping to change at line 1807 |
IN u_short netshort | | IN u_short netshort |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
recv( | | recv( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT char FAR * buf, | | __out_bcount_part(len, return) __out_data_source(NETWORK) char FAR * buf, |
IN int len, | | IN int len, |
IN int flags | | IN int flags |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_RECV)( | | (WSAAPI * LPFN_RECV)( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT char FAR * buf, | | __out_bcount_part(len, return) char FAR * buf, |
IN int len, | | IN int len, |
IN int flags | | IN int flags |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
recvfrom( | | recvfrom( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT char FAR * buf, | | __out_bcount_part(len, return) __out_data_source(NETWORK) char FAR * buf, |
IN int len, | | IN int len, |
IN int flags, | | IN int flags, |
|
OUT struct sockaddr FAR * from, | | __out_bcount_opt(*fromlen) struct sockaddr FAR * from, |
IN OUT int FAR * fromlen | | __inout_opt int FAR * fromlen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_RECVFROM)( | | (WSAAPI * LPFN_RECVFROM)( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT char FAR * buf, | | __out_bcount_part(len, return) char FAR * buf, |
IN int len, | | IN int len, |
IN int flags, | | IN int flags, |
|
OUT struct sockaddr FAR * from, | | __out_bcount_opt(*fromlen) struct sockaddr FAR * from, |
IN OUT int FAR * fromlen | | __inout_opt int FAR * fromlen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
select( | | select( |
IN int nfds, | | IN int nfds, |
|
IN OUT fd_set FAR * readfds, | | __inout_opt fd_set FAR * readfds, |
IN OUT fd_set FAR * writefds, | | __inout_opt fd_set FAR * writefds, |
IN OUT fd_set FAR *exceptfds, | | __inout_opt fd_set FAR * exceptfds, |
IN const struct timeval FAR * timeout | | IN const struct timeval FAR * timeout |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_SELECT)( | | (WSAAPI * LPFN_SELECT)( |
IN int nfds, | | IN int nfds, |
|
IN OUT fd_set FAR * readfds, | | __inout_opt fd_set FAR * readfds, |
IN OUT fd_set FAR * writefds, | | __inout_opt fd_set FAR * writefds, |
IN OUT fd_set FAR *exceptfds, | | __inout_opt fd_set FAR *exceptfds, |
IN const struct timeval FAR * timeout | | IN const struct timeval FAR * timeout |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
send( | | send( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const char FAR * buf, | | __in_bcount(len) const char FAR * buf, |
IN int len, | | IN int len, |
IN int flags | | IN int flags |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_SEND)( | | (WSAAPI * LPFN_SEND)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const char FAR * buf, | | __in_bcount(len) const char FAR * buf, |
IN int len, | | IN int len, |
IN int flags | | IN int flags |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
sendto( | | sendto( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const char FAR * buf, | | __in_bcount(len) const char FAR * buf, |
IN int len, | | IN int len, |
IN int flags, | | IN int flags, |
|
IN const struct sockaddr FAR * to, | | __in_bcount(tolen) const struct sockaddr FAR * to, |
IN int tolen | | IN int tolen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_SENDTO)( | | (WSAAPI * LPFN_SENDTO)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const char FAR * buf, | | __in_bcount(len) const char FAR * buf, |
IN int len, | | IN int len, |
IN int flags, | | IN int flags, |
|
IN const struct sockaddr FAR * to, | | __in_bcount(tolen) const struct sockaddr FAR * to, |
IN int tolen | | IN int tolen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
setsockopt( | | setsockopt( |
IN SOCKET s, | | IN SOCKET s, |
IN int level, | | IN int level, |
IN int optname, | | IN int optname, |
|
IN const char FAR * optval, | | __in_bcount_opt(optlen) const char FAR * optval, |
IN int optlen | | IN int optlen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_SETSOCKOPT)( | | (WSAAPI * LPFN_SETSOCKOPT)( |
IN SOCKET s, | | IN SOCKET s, |
IN int level, | | IN int level, |
IN int optname, | | IN int optname, |
|
IN const char FAR * optval, | | __in_bcount(optlen) const char FAR * optval, |
IN int optlen | | IN int optlen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
shutdown( | | shutdown( |
IN SOCKET s, | | IN SOCKET s, |
| | |
skipping to change at line 2094 | | skipping to change at line 1998 |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
/* Database function prototypes */ | | /* Database function prototypes */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
struct hostent FAR * | | struct hostent FAR * |
WSAAPI | | WSAAPI |
gethostbyaddr( | | gethostbyaddr( |
|
IN const char FAR * addr, | | __in_bcount(len) const char FAR * addr, |
IN int len, | | IN int len, |
IN int type | | IN int type |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
struct hostent FAR * | | struct hostent FAR * |
(WSAAPI * LPFN_GETHOSTBYADDR)( | | (WSAAPI * LPFN_GETHOSTBYADDR)( |
|
IN const char FAR * addr, | | __in_bcount(len) const char FAR * addr, |
IN int len, | | IN int len, |
IN int type | | IN int type |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
struct hostent FAR * | | struct hostent FAR * |
WSAAPI | | WSAAPI |
gethostbyname( | | gethostbyname( |
|
IN const char FAR * name | | __in const char FAR * name |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
struct hostent FAR * | | struct hostent FAR * |
(WSAAPI * LPFN_GETHOSTBYNAME)( | | (WSAAPI * LPFN_GETHOSTBYNAME)( |
|
IN const char FAR * name | | __in const char FAR * name |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
gethostname( | | gethostname( |
|
OUT char FAR * name, | | __out_bcount(namelen) char FAR * name, |
IN int namelen | | IN int namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_GETHOSTNAME)( | | (WSAAPI * LPFN_GETHOSTNAME)( |
|
OUT char FAR * name, | | __out_bcount(namelen) char FAR * name, |
IN int namelen | | IN int namelen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
struct servent FAR * | | struct servent FAR * |
WSAAPI | | WSAAPI |
getservbyport( | | getservbyport( |
|
IN int port, | | __in int port, |
IN const char FAR * proto | | __in const char FAR * proto |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
struct servent FAR * | | struct servent FAR * |
(WSAAPI * LPFN_GETSERVBYPORT)( | | (WSAAPI * LPFN_GETSERVBYPORT)( |
IN int port, | | IN int port, |
|
IN const char FAR * proto | | __in const char FAR * proto |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
struct servent FAR * | | struct servent FAR * |
WSAAPI | | WSAAPI |
getservbyname( | | getservbyname( |
|
IN const char FAR * name, | | __in const char FAR * name, |
IN const char FAR * proto | | __in const char FAR * proto |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
struct servent FAR * | | struct servent FAR * |
(WSAAPI * LPFN_GETSERVBYNAME)( | | (WSAAPI * LPFN_GETSERVBYNAME)( |
|
IN const char FAR * name, | | __in const char FAR * name, |
IN const char FAR * proto | | __in const char FAR * proto |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
struct protoent FAR * | | struct protoent FAR * |
WSAAPI | | WSAAPI |
getprotobynumber( | | getprotobynumber( |
IN int number | | IN int number |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
struct protoent FAR * | | struct protoent FAR * |
(WSAAPI * LPFN_GETPROTOBYNUMBER)( | | (WSAAPI * LPFN_GETPROTOBYNUMBER)( |
IN int number | | IN int number |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
struct protoent FAR * | | struct protoent FAR * |
WSAAPI | | WSAAPI |
getprotobyname( | | getprotobyname( |
IN const char FAR * name | | IN const char FAR * name |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
struct protoent FAR * | | struct protoent FAR * |
(WSAAPI * LPFN_GETPROTOBYNAME)( | | (WSAAPI * LPFN_GETPROTOBYNAME)( |
|
IN const char FAR * name | | __in const char FAR * name |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
/* Microsoft Windows Extension function prototypes */ | | /* Microsoft Windows Extension function prototypes */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSAStartup( | | WSAStartup( |
IN WORD wVersionRequested, | | IN WORD wVersionRequested, |
OUT LPWSADATA lpWSAData | | OUT LPWSADATA lpWSAData |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
| | |
skipping to change at line 2359 | | skipping to change at line 2269 |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSACANCELBLOCKINGCALL)( | | (WSAAPI * LPFN_WSACANCELBLOCKINGCALL)( |
void | | void |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
HANDLE | | HANDLE |
WSAAPI | | WSAAPI |
WSAAsyncGetServByName( | | WSAAsyncGetServByName( |
|
IN HWND hWnd, | | __in HWND hWnd, |
IN u_int wMsg, | | __in u_int wMsg, |
IN const char FAR * name, | | __in const char FAR * name, |
IN const char FAR * proto, | | __in const char FAR * proto, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | __in int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
HANDLE | | HANDLE |
(WSAAPI * LPFN_WSAASYNCGETSERVBYNAME)( | | (WSAAPI * LPFN_WSAASYNCGETSERVBYNAME)( |
IN HWND hWnd, | | IN HWND hWnd, |
IN u_int wMsg, | | IN u_int wMsg, |
|
IN const char FAR * name, | | __in const char FAR * name, |
IN const char FAR * proto, | | __in const char FAR * proto, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | IN int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
HANDLE | | HANDLE |
WSAAPI | | WSAAPI |
WSAAsyncGetServByPort( | | WSAAsyncGetServByPort( |
|
IN HWND hWnd, | | __in HWND hWnd, |
IN u_int wMsg, | | __in u_int wMsg, |
IN int port, | | __in int port, |
IN const char FAR * proto, | | __in const char FAR * proto, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | __in int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
HANDLE | | HANDLE |
(WSAAPI * LPFN_WSAASYNCGETSERVBYPORT)( | | (WSAAPI * LPFN_WSAASYNCGETSERVBYPORT)( |
IN HWND hWnd, | | IN HWND hWnd, |
IN u_int wMsg, | | IN u_int wMsg, |
IN int port, | | IN int port, |
|
IN const char FAR * proto, | | __in const char FAR * proto, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | IN int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
HANDLE | | HANDLE |
WSAAPI | | WSAAPI |
WSAAsyncGetProtoByName( | | WSAAsyncGetProtoByName( |
|
IN HWND hWnd, | | __in HWND hWnd, |
IN u_int wMsg, | | __in u_int wMsg, |
IN const char FAR * name, | | __in const char FAR * name, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | __in int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
HANDLE | | HANDLE |
(WSAAPI * LPFN_WSAASYNCGETPROTOBYNAME)( | | (WSAAPI * LPFN_WSAASYNCGETPROTOBYNAME)( |
IN HWND hWnd, | | IN HWND hWnd, |
IN u_int wMsg, | | IN u_int wMsg, |
|
IN const char FAR * name, | | __in const char FAR * name, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | IN int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
HANDLE | | HANDLE |
WSAAPI | | WSAAPI |
WSAAsyncGetProtoByNumber( | | WSAAsyncGetProtoByNumber( |
|
IN HWND hWnd, | | __in HWND hWnd, |
IN u_int wMsg, | | __in u_int wMsg, |
IN int number, | | __in int number, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | __in int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
HANDLE | | HANDLE |
(WSAAPI * LPFN_WSAASYNCGETPROTOBYNUMBER)( | | (WSAAPI * LPFN_WSAASYNCGETPROTOBYNUMBER)( |
IN HWND hWnd, | | IN HWND hWnd, |
IN u_int wMsg, | | IN u_int wMsg, |
IN int number, | | IN int number, |
|
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | IN int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
HANDLE | | HANDLE |
WSAAPI | | WSAAPI |
WSAAsyncGetHostByName( | | WSAAsyncGetHostByName( |
|
IN HWND hWnd, | | __in HWND hWnd, |
IN u_int wMsg, | | __in u_int wMsg, |
IN const char FAR * name, | | __in const char FAR * name, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | __in int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
HANDLE | | HANDLE |
(WSAAPI * LPFN_WSAASYNCGETHOSTBYNAME)( | | (WSAAPI * LPFN_WSAASYNCGETHOSTBYNAME)( |
IN HWND hWnd, | | IN HWND hWnd, |
IN u_int wMsg, | | IN u_int wMsg, |
|
IN const char FAR * name, | | __in const char FAR * name, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | IN int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
HANDLE | | HANDLE |
WSAAPI | | WSAAPI |
WSAAsyncGetHostByAddr( | | WSAAsyncGetHostByAddr( |
|
IN HWND hWnd, | | __in HWND hWnd, |
IN u_int wMsg, | | __in u_int wMsg, |
IN const char FAR * addr, | | __in_bcount(len) const char FAR * addr, |
IN int len, | | __in int len, |
IN int type, | | __in int type, |
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | __in int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
HANDLE | | HANDLE |
(WSAAPI * LPFN_WSAASYNCGETHOSTBYADDR)( | | (WSAAPI * LPFN_WSAASYNCGETHOSTBYADDR)( |
IN HWND hWnd, | | IN HWND hWnd, |
IN u_int wMsg, | | IN u_int wMsg, |
|
IN const char FAR * addr, | | __in_bcount(len) const char FAR * addr, |
IN int len, | | IN int len, |
IN int type, | | IN int type, |
|
OUT char FAR * buf, | | __out_bcount(buflen) char FAR * buf, |
IN int buflen | | IN int buflen |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSACancelAsyncRequest( | | WSACancelAsyncRequest( |
|
IN HANDLE hAsyncTaskHandle | | __in HANDLE hAsyncTaskHandle |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSACANCELASYNCREQUEST)( | | (WSAAPI * LPFN_WSACANCELASYNCREQUEST)( |
IN HANDLE hAsyncTaskHandle | | IN HANDLE hAsyncTaskHandle |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSAAsyncSelect( | | WSAAsyncSelect( |
IN SOCKET s, | | IN SOCKET s, |
IN HWND hWnd, | | IN HWND hWnd, |
IN u_int wMsg, | | IN u_int wMsg, |
IN long lEvent | | IN long lEvent |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
skipping to change at line 2564 | | skipping to change at line 2475 |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
/* WinSock 2 API new function prototypes */ | | /* WinSock 2 API new function prototypes */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
SOCKET | | SOCKET |
WSAAPI | | WSAAPI |
WSAAccept( | | WSAAccept( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT struct sockaddr FAR * addr, | | __out_bcount_part_opt(*addrlen,*addrlen) struct sockaddr FAR * addr, |
IN OUT LPINT addrlen, | | __inout_opt LPINT addrlen, |
IN LPCONDITIONPROC lpfnCondition, | | __in_opt LPCONDITIONPROC lpfnCondition, |
IN DWORD_PTR dwCallbackData | | __in_opt DWORD_PTR dwCallbackData |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
SOCKET | | SOCKET |
(WSAAPI * LPFN_WSAACCEPT)( | | (WSAAPI * LPFN_WSAACCEPT)( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT struct sockaddr FAR * addr, | | __out_bcount_part_opt(*addrlen,*addrlen) struct sockaddr FAR * addr, |
IN OUT LPINT addrlen, | | __inout_opt LPINT addrlen, |
IN LPCONDITIONPROC lpfnCondition, | | __in_opt LPCONDITIONPROC lpfnCondition, |
IN DWORD_PTR dwCallbackData | | __in_opt DWORD_PTR dwCallbackData |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
BOOL | | BOOL |
WSAAPI | | WSAAPI |
WSACloseEvent( | | WSACloseEvent( |
IN WSAEVENT hEvent | | IN WSAEVENT hEvent |
); | | ); |
| | |
skipping to change at line 2606 | | skipping to change at line 2517 |
IN WSAEVENT hEvent | | IN WSAEVENT hEvent |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSAConnect( | | WSAConnect( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const struct sockaddr FAR * name, | | __in_bcount(namelen) const struct sockaddr FAR * name, |
IN int namelen, | | IN int namelen, |
|
IN LPWSABUF lpCallerData, | | __in_opt LPWSABUF lpCallerData, |
OUT LPWSABUF lpCalleeData, | | __out_opt LPWSABUF lpCalleeData, |
IN LPQOS lpSQOS, | | __in_opt LPQOS lpSQOS, |
IN LPQOS lpGQOS | | __in_opt LPQOS lpGQOS |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
|
| | #if INCL_WINSOCK_API_PROTOTYPES |
| | |
| | #ifdef UNICODE |
| | #define WSAConnectByName WSAConnectByNameW |
| | #else |
| | #define WSAConnectByName WSAConnectByNameA |
| | #endif |
| | |
| | __control_entrypoint(DllExport) |
| | __data_entrypoint(Network) |
| | BOOL |
| | PASCAL |
| | WSAConnectByNameW( |
| | __in SOCKET s, |
| | __in_z LPWSTR nodename, |
| | __in_z LPWSTR servicename, |
| | __inout LPDWORD LocalAddressLength, |
| | __out_bcount_part(*LocalAddressLength,*LocalAddressLength) LPSOCKADDR LocalA |
| | ddress, |
| | __inout LPDWORD RemoteAddressLength, |
| | __out_bcount_part(*RemoteAddressLength,*RemoteAddressLength) LPSOCKADDR Remo |
| | teAddress, |
| | __in const struct timeval * timeout, |
| | __in_opt LPWSAOVERLAPPED Reserved); |
| | |
| | __control_entrypoint(DllExport) |
| | __data_entrypoint(Network) |
| | BOOL |
| | PASCAL |
| | WSAConnectByNameA( |
| | __in SOCKET s, |
| | __in_z LPCSTR nodename, |
| | __in_z LPCSTR servicename, |
| | __inout LPDWORD LocalAddressLength, |
| | __out_bcount_part(*LocalAddressLength,*LocalAddressLength) LPSOCKADDR LocalA |
| | ddress, |
| | __inout LPDWORD RemoteAddressLength, |
| | __out_bcount_part(*RemoteAddressLength,*RemoteAddressLength) LPSOCKADDR Remo |
| | teAddress, |
| | __in const struct timeval * timeout, |
| | __in_opt LPWSAOVERLAPPED Reserved); |
| | |
| | __control_entrypoint(DllExport) |
| | __data_entrypoint(Network) |
| | BOOL |
| | PASCAL |
| | WSAConnectByList( |
| | __in SOCKET s, |
| | __in PSOCKET_ADDRESS_LIST SocketAddress, |
| | __inout LPDWORD LocalAddressLength, |
| | __out_bcount_part(*LocalAddressLength,*LocalAddressLength) LPSOCKADDR LocalA |
| | ddress, |
| | __inout LPDWORD RemoteAddressLength, |
| | __out_bcount_part(*RemoteAddressLength,*RemoteAddressLength) LPSOCKADDR Remo |
| | teAddress, |
| | __in const struct timeval * timeout, |
| | __in_opt LPWSAOVERLAPPED Reserved); |
| | #endif |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSACONNECT)( | | (WSAAPI * LPFN_WSACONNECT)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const struct sockaddr FAR * name, | | __in_bcount(namelen) const struct sockaddr FAR * name, |
IN int namelen, | | IN int namelen, |
|
IN LPWSABUF lpCallerData, | | __in_opt LPWSABUF lpCallerData, |
OUT LPWSABUF lpCalleeData, | | __out_opt LPWSABUF lpCalleeData, |
IN LPQOS lpSQOS, | | __in_opt LPQOS lpSQOS, |
IN LPQOS lpGQOS | | __in_opt LPQOS lpGQOS |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
WSAEVENT | | WSAEVENT |
WSAAPI | | WSAAPI |
WSACreateEvent( | | WSACreateEvent( |
void | | void |
); | | ); |
| | |
skipping to change at line 2647 | | skipping to change at line 2611 |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
WSAEVENT | | WSAEVENT |
(WSAAPI * LPFN_WSACREATEEVENT)( | | (WSAAPI * LPFN_WSACREATEEVENT)( |
void | | void |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSADuplicateSocketA( | | WSADuplicateSocketA( |
IN SOCKET s, | | IN SOCKET s, |
IN DWORD dwProcessId, | | IN DWORD dwProcessId, |
OUT LPWSAPROTOCOL_INFOA lpProtocolInfo | | OUT LPWSAPROTOCOL_INFOA lpProtocolInfo |
); | | ); |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSADuplicateSocketW( | | WSADuplicateSocketW( |
IN SOCKET s, | | IN SOCKET s, |
IN DWORD dwProcessId, | | IN DWORD dwProcessId, |
OUT LPWSAPROTOCOL_INFOW lpProtocolInfo | | OUT LPWSAPROTOCOL_INFOW lpProtocolInfo |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSADuplicateSocket WSADuplicateSocketW | | #define WSADuplicateSocket WSADuplicateSocketW |
| | |
skipping to change at line 2693 | | skipping to change at line 2659 |
OUT LPWSAPROTOCOL_INFOW lpProtocolInfo | | OUT LPWSAPROTOCOL_INFOW lpProtocolInfo |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSADUPLICATESOCKET LPFN_WSADUPLICATESOCKETW | | #define LPFN_WSADUPLICATESOCKET LPFN_WSADUPLICATESOCKETW |
#else | | #else |
#define LPFN_WSADUPLICATESOCKET LPFN_WSADUPLICATESOCKETA | | #define LPFN_WSADUPLICATESOCKET LPFN_WSADUPLICATESOCKETA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSAEnumNetworkEvents( | | WSAEnumNetworkEvents( |
IN SOCKET s, | | IN SOCKET s, |
IN WSAEVENT hEventObject, | | IN WSAEVENT hEventObject, |
OUT LPWSANETWORKEVENTS lpNetworkEvents | | OUT LPWSANETWORKEVENTS lpNetworkEvents |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
| | |
skipping to change at line 2718 | | skipping to change at line 2685 |
IN WSAEVENT hEventObject, | | IN WSAEVENT hEventObject, |
OUT LPWSANETWORKEVENTS lpNetworkEvents | | OUT LPWSANETWORKEVENTS lpNetworkEvents |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSAEnumProtocolsA( | | WSAEnumProtocolsA( |
|
IN LPINT lpiProtocols, | | __in_opt LPINT lpiProtocols, |
OUT LPWSAPROTOCOL_INFOA lpProtocolBuffer, | | __out_bcount_part_opt(*lpdwBufferLength,*lpdwBufferLength) LPWSAPROTOCOL_INF |
IN OUT LPDWORD lpdwBufferLength | | OA lpProtocolBuffer, |
| | __inout LPDWORD lpdwBufferLength |
); | | ); |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSAEnumProtocolsW( | | WSAEnumProtocolsW( |
|
IN LPINT lpiProtocols, | | __in_opt LPINT lpiProtocols, |
OUT LPWSAPROTOCOL_INFOW lpProtocolBuffer, | | __out_bcount_part_opt(*lpdwBufferLength,*lpdwBufferLength) LPWSAPROTOCOL_INF |
IN OUT LPDWORD lpdwBufferLength | | OW lpProtocolBuffer, |
| | __inout LPDWORD lpdwBufferLength |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSAEnumProtocols WSAEnumProtocolsW | | #define WSAEnumProtocols WSAEnumProtocolsW |
#else | | #else |
#define WSAEnumProtocols WSAEnumProtocolsA | | #define WSAEnumProtocols WSAEnumProtocolsA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSAENUMPROTOCOLSA)( | | (WSAAPI * LPFN_WSAENUMPROTOCOLSA)( |
|
IN LPINT lpiProtocols, | | __in_opt LPINT lpiProtocols, |
OUT LPWSAPROTOCOL_INFOA lpProtocolBuffer, | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSAPROTOCOL_INFOA l |
IN OUT LPDWORD lpdwBufferLength | | pProtocolBuffer, |
| | __inout LPDWORD lpdwBufferLength |
); | | ); |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSAENUMPROTOCOLSW)( | | (WSAAPI * LPFN_WSAENUMPROTOCOLSW)( |
|
IN LPINT lpiProtocols, | | __in_opt LPINT lpiProtocols, |
OUT LPWSAPROTOCOL_INFOW lpProtocolBuffer, | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSAPROTOCOL_INFOW l |
IN OUT LPDWORD lpdwBufferLength | | pProtocolBuffer, |
| | __inout LPDWORD lpdwBufferLength |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSAENUMPROTOCOLS LPFN_WSAENUMPROTOCOLSW | | #define LPFN_WSAENUMPROTOCOLS LPFN_WSAENUMPROTOCOLSW |
#else | | #else |
#define LPFN_WSAENUMPROTOCOLS LPFN_WSAENUMPROTOCOLSA | | #define LPFN_WSAENUMPROTOCOLS LPFN_WSAENUMPROTOCOLSA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
| | |
skipping to change at line 2781 | | skipping to change at line 2748 |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSAEVENTSELECT)( | | (WSAAPI * LPFN_WSAEVENTSELECT)( |
IN SOCKET s, | | IN SOCKET s, |
IN WSAEVENT hEventObject, | | IN WSAEVENT hEventObject, |
IN long lNetworkEvents | | IN long lNetworkEvents |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
BOOL | | BOOL |
WSAAPI | | WSAAPI |
WSAGetOverlappedResult( | | WSAGetOverlappedResult( |
IN SOCKET s, | | IN SOCKET s, |
IN LPWSAOVERLAPPED lpOverlapped, | | IN LPWSAOVERLAPPED lpOverlapped, |
OUT LPDWORD lpcbTransfer, | | OUT LPDWORD lpcbTransfer, |
IN BOOL fWait, | | IN BOOL fWait, |
OUT LPDWORD lpdwFlags | | OUT LPDWORD lpdwFlags |
); | | ); |
| | |
skipping to change at line 2806 | | skipping to change at line 2774 |
(WSAAPI * LPFN_WSAGETOVERLAPPEDRESULT)( | | (WSAAPI * LPFN_WSAGETOVERLAPPEDRESULT)( |
IN SOCKET s, | | IN SOCKET s, |
IN LPWSAOVERLAPPED lpOverlapped, | | IN LPWSAOVERLAPPED lpOverlapped, |
OUT LPDWORD lpcbTransfer, | | OUT LPDWORD lpcbTransfer, |
IN BOOL fWait, | | IN BOOL fWait, |
OUT LPDWORD lpdwFlags | | OUT LPDWORD lpdwFlags |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
BOOL | | BOOL |
WSAAPI | | WSAAPI |
WSAGetQOSByName( | | WSAGetQOSByName( |
IN SOCKET s, | | IN SOCKET s, |
IN LPWSABUF lpQOSName, | | IN LPWSABUF lpQOSName, |
OUT LPQOS lpQOS | | OUT LPQOS lpQOS |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
| | |
skipping to change at line 2827 | | skipping to change at line 2796 |
typedef | | typedef |
BOOL | | BOOL |
(WSAAPI * LPFN_WSAGETQOSBYNAME)( | | (WSAAPI * LPFN_WSAGETQOSBYNAME)( |
IN SOCKET s, | | IN SOCKET s, |
IN LPWSABUF lpQOSName, | | IN LPWSABUF lpQOSName, |
OUT LPQOS lpQOS | | OUT LPQOS lpQOS |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSAHtonl( | | WSAHtonl( |
|
IN SOCKET s, | | __in IN SOCKET s, |
IN u_long hostlong, | | __in IN u_long hostlong, |
OUT u_long FAR * lpnetlong | | __out OUT u_long FAR * lpnetlong |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSAHTONL)( | | (WSAAPI * LPFN_WSAHTONL)( |
IN SOCKET s, | | IN SOCKET s, |
IN u_long hostlong, | | IN u_long hostlong, |
OUT u_long FAR * lpnetlong | | OUT u_long FAR * lpnetlong |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSAHtons( | | WSAHtons( |
|
IN SOCKET s, | | __in IN SOCKET s, |
IN u_short hostshort, | | __in IN u_short hostshort, |
OUT u_short FAR * lpnetshort | | __out OUT u_short FAR * lpnetshort |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSAHTONS)( | | (WSAAPI * LPFN_WSAHTONS)( |
IN SOCKET s, | | IN SOCKET s, |
IN u_short hostshort, | | IN u_short hostshort, |
OUT u_short FAR * lpnetshort | | OUT u_short FAR * lpnetshort |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSAIoctl( | | WSAIoctl( |
IN SOCKET s, | | IN SOCKET s, |
IN DWORD dwIoControlCode, | | IN DWORD dwIoControlCode, |
|
IN LPVOID lpvInBuffer, | | __in_bcount_opt(cbInBuffer) LPVOID lpvInBuffer, |
IN DWORD cbInBuffer, | | IN DWORD cbInBuffer, |
|
OUT LPVOID lpvOutBuffer, | | __out_bcount_part_opt(cbOutBuffer, *lpcbBytesReturned) LPVOID lpvOutBuffer, |
IN DWORD cbOutBuffer, | | IN DWORD cbOutBuffer, |
|
OUT LPDWORD lpcbBytesReturned, | | __out LPDWORD lpcbBytesReturned, |
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSAIOCTL)( | | (WSAAPI * LPFN_WSAIOCTL)( |
IN SOCKET s, | | IN SOCKET s, |
IN DWORD dwIoControlCode, | | IN DWORD dwIoControlCode, |
|
IN LPVOID lpvInBuffer, | | __in_bcount_opt(cbInBuffer) LPVOID lpvInBuffer, |
IN DWORD cbInBuffer, | | IN DWORD cbInBuffer, |
|
OUT LPVOID lpvOutBuffer, | | __out_bcount_part_opt(cbOutBuffer, *lpcbBytesReturned) LPVOID lpvOutBuffer, |
IN DWORD cbOutBuffer, | | IN DWORD cbOutBuffer, |
|
OUT LPDWORD lpcbBytesReturned, | | __out LPDWORD lpcbBytesReturned, |
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
SOCKET | | SOCKET |
WSAAPI | | WSAAPI |
WSAJoinLeaf( | | WSAJoinLeaf( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const struct sockaddr FAR * name, | | __in_bcount(namelen) const struct sockaddr FAR * name, |
IN int namelen, | | IN int namelen, |
|
IN LPWSABUF lpCallerData, | | __in_opt LPWSABUF lpCallerData, |
OUT LPWSABUF lpCalleeData, | | __out_opt LPWSABUF lpCalleeData, |
IN LPQOS lpSQOS, | | __in_opt LPQOS lpSQOS, |
IN LPQOS lpGQOS, | | __in_opt LPQOS lpGQOS, |
IN DWORD dwFlags | | IN DWORD dwFlags |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
SOCKET | | SOCKET |
(WSAAPI * LPFN_WSAJOINLEAF)( | | (WSAAPI * LPFN_WSAJOINLEAF)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN const struct sockaddr FAR * name, | | __in_bcount(namelen) const struct sockaddr FAR * name, |
IN int namelen, | | IN int namelen, |
|
IN LPWSABUF lpCallerData, | | __in_opt LPWSABUF lpCallerData, |
OUT LPWSABUF lpCalleeData, | | __out_opt LPWSABUF lpCalleeData, |
IN LPQOS lpSQOS, | | __in_opt LPQOS lpSQOS, |
IN LPQOS lpGQOS, | | __in_opt LPQOS lpGQOS, |
IN DWORD dwFlags | | IN DWORD dwFlags |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSANtohl( | | WSANtohl( |
|
IN SOCKET s, | | __in IN SOCKET s, |
IN u_long netlong, | | __in IN u_long netlong, |
OUT u_long FAR * lphostlong | | __out OUT u_long FAR * lphostlong |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSANTOHL)( | | (WSAAPI * LPFN_WSANTOHL)( |
IN SOCKET s, | | IN SOCKET s, |
IN u_long netlong, | | IN u_long netlong, |
OUT u_long FAR * lphostlong | | OUT u_long FAR * lphostlong |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSANtohs( | | WSANtohs( |
|
IN SOCKET s, | | __in IN SOCKET s, |
IN u_short netshort, | | __in IN u_short netshort, |
OUT u_short FAR * lphostshort | | __out OUT u_short FAR * lphostshort |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSANTOHS)( | | (WSAAPI * LPFN_WSANTOHS)( |
IN SOCKET s, | | IN SOCKET s, |
IN u_short netshort, | | IN u_short netshort, |
OUT u_short FAR * lphostshort | | OUT u_short FAR * lphostshort |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSARecv( | | WSARecv( |
IN SOCKET s, | | IN SOCKET s, |
|
IN OUT LPWSABUF lpBuffers, | | __in_ecount(dwBufferCount) __out_data_source(NETWORK) LPWSABUF lpBuffers, |
IN DWORD dwBufferCount, | | IN DWORD dwBufferCount, |
|
OUT LPDWORD lpNumberOfBytesRecvd, | | __out_opt LPDWORD lpNumberOfBytesRecvd, |
IN OUT LPDWORD lpFlags, | | IN OUT LPDWORD lpFlags, |
|
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSARECV)( | | (WSAAPI * LPFN_WSARECV)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN OUT LPWSABUF lpBuffers, | | __in_ecount(dwBufferCount) LPWSABUF lpBuffers, |
IN DWORD dwBufferCount, | | IN DWORD dwBufferCount, |
|
OUT LPDWORD lpNumberOfBytesRecvd, | | __out_opt LPDWORD lpNumberOfBytesRecvd, |
IN OUT LPDWORD lpFlags, | | IN OUT LPDWORD lpFlags, |
|
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSARecvDisconnect( | | WSARecvDisconnect( |
IN SOCKET s, | | IN SOCKET s, |
|
OUT LPWSABUF lpInboundDisconnectData | | OUT __out_data_source(NETWORK) LPWSABUF lpInboundDisconnectData |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSARECVDISCONNECT)( | | (WSAAPI * LPFN_WSARECVDISCONNECT)( |
IN SOCKET s, | | IN SOCKET s, |
OUT LPWSABUF lpInboundDisconnectData | | OUT LPWSABUF lpInboundDisconnectData |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSARecvFrom( | | WSARecvFrom( |
IN SOCKET s, | | IN SOCKET s, |
|
IN OUT LPWSABUF lpBuffers, | | __in_ecount(dwBufferCount) __out_data_source(NETWORK) LPWSABUF lpBuffers, |
IN DWORD dwBufferCount, | | IN DWORD dwBufferCount, |
|
OUT LPDWORD lpNumberOfBytesRecvd, | | __out_opt LPDWORD lpNumberOfBytesRecvd, |
IN OUT LPDWORD lpFlags, | | IN OUT LPDWORD lpFlags, |
|
OUT struct sockaddr FAR * lpFrom, | | __out_bcount_part_opt(*lpFromlen,*lpFromLen) struct sockaddr FAR * lpFrom, |
IN OUT LPINT lpFromlen, | | __inout_opt LPINT lpFromlen, |
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSARECVFROM)( | | (WSAAPI * LPFN_WSARECVFROM)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN OUT LPWSABUF lpBuffers, | | __in_ecount(dwBufferCount) LPWSABUF lpBuffers, |
IN DWORD dwBufferCount, | | IN DWORD dwBufferCount, |
|
OUT LPDWORD lpNumberOfBytesRecvd, | | __out_opt LPDWORD lpNumberOfBytesRecvd, |
IN OUT LPDWORD lpFlags, | | IN OUT LPDWORD lpFlags, |
|
OUT struct sockaddr FAR * lpFrom, | | __out_bcount_part_opt(*lpFromlen,*lpFromLen) struct sockaddr FAR * lpFrom, |
IN OUT LPINT lpFromlen, | | __inout_opt LPINT lpFromlen, |
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
BOOL | | BOOL |
WSAAPI | | WSAAPI |
WSAResetEvent( | | WSAResetEvent( |
IN WSAEVENT hEvent | | IN WSAEVENT hEvent |
); | | ); |
| | |
skipping to change at line 3078 | | skipping to change at line 3051 |
IN WSAEVENT hEvent | | IN WSAEVENT hEvent |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSASend( | | WSASend( |
IN SOCKET s, | | IN SOCKET s, |
|
IN LPWSABUF lpBuffers, | | __in_ecount(dwBufferCount) LPWSABUF lpBuffers, |
IN DWORD dwBufferCount, | | IN DWORD dwBufferCount, |
|
OUT LPDWORD lpNumberOfBytesSent, | | __out_opt LPDWORD lpNumberOfBytesSent, |
IN DWORD dwFlags, | | IN DWORD dwFlags, |
|
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSASEND)( | | (WSAAPI * LPFN_WSASEND)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN LPWSABUF lpBuffers, | | __in_ecount(dwBufferCount) LPWSABUF lpBuffers, |
IN DWORD dwBufferCount, | | IN DWORD dwBufferCount, |
|
OUT LPDWORD lpNumberOfBytesSent, | | __out_opt LPDWORD lpNumberOfBytesSent, |
IN DWORD dwFlags, | | IN DWORD dwFlags, |
|
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0600) |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
|
| | WSASendMsg( |
| | IN SOCKET Handle, |
| | IN LPWSAMSG lpMsg, |
| | IN DWORD dwFlags, |
| | __out_opt LPDWORD lpNumberOfBytesSent, |
| | __in_opt LPWSAOVERLAPPED lpOverlapped, |
| | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
| | ); |
| | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | #endif // (_WIN32_WINNT >= 0x0600) |
| | |
| | #if INCL_WINSOCK_API_PROTOTYPES |
| | __control_entrypoint(DllExport) |
| | WINSOCK_API_LINKAGE |
| | int |
| | WSAAPI |
WSASendDisconnect( | | WSASendDisconnect( |
IN SOCKET s, | | IN SOCKET s, |
IN LPWSABUF lpOutboundDisconnectData | | IN LPWSABUF lpOutboundDisconnectData |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSASENDDISCONNECT)( | | (WSAAPI * LPFN_WSASENDDISCONNECT)( |
| | |
skipping to change at line 3126 | | skipping to change at line 3116 |
IN LPWSABUF lpOutboundDisconnectData | | IN LPWSABUF lpOutboundDisconnectData |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
int | | int |
WSAAPI | | WSAAPI |
WSASendTo( | | WSASendTo( |
IN SOCKET s, | | IN SOCKET s, |
|
IN LPWSABUF lpBuffers, | | __in_ecount(dwBufferCount) LPWSABUF lpBuffers, |
IN DWORD dwBufferCount, | | IN DWORD dwBufferCount, |
|
OUT LPDWORD lpNumberOfBytesSent, | | __out_opt LPDWORD lpNumberOfBytesSent, |
IN DWORD dwFlags, | | IN DWORD dwFlags, |
|
IN const struct sockaddr FAR * lpTo, | | __in_bcount(iTolen) const struct sockaddr FAR * lpTo, |
IN int iTolen, | | IN int iTolen, |
|
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
int | | int |
(WSAAPI * LPFN_WSASENDTO)( | | (WSAAPI * LPFN_WSASENDTO)( |
IN SOCKET s, | | IN SOCKET s, |
|
IN LPWSABUF lpBuffers, | | __in_ecount(dwBufferCount) LPWSABUF lpBuffers, |
IN DWORD dwBufferCount, | | IN DWORD dwBufferCount, |
|
OUT LPDWORD lpNumberOfBytesSent, | | __out_opt LPDWORD lpNumberOfBytesSent, |
IN DWORD dwFlags, | | IN DWORD dwFlags, |
|
IN const struct sockaddr FAR * lpTo, | | __in_bcount(iTolen) const struct sockaddr FAR * lpTo, |
IN int iTolen, | | IN int iTolen, |
|
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
BOOL | | BOOL |
WSAAPI | | WSAAPI |
WSASetEvent( | | WSASetEvent( |
IN WSAEVENT hEvent | | IN WSAEVENT hEvent |
); | | ); |
| | |
skipping to change at line 3171 | | skipping to change at line 3161 |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
BOOL | | BOOL |
(WSAAPI * LPFN_WSASETEVENT)( | | (WSAAPI * LPFN_WSASETEVENT)( |
IN WSAEVENT hEvent | | IN WSAEVENT hEvent |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
SOCKET | | SOCKET |
WSAAPI | | WSAAPI |
WSASocketA( | | WSASocketA( |
IN int af, | | IN int af, |
IN int type, | | IN int type, |
IN int protocol, | | IN int protocol, |
IN LPWSAPROTOCOL_INFOA lpProtocolInfo, | | IN LPWSAPROTOCOL_INFOA lpProtocolInfo, |
IN GROUP g, | | IN GROUP g, |
IN DWORD dwFlags | | IN DWORD dwFlags |
); | | ); |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
SOCKET | | SOCKET |
WSAAPI | | WSAAPI |
WSASocketW( | | WSASocketW( |
IN int af, | | IN int af, |
IN int type, | | IN int type, |
IN int protocol, | | IN int protocol, |
IN LPWSAPROTOCOL_INFOW lpProtocolInfo, | | IN LPWSAPROTOCOL_INFOW lpProtocolInfo, |
IN GROUP g, | | IN GROUP g, |
IN DWORD dwFlags | | IN DWORD dwFlags |
| | |
skipping to change at line 3258 | | skipping to change at line 3250 |
IN DWORD dwTimeout, | | IN DWORD dwTimeout, |
IN BOOL fAlertable | | IN BOOL fAlertable |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAAddressToStringA( | | WSAAddressToStringA( |
|
IN LPSOCKADDR lpsaAddress, | | __in_bcount(dwAddressLength) LPSOCKADDR lpsaAddress, |
IN DWORD dwAddressLength, | | IN DWORD dwAddressLength, |
|
IN LPWSAPROTOCOL_INFOA lpProtocolInfo, | | __in_opt LPWSAPROTOCOL_INFOA lpProtocolInfo, |
IN OUT LPSTR lpszAddressString, | | __out_ecount_part(*lpdwAddressStringLength,*lpdwAddressStringLength) LPSTR l |
IN OUT LPDWORD lpdwAddressStringLength | | pszAddressString, |
| | __inout LPDWORD lpdwAddressStringLength |
); | | ); |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAAddressToStringW( | | WSAAddressToStringW( |
|
IN LPSOCKADDR lpsaAddress, | | __in_bcount(dwAddressLength) LPSOCKADDR lpsaAddress, |
IN DWORD dwAddressLength, | | IN DWORD dwAddressLength, |
|
IN LPWSAPROTOCOL_INFOW lpProtocolInfo, | | __in_opt LPWSAPROTOCOL_INFOW lpProtocolInfo, |
IN OUT LPWSTR lpszAddressString, | | __out_ecount_part(*lpdwAddressStringLength,*lpdwAddressStringLength) LPWSTR |
IN OUT LPDWORD lpdwAddressStringLength | | lpszAddressString, |
| | __inout LPDWORD lpdwAddressStringLength |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSAAddressToString WSAAddressToStringW | | #define WSAAddressToString WSAAddressToStringW |
#else | | #else |
#define WSAAddressToString WSAAddressToStringA | | #define WSAAddressToString WSAAddressToStringA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSAADDRESSTOSTRINGA)( | | (WSAAPI * LPFN_WSAADDRESSTOSTRINGA)( |
|
IN LPSOCKADDR lpsaAddress, | | __in_bcount(dwAddressLength) LPSOCKADDR lpsaAddress, |
IN DWORD dwAddressLength, | | IN DWORD dwAddressLength, |
|
IN LPWSAPROTOCOL_INFOA lpProtocolInfo, | | __in_opt LPWSAPROTOCOL_INFOA lpProtocolInfo, |
IN OUT LPSTR lpszAddressString, | | __out_ecount_part(*lpdwAddressStringLength,*lpdwAddressStringLength) LPSTR l |
IN OUT LPDWORD lpdwAddressStringLength | | pszAddressString, |
| | __inout LPDWORD lpdwAddressStringLength |
); | | ); |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSAADDRESSTOSTRINGW)( | | (WSAAPI * LPFN_WSAADDRESSTOSTRINGW)( |
|
IN LPSOCKADDR lpsaAddress, | | __in_bcount(dwAddressLength) LPSOCKADDR lpsaAddress, |
IN DWORD dwAddressLength, | | IN DWORD dwAddressLength, |
|
IN LPWSAPROTOCOL_INFOW lpProtocolInfo, | | __in_opt LPWSAPROTOCOL_INFOW lpProtocolInfo, |
IN OUT LPWSTR lpszAddressString, | | __out_ecount_part(*lpdwAddressStringLength,*lpdwAddressStringLength) LPWSTR |
IN OUT LPDWORD lpdwAddressStringLength | | lpszAddressString, |
| | __inout LPDWORD lpdwAddressStringLength |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSAADDRESSTOSTRING LPFN_WSAADDRESSTOSTRINGW | | #define LPFN_WSAADDRESSTOSTRING LPFN_WSAADDRESSTOSTRINGW |
#else | | #else |
#define LPFN_WSAADDRESSTOSTRING LPFN_WSAADDRESSTOSTRINGA | | #define LPFN_WSAADDRESSTOSTRING LPFN_WSAADDRESSTOSTRINGA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAStringToAddressA( | | WSAStringToAddressA( |
|
IN LPSTR AddressString, | | __in LPSTR AddressString, |
IN INT AddressFamily, | | IN INT AddressFamily, |
|
IN LPWSAPROTOCOL_INFOA lpProtocolInfo, | | __in_opt LPWSAPROTOCOL_INFOA lpProtocolInfo, |
OUT LPSOCKADDR lpAddress, | | __out_bcount_part(*lpAddressLength,*lpAddressLength) LPSOCKADDR lpAddress, |
IN OUT LPINT lpAddressLength | | __inout LPINT lpAddressLength |
); | | ); |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAStringToAddressW( | | WSAStringToAddressW( |
|
IN LPWSTR AddressString, | | __in LPWSTR AddressString, |
IN INT AddressFamily, | | IN INT AddressFamily, |
|
IN LPWSAPROTOCOL_INFOW lpProtocolInfo, | | __in_opt LPWSAPROTOCOL_INFOW lpProtocolInfo, |
OUT LPSOCKADDR lpAddress, | | __out_bcount_part(*lpAddressLength,*lpAddressLength) LPSOCKADDR lpAddress, |
IN OUT LPINT lpAddressLength | | __inout LPINT lpAddressLength |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSAStringToAddress WSAStringToAddressW | | #define WSAStringToAddress WSAStringToAddressW |
#else | | #else |
#define WSAStringToAddress WSAStringToAddressA | | #define WSAStringToAddress WSAStringToAddressA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSASTRINGTOADDRESSA)( | | (WSAAPI * LPFN_WSASTRINGTOADDRESSA)( |
|
IN LPSTR AddressString, | | __in LPSTR AddressString, |
IN INT AddressFamily, | | IN INT AddressFamily, |
|
IN LPWSAPROTOCOL_INFOA lpProtocolInfo, | | __in_opt LPWSAPROTOCOL_INFOA lpProtocolInfo, |
OUT LPSOCKADDR lpAddress, | | __out_bcount_part(*lpAddressLength,*lpAddressLength) LPSOCKADDR lpAddress, |
IN OUT LPINT lpAddressLength | | __inout LPINT lpAddressLength |
); | | ); |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSASTRINGTOADDRESSW)( | | (WSAAPI * LPFN_WSASTRINGTOADDRESSW)( |
|
IN LPWSTR AddressString, | | __in LPWSTR AddressString, |
IN INT AddressFamily, | | IN INT AddressFamily, |
|
IN LPWSAPROTOCOL_INFOW lpProtocolInfo, | | __in_opt LPWSAPROTOCOL_INFOW lpProtocolInfo, |
OUT LPSOCKADDR lpAddress, | | __out_bcount_part(*lpAddressLength,*lpAddressLength) LPSOCKADDR lpAddress, |
IN OUT LPINT lpAddressLength | | __inout LPINT lpAddressLength |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSASTRINGTOADDRESS LPFN_WSASTRINGTOADDRESSW | | #define LPFN_WSASTRINGTOADDRESS LPFN_WSASTRINGTOADDRESSW |
#else | | #else |
#define LPFN_WSASTRINGTOADDRESS LPFN_WSASTRINGTOADDRESSA | | #define LPFN_WSASTRINGTOADDRESS LPFN_WSASTRINGTOADDRESSA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
/* Registration and Name Resolution API functions */ | | /* Registration and Name Resolution API functions */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSALookupServiceBeginA( | | WSALookupServiceBeginA( |
|
IN LPWSAQUERYSETA lpqsRestrictions, | | __in LPWSAQUERYSETA lpqsRestrictions, |
IN DWORD dwControlFlags, | | __in DWORD dwControlFlags, |
OUT LPHANDLE lphLookup | | __out LPHANDLE lphLookup |
); | | ); |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSALookupServiceBeginW( | | WSALookupServiceBeginW( |
|
IN LPWSAQUERYSETW lpqsRestrictions, | | __in LPWSAQUERYSETW lpqsRestrictions, |
IN DWORD dwControlFlags, | | __in DWORD dwControlFlags, |
OUT LPHANDLE lphLookup | | __out LPHANDLE lphLookup |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSALookupServiceBegin WSALookupServiceBeginW | | #define WSALookupServiceBegin WSALookupServiceBeginW |
#else | | #else |
#define WSALookupServiceBegin WSALookupServiceBeginA | | #define WSALookupServiceBegin WSALookupServiceBeginA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
| | |
skipping to change at line 3410 | | skipping to change at line 3404 |
OUT LPHANDLE lphLookup | | OUT LPHANDLE lphLookup |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSALOOKUPSERVICEBEGIN LPFN_WSALOOKUPSERVICEBEGINW | | #define LPFN_WSALOOKUPSERVICEBEGIN LPFN_WSALOOKUPSERVICEBEGINW |
#else | | #else |
#define LPFN_WSALOOKUPSERVICEBEGIN LPFN_WSALOOKUPSERVICEBEGINA | | #define LPFN_WSALOOKUPSERVICEBEGIN LPFN_WSALOOKUPSERVICEBEGINA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSALookupServiceNextA( | | WSALookupServiceNextA( |
|
IN HANDLE hLookup, | | __in HANDLE hLookup, |
IN DWORD dwControlFlags, | | __in DWORD dwControlFlags, |
IN OUT LPDWORD lpdwBufferLength, | | __inout LPDWORD lpdwBufferLength, |
OUT LPWSAQUERYSETA lpqsResults | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSAQUERYSETA lpqsRe |
| | sults |
); | | ); |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSALookupServiceNextW( | | WSALookupServiceNextW( |
|
IN HANDLE hLookup, | | __in HANDLE hLookup, |
IN DWORD dwControlFlags, | | __in DWORD dwControlFlags, |
IN OUT LPDWORD lpdwBufferLength, | | __inout LPDWORD lpdwBufferLength, |
OUT LPWSAQUERYSETW lpqsResults | | __out_bcount_part_opt(*lpdwBufferLength,*lpdwBufferLength) LPWSAQUERYSETW lp |
| | qsResults |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSALookupServiceNext WSALookupServiceNextW | | #define WSALookupServiceNext WSALookupServiceNextW |
#else | | #else |
#define WSALookupServiceNext WSALookupServiceNextA | | #define WSALookupServiceNext WSALookupServiceNextA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSALOOKUPSERVICENEXTA)( | | (WSAAPI * LPFN_WSALOOKUPSERVICENEXTA)( |
IN HANDLE hLookup, | | IN HANDLE hLookup, |
IN DWORD dwControlFlags, | | IN DWORD dwControlFlags, |
|
IN OUT LPDWORD lpdwBufferLength, | | __inout LPDWORD lpdwBufferLength, |
OUT LPWSAQUERYSETA lpqsResults | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSAQUERYSETA lpqs |
| | Results |
); | | ); |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSALOOKUPSERVICENEXTW)( | | (WSAAPI * LPFN_WSALOOKUPSERVICENEXTW)( |
IN HANDLE hLookup, | | IN HANDLE hLookup, |
IN DWORD dwControlFlags, | | IN DWORD dwControlFlags, |
|
IN OUT LPDWORD lpdwBufferLength, | | __inout LPDWORD lpdwBufferLength, |
OUT LPWSAQUERYSETW lpqsResults | | __out_bcount_part_opt(*lpdwBufferLength,*lpdwBufferLength) LPWSAQUERYSETW |
| | lpqsResults |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSALOOKUPSERVICENEXT LPFN_WSALOOKUPSERVICENEXTW | | #define LPFN_WSALOOKUPSERVICENEXT LPFN_WSALOOKUPSERVICENEXTW |
#else | | #else |
#define LPFN_WSALOOKUPSERVICENEXT LPFN_WSALOOKUPSERVICENEXTA | | #define LPFN_WSALOOKUPSERVICENEXT LPFN_WSALOOKUPSERVICENEXTA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0501) |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSANSPIoctl( | | WSANSPIoctl( |
|
IN HANDLE hLookup, | | __in HANDLE hLookup, |
IN DWORD dwControlCode, | | __in DWORD dwControlCode, |
IN LPVOID lpvInBuffer, | | __in_bcount_opt(cbInBuffer) LPVOID lpvInBuffer, |
IN DWORD cbInBuffer, | | __in DWORD cbInBuffer, |
OUT LPVOID lpvOutBuffer, | | __out_bcount_part_opt(cbOutBuffer, *lpcbBytesReturned) LPVOID lpvOutBuffer, |
IN DWORD cbOutBuffer, | | __in DWORD cbOutBuffer, |
OUT LPDWORD lpcbBytesReturned, | | __out LPDWORD lpcbBytesReturned, |
IN LPWSACOMPLETION lpCompletion | | __in_opt LPWSACOMPLETION lpCompletion |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSANSPIOCTL)( | | (WSAAPI * LPFN_WSANSPIOCTL)( |
IN HANDLE hLookup, | | IN HANDLE hLookup, |
IN DWORD dwControlCode, | | IN DWORD dwControlCode, |
|
IN LPVOID lpvInBuffer, | | __in_bcount_opt(cbInBuffer) LPVOID lpvInBuffer, |
IN DWORD cbInBuffer, | | IN DWORD cbInBuffer, |
|
OUT LPVOID lpvOutBuffer, | | __out_bcount_part_opt(cbOutBuffer, *lpcbBytesReturned) LPVOID lpvOutBuffer, |
IN DWORD cbOutBuffer, | | IN DWORD cbOutBuffer, |
|
OUT LPDWORD lpcbBytesReturned, | | __out LPDWORD lpcbBytesReturned, |
IN LPWSACOMPLETION lpCompletion | | __in_opt LPWSACOMPLETION lpCompletion |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
WINSOCK_API_LINKAGE | | __control_entrypoint(DllExport) WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSALookupServiceEnd( | | WSALookupServiceEnd( |
|
IN HANDLE hLookup | | __in HANDLE hLookup |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSALOOKUPSERVICEEND)( | | (WSAAPI * LPFN_WSALOOKUPSERVICEEND)( |
IN HANDLE hLookup | | IN HANDLE hLookup |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAInstallServiceClassA( | | WSAInstallServiceClassA( |
IN LPWSASERVICECLASSINFOA lpServiceClassInfo | | IN LPWSASERVICECLASSINFOA lpServiceClassInfo |
); | | ); |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAInstallServiceClassW( | | WSAInstallServiceClassW( |
IN LPWSASERVICECLASSINFOW lpServiceClassInfo | | IN LPWSASERVICECLASSINFOW lpServiceClassInfo |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSAInstallServiceClass WSAInstallServiceClassW | | #define WSAInstallServiceClass WSAInstallServiceClassW |
#else | | #else |
#define WSAInstallServiceClass WSAInstallServiceClassA | | #define WSAInstallServiceClass WSAInstallServiceClassA |
| | |
skipping to change at line 3546 | | skipping to change at line 3545 |
IN LPWSASERVICECLASSINFOW lpServiceClassInfo | | IN LPWSASERVICECLASSINFOW lpServiceClassInfo |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSAINSTALLSERVICECLASS LPFN_WSAINSTALLSERVICECLASSW | | #define LPFN_WSAINSTALLSERVICECLASS LPFN_WSAINSTALLSERVICECLASSW |
#else | | #else |
#define LPFN_WSAINSTALLSERVICECLASS LPFN_WSAINSTALLSERVICECLASSA | | #define LPFN_WSAINSTALLSERVICECLASS LPFN_WSAINSTALLSERVICECLASSA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSARemoveServiceClass( | | WSARemoveServiceClass( |
IN LPGUID lpServiceClassId | | IN LPGUID lpServiceClassId |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
| | |
skipping to change at line 3569 | | skipping to change at line 3569 |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAGetServiceClassInfoA( | | WSAGetServiceClassInfoA( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN LPGUID lpServiceClassId, | | IN LPGUID lpServiceClassId, |
|
IN OUT LPDWORD lpdwBufSize, | | __inout LPDWORD lpdwBufSize, |
OUT LPWSASERVICECLASSINFOA lpServiceClassInfo | | __out_bcount_part(*lpdwBufSize,*lpdwBufSize) LPWSASERVICECLASSINFOA lpServic |
| | eClassInfo |
); | | ); |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAGetServiceClassInfoW( | | WSAGetServiceClassInfoW( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN LPGUID lpServiceClassId, | | IN LPGUID lpServiceClassId, |
|
IN OUT LPDWORD lpdwBufSize, | | __inout LPDWORD lpdwBufSize, |
OUT LPWSASERVICECLASSINFOW lpServiceClassInfo | | __out_bcount_part(*lpdwBufSize,*lpdwBufSize) LPWSASERVICECLASSINFOW lpServic |
| | eClassInfo |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSAGetServiceClassInfo WSAGetServiceClassInfoW | | #define WSAGetServiceClassInfo WSAGetServiceClassInfoW |
#else | | #else |
#define WSAGetServiceClassInfo WSAGetServiceClassInfoA | | #define WSAGetServiceClassInfo WSAGetServiceClassInfoA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSAGETSERVICECLASSINFOA)( | | (WSAAPI * LPFN_WSAGETSERVICECLASSINFOA)( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN LPGUID lpServiceClassId, | | IN LPGUID lpServiceClassId, |
|
IN OUT LPDWORD lpdwBufSize, | | __inout LPDWORD lpdwBufSize, |
OUT LPWSASERVICECLASSINFOA lpServiceClassInfo | | __out_bcount_part(*lpdwBufSize,*lpdwBufSize) LPWSASERVICECLASSINFOA lpServic |
| | eClassInfo |
); | | ); |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSAGETSERVICECLASSINFOW)( | | (WSAAPI * LPFN_WSAGETSERVICECLASSINFOW)( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN LPGUID lpServiceClassId, | | IN LPGUID lpServiceClassId, |
|
IN OUT LPDWORD lpdwBufSize, | | __inout LPDWORD lpdwBufSize, |
OUT LPWSASERVICECLASSINFOW lpServiceClassInfo | | __out_bcount_part(*lpdwBufSize,*lpdwBufSize) LPWSASERVICECLASSINFOW lpServic |
| | eClassInfo |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSAGETSERVICECLASSINFO LPFN_WSAGETSERVICECLASSINFOW | | #define LPFN_WSAGETSERVICECLASSINFO LPFN_WSAGETSERVICECLASSINFOW |
#else | | #else |
#define LPFN_WSAGETSERVICECLASSINFO LPFN_WSAGETSERVICECLASSINFOA | | #define LPFN_WSAGETSERVICECLASSINFO LPFN_WSAGETSERVICECLASSINFOA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAEnumNameSpaceProvidersA( | | WSAEnumNameSpaceProvidersA( |
|
IN OUT LPDWORD lpdwBufferLength, | | __inout LPDWORD lpdwBufferLength, |
OUT LPWSANAMESPACE_INFOA lpnspBuffer | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSANAMESPACE_INFOA |
| | lpnspBuffer |
); | | ); |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAEnumNameSpaceProvidersW( | | WSAEnumNameSpaceProvidersW( |
|
IN OUT LPDWORD lpdwBufferLength, | | __inout LPDWORD lpdwBufferLength, |
OUT LPWSANAMESPACE_INFOW lpnspBuffer | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSANAMESPACE_INFOW |
| | lpnspBuffer |
); | | ); |
|
| | |
#ifdef UNICODE | | #ifdef UNICODE |
|
#define WSAEnumNameSpaceProviders WSAEnumNameSpaceProvidersW | | #define WSAEnumNameSpaceProviders WSAEnumNameSpaceProvidersW |
#else | | #else |
|
#define WSAEnumNameSpaceProviders WSAEnumNameSpaceProvidersA | | #define WSAEnumNameSpaceProviders WSAEnumNameSpaceProvidersA |
| | #endif /* !UNICODE */ |
| | |
| | #if(_WIN32_WINNT >= 0x0600 ) |
| | WINSOCK_API_LINKAGE |
| | INT |
| | WSAAPI |
| | WSAEnumNameSpaceProvidersExA( |
| | __inout LPDWORD lpdwBufferLength, |
| | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSANAMESPACE_INFOEX |
| | A lpnspBuffer |
| | ); |
| | WINSOCK_API_LINKAGE |
| | INT |
| | WSAAPI |
| | WSAEnumNameSpaceProvidersExW( |
| | __inout LPDWORD lpdwBufferLength, |
| | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSANAMESPACE_INFOEX |
| | W lpnspBuffer |
| | ); |
| | |
| | #ifdef UNICODE |
| | #define WSAEnumNameSpaceProvidersEx WSAEnumNameSpaceProvidersExW |
| | #else |
| | #define WSAEnumNameSpaceProvidersEx WSAEnumNameSpaceProvidersExA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
|
| | |
| | #endif //(_WIN32_WINNT >= 0x0600 ) |
| | |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSAENUMNAMESPACEPROVIDERSA)( | | (WSAAPI * LPFN_WSAENUMNAMESPACEPROVIDERSA)( |
|
IN OUT LPDWORD lpdwBufferLength, | | __inout LPDWORD lpdwBufferLength, |
OUT LPWSANAMESPACE_INFOA lpnspBuffer | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSANAMESPACE_INFOA |
| | lpnspBuffer |
); | | ); |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSAENUMNAMESPACEPROVIDERSW)( | | (WSAAPI * LPFN_WSAENUMNAMESPACEPROVIDERSW)( |
|
IN OUT LPDWORD lpdwBufferLength, | | __inout LPDWORD lpdwBufferLength, |
OUT LPWSANAMESPACE_INFOW lpnspBuffer | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSANAMESPACE_INFOW |
| | lpnspBuffer |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSAENUMNAMESPACEPROVIDERS LPFN_WSAENUMNAMESPACEPROVIDERSW | | #define LPFN_WSAENUMNAMESPACEPROVIDERS LPFN_WSAENUMNAMESPACEPROVIDERSW |
#else | | #else |
#define LPFN_WSAENUMNAMESPACEPROVIDERS LPFN_WSAENUMNAMESPACEPROVIDERSA | | #define LPFN_WSAENUMNAMESPACEPROVIDERS LPFN_WSAENUMNAMESPACEPROVIDERSA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
|
| | |
| | #if (_WIN32_WINNT >= 0x0600) |
| | typedef |
| | INT |
| | (WSAAPI * LPFN_WSAENUMNAMESPACEPROVIDERSEXA)( |
| | __inout LPDWORD lpdwBufferLength, |
| | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSANAMESPACE_INFOEX |
| | A lpnspBuffer |
| | ); |
| | typedef |
| | INT |
| | (WSAAPI * LPFN_WSAENUMNAMESPACEPROVIDERSEXW)( |
| | __inout LPDWORD lpdwBufferLength, |
| | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSANAMESPACE_INFOEX |
| | W lpnspBuffer |
| | ); |
| | #ifdef UNICODE |
| | #define LPFN_WSAENUMNAMESPACEPROVIDERSEX LPFN_WSAENUMNAMESPACEPROVIDERSEXW |
| | #else |
| | #define LPFN_WSAENUMNAMESPACEPROVIDERSEX LPFN_WSAENUMNAMESPACEPROVIDERSEXA |
| | #endif /* !UNICODE */ |
| | |
| | #endif //(_WIN32_WINNT >= 0x600) |
| | |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAGetServiceClassNameByClassIdA( | | WSAGetServiceClassNameByClassIdA( |
|
IN LPGUID lpServiceClassId, | | __in IN LPGUID lpServiceClassId, |
OUT LPSTR lpszServiceClassName, | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPSTR lpszServiceClas |
IN OUT LPDWORD lpdwBufferLength | | sName, |
| | __inout LPDWORD lpdwBufferLength |
); | | ); |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAGetServiceClassNameByClassIdW( | | WSAGetServiceClassNameByClassIdW( |
|
IN LPGUID lpServiceClassId, | | __in IN LPGUID lpServiceClassId, |
OUT LPWSTR lpszServiceClassName, | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSTR lpszServiceCla |
IN OUT LPDWORD lpdwBufferLength | | ssName, |
| | __inout LPDWORD lpdwBufferLength |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSAGetServiceClassNameByClassId WSAGetServiceClassNameByClassIdW | | #define WSAGetServiceClassNameByClassId WSAGetServiceClassNameByClassIdW |
#else | | #else |
#define WSAGetServiceClassNameByClassId WSAGetServiceClassNameByClassIdA | | #define WSAGetServiceClassNameByClassId WSAGetServiceClassNameByClassIdA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSAGETSERVICECLASSNAMEBYCLASSIDA)( | | (WSAAPI * LPFN_WSAGETSERVICECLASSNAMEBYCLASSIDA)( |
IN LPGUID lpServiceClassId, | | IN LPGUID lpServiceClassId, |
|
OUT LPSTR lpszServiceClassName, | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPSTR lpszServiceClas |
IN OUT LPDWORD lpdwBufferLength | | sName, |
| | __inout LPDWORD lpdwBufferLength |
); | | ); |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSAGETSERVICECLASSNAMEBYCLASSIDW)( | | (WSAAPI * LPFN_WSAGETSERVICECLASSNAMEBYCLASSIDW)( |
IN LPGUID lpServiceClassId, | | IN LPGUID lpServiceClassId, |
|
OUT LPWSTR lpszServiceClassName, | | __out_bcount_part(*lpdwBufferLength,*lpdwBufferLength) LPWSTR lpszServiceCla |
IN OUT LPDWORD lpdwBufferLength | | ssName, |
| | __inout LPDWORD lpdwBufferLength |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSAGETSERVICECLASSNAMEBYCLASSID LPFN_WSAGETSERVICECLASSNAMEBYCLASS
IDW | | #define LPFN_WSAGETSERVICECLASSNAMEBYCLASSID LPFN_WSAGETSERVICECLASSNAMEBYCLASS
IDW |
#else | | #else |
#define LPFN_WSAGETSERVICECLASSNAMEBYCLASSID LPFN_WSAGETSERVICECLASSNAMEBYCLASS
IDA | | #define LPFN_WSAGETSERVICECLASSNAMEBYCLASSID LPFN_WSAGETSERVICECLASSNAMEBYCLASS
IDA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSASetServiceA( | | WSASetServiceA( |
IN LPWSAQUERYSETA lpqsRegInfo, | | IN LPWSAQUERYSETA lpqsRegInfo, |
IN WSAESETSERVICEOP essoperation, | | IN WSAESETSERVICEOP essoperation, |
IN DWORD dwControlFlags | | IN DWORD dwControlFlags |
); | | ); |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSASetServiceW( | | WSASetServiceW( |
IN LPWSAQUERYSETW lpqsRegInfo, | | IN LPWSAQUERYSETW lpqsRegInfo, |
IN WSAESETSERVICEOP essoperation, | | IN WSAESETSERVICEOP essoperation, |
IN DWORD dwControlFlags | | IN DWORD dwControlFlags |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define WSASetService WSASetServiceW | | #define WSASetService WSASetServiceW |
| | |
skipping to change at line 3747 | | skipping to change at line 3797 |
IN DWORD dwControlFlags | | IN DWORD dwControlFlags |
); | | ); |
#ifdef UNICODE | | #ifdef UNICODE |
#define LPFN_WSASETSERVICE LPFN_WSASETSERVICEW | | #define LPFN_WSASETSERVICE LPFN_WSASETSERVICEW |
#else | | #else |
#define LPFN_WSASETSERVICE LPFN_WSASETSERVICEA | | #define LPFN_WSASETSERVICE LPFN_WSASETSERVICEA |
#endif /* !UNICODE */ | | #endif /* !UNICODE */ |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
#if INCL_WINSOCK_API_PROTOTYPES | | #if INCL_WINSOCK_API_PROTOTYPES |
|
| | __control_entrypoint(DllExport) |
WINSOCK_API_LINKAGE | | WINSOCK_API_LINKAGE |
INT | | INT |
WSAAPI | | WSAAPI |
WSAProviderConfigChange( | | WSAProviderConfigChange( |
|
IN OUT LPHANDLE lpNotificationHandle, | | __deref_inout_opt LPHANDLE lpNotificationHandle, |
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_PROTOTYPES */ | | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | |
#if INCL_WINSOCK_API_TYPEDEFS | | #if INCL_WINSOCK_API_TYPEDEFS |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPFN_WSAPROVIDERCONFIGCHANGE)( | | (WSAAPI * LPFN_WSAPROVIDERCONFIGCHANGE)( |
|
IN OUT LPHANDLE lpNotificationHandle, | | __deref_inout_opt LPHANDLE lpNotificationHandle, |
IN LPWSAOVERLAPPED lpOverlapped, | | __in_opt LPWSAOVERLAPPED lpOverlapped, |
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine | | __in_opt LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine |
); | | ); |
#endif /* INCL_WINSOCK_API_TYPEDEFS */ | | #endif /* INCL_WINSOCK_API_TYPEDEFS */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0600) |
| | #if INCL_WINSOCK_API_PROTOTYPES |
| | __control_entrypoint(DllExport) |
| | WINSOCK_API_LINKAGE |
| | int |
| | WSAAPI |
| | WSAPoll( |
| | IN OUT LPWSAPOLLFD fdArray, |
| | IN ULONG fds, |
| | IN INT timeout |
| | ); |
| | #endif /* INCL_WINSOCK_API_PROTOTYPES */ |
| | #endif // (_WIN32_WINNT >= 0x0600) |
| | |
/* Microsoft Windows Extended data types */ | | /* Microsoft Windows Extended data types */ |
|
typedef struct sockaddr_in SOCKADDR_IN; | | |
typedef struct sockaddr_in *PSOCKADDR_IN; | | |
typedef struct sockaddr_in FAR *LPSOCKADDR_IN; | | typedef struct sockaddr_in FAR *LPSOCKADDR_IN; |
| | |
typedef struct linger LINGER; | | typedef struct linger LINGER; |
typedef struct linger *PLINGER; | | typedef struct linger *PLINGER; |
typedef struct linger FAR *LPLINGER; | | typedef struct linger FAR *LPLINGER; |
| | |
|
typedef struct in_addr IN_ADDR; | | |
typedef struct in_addr *PIN_ADDR; | | |
typedef struct in_addr FAR *LPIN_ADDR; | | |
| | |
typedef struct fd_set FD_SET; | | typedef struct fd_set FD_SET; |
typedef struct fd_set *PFD_SET; | | typedef struct fd_set *PFD_SET; |
typedef struct fd_set FAR *LPFD_SET; | | typedef struct fd_set FAR *LPFD_SET; |
| | |
typedef struct hostent HOSTENT; | | typedef struct hostent HOSTENT; |
typedef struct hostent *PHOSTENT; | | typedef struct hostent *PHOSTENT; |
typedef struct hostent FAR *LPHOSTENT; | | typedef struct hostent FAR *LPHOSTENT; |
| | |
typedef struct servent SERVENT; | | typedef struct servent SERVENT; |
typedef struct servent *PSERVENT; | | typedef struct servent *PSERVENT; |
| | |
skipping to change at line 3846 | | skipping to change at line 3905 |
#define WSAGETSELECTERROR(lParam) HIWORD(lParam) | | #define WSAGETSELECTERROR(lParam) HIWORD(lParam) |
| | |
#ifdef __cplusplus | | #ifdef __cplusplus |
} | | } |
#endif | | #endif |
| | |
#ifdef _NEED_POPPACK | | #ifdef _NEED_POPPACK |
#include <poppack.h> | | #include <poppack.h> |
#endif | | #endif |
| | |
|
| | #if(_WIN32_WINNT >= 0x0501) |
#ifdef IPV6STRICT | | #ifdef IPV6STRICT |
#include <wsipv6ok.h> | | #include <wsipv6ok.h> |
#endif // IPV6STRICT | | #endif // IPV6STRICT |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
#endif /* _WINSOCK2API_ */ | | #endif /* _WINSOCK2API_ */ |
| | |
End of changes. 247 change blocks. |
583 lines changed or deleted | | 677 lines changed or added |
|
ws2spi.h (5.2.3790.3959-Windows 5.0) | | ws2spi.h (6.0.6002.18005-Windows 6.0) |
|
| | //$TAG BIZDEV |
| | // $IPCategory: |
| | // $DealPointID: 118736 |
| | // $AgreementName: berkeley software distribution license |
| | // $AgreementType: oss license |
| | // $ExternalOrigin: regents of the university of california |
| | //$ENDTAG |
| | |
| | //$TAG ENGR |
| | // $Owner: vadime |
| | // $Module: published_inc |
| | // |
| | //$ENDTAG |
| | |
/* WS2SPI.H -- definitions to be used with the WinSock service provider. | | /* WS2SPI.H -- definitions to be used with the WinSock service provider. |
* | | * |
* Copyright (c) Microsoft Corporation. All rights reserved. | | * Copyright (c) Microsoft Corporation. All rights reserved. |
* | | * |
* This header file corresponds to version 2.2.x of the WinSock SPI | | * This header file corresponds to version 2.2.x of the WinSock SPI |
* specification. | | * specification. |
* | | * |
* This file includes parts which are Copyright (c) 1982-1986 Regents | | * This file includes parts which are Copyright (c) 1982-1986 Regents |
* of the University of California. All rights reserved. The | | * of the University of California. All rights reserved. The |
* Berkeley Software License Agreement specifies the terms and | | * Berkeley Software License Agreement specifies the terms and |
| | |
skipping to change at line 22 | | skipping to change at line 36 |
*/ | | */ |
| | |
#ifndef _WINSOCK2SPI_ | | #ifndef _WINSOCK2SPI_ |
#define _WINSOCK2SPI_ | | #define _WINSOCK2SPI_ |
| | |
#if _MSC_VER > 1000 | | #if _MSC_VER > 1000 |
#pragma once | | #pragma once |
#endif | | #endif |
| | |
/* | | /* |
|
* Ensure structures are packed consistently. | | |
*/ | | |
| | |
#if !defined(_WIN64) | | |
#include <pshpack4.h> | | |
#endif | | |
| | |
/* | | |
* Pull in WINSOCK2.H if necessary | | * Pull in WINSOCK2.H if necessary |
*/ | | */ |
| | |
#ifndef _WINSOCK2API_ | | #ifndef _WINSOCK2API_ |
#include <winsock2.h> | | #include <winsock2.h> |
#endif /* _WINSOCK2API_ */ | | #endif /* _WINSOCK2API_ */ |
| | |
|
| | /* |
| | * Ensure structures are packed consistently. |
| | */ |
| | |
| | #if !defined(_WIN64) |
| | #include <pshpack4.h> |
| | #endif |
| | |
#define WSPDESCRIPTION_LEN 255 | | #define WSPDESCRIPTION_LEN 255 |
| | |
#define WSS_OPERATION_IN_PROGRESS 0x00000103L | | #define WSS_OPERATION_IN_PROGRESS 0x00000103L |
| | |
typedef struct WSPData { | | typedef struct WSPData { |
WORD wVersion; | | WORD wVersion; |
WORD wHighVersion; | | WORD wHighVersion; |
WCHAR szDescription[WSPDESCRIPTION_LEN+1]; | | WCHAR szDescription[WSPDESCRIPTION_LEN+1]; |
} WSPDATA, FAR * LPWSPDATA; | | } WSPDATA, FAR * LPWSPDATA; |
| | |
| | |
skipping to change at line 570 | | skipping to change at line 584 |
int | | int |
(WSPAPI * LPWPUCLOSETHREAD)( | | (WSPAPI * LPWPUCLOSETHREAD)( |
LPWSATHREADID lpThreadId, | | LPWSATHREADID lpThreadId, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
| | |
// Available only directly from ws2_32.dll | | // Available only directly from ws2_32.dll |
typedef | | typedef |
int | | int |
(WSPAPI * LPWPUCOMPLETEOVERLAPPEDREQUEST) ( | | (WSPAPI * LPWPUCOMPLETEOVERLAPPEDREQUEST) ( |
|
IN SOCKET s, | | SOCKET s, |
LPWSAOVERLAPPED lpOverlapped, | | LPWSAOVERLAPPED lpOverlapped, |
DWORD dwError, | | DWORD dwError, |
DWORD cbTransferred, | | DWORD cbTransferred, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
| | |
/* | | /* |
* The upcall table. This structure is passed by value to the service | | * The upcall table. This structure is passed by value to the service |
* provider's WSPStartup() entrypoint. | | * provider's WSPStartup() entrypoint. |
*/ | | */ |
| | |
skipping to change at line 606 | | skipping to change at line 620 |
LPWPUSETEVENT lpWPUSetEvent; | | LPWPUSETEVENT lpWPUSetEvent; |
LPWPUOPENCURRENTTHREAD lpWPUOpenCurrentThread; | | LPWPUOPENCURRENTTHREAD lpWPUOpenCurrentThread; |
LPWPUCLOSETHREAD lpWPUCloseThread; | | LPWPUCLOSETHREAD lpWPUCloseThread; |
| | |
} WSPUPCALLTABLE, FAR * LPWSPUPCALLTABLE; | | } WSPUPCALLTABLE, FAR * LPWSPUPCALLTABLE; |
| | |
/* | | /* |
* WinSock 2 SPI socket function prototypes | | * WinSock 2 SPI socket function prototypes |
*/ | | */ |
| | |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSPStartup( | | WSPStartup( |
IN WORD wVersionRequested, | | IN WORD wVersionRequested, |
|
OUT LPWSPDATA lpWSPData, | | __in OUT LPWSPDATA lpWSPData, |
IN LPWSAPROTOCOL_INFOW lpProtocolInfo, | | __in IN LPWSAPROTOCOL_INFOW lpProtocolInfo, |
IN WSPUPCALLTABLE UpcallTable, | | __in IN WSPUPCALLTABLE UpcallTable, |
OUT LPWSPPROC_TABLE lpProcTable | | __inout OUT LPWSPPROC_TABLE lpProcTable |
); | | ); |
| | |
typedef | | typedef |
int | | int |
(WSPAPI * LPWSPSTARTUP)( | | (WSPAPI * LPWSPSTARTUP)( |
WORD wVersionRequested, | | WORD wVersionRequested, |
LPWSPDATA lpWSPData, | | LPWSPDATA lpWSPData, |
LPWSAPROTOCOL_INFOW lpProtocolInfo, | | LPWSAPROTOCOL_INFOW lpProtocolInfo, |
WSPUPCALLTABLE UpcallTable, | | WSPUPCALLTABLE UpcallTable, |
LPWSPPROC_TABLE lpProcTable | | LPWSPPROC_TABLE lpProcTable |
); | | ); |
| | |
/* | | /* |
* Installation and configuration entrypoints. | | * Installation and configuration entrypoints. |
*/ | | */ |
| | |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCEnumProtocols( | | WSCEnumProtocols( |
IN LPINT lpiProtocols, | | IN LPINT lpiProtocols, |
|
OUT LPWSAPROTOCOL_INFOW lpProtocolBuffer, | | __out_bcount_opt(*lpdwBufferLength) LPWSAPROTOCOL_INFOW lpProtocolBuffer, |
IN OUT LPDWORD lpdwBufferLength, | | IN OUT LPDWORD lpdwBufferLength, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
typedef | | typedef |
int | | int |
(WSPAPI * LPWSCENUMPROTOCOLS)( | | (WSPAPI * LPWSCENUMPROTOCOLS)( |
LPINT lpiProtocols, | | LPINT lpiProtocols, |
LPWSAPROTOCOL_INFOW lpProtocolBuffer, | | LPWSAPROTOCOL_INFOW lpProtocolBuffer, |
LPDWORD lpdwBufferLength, | | LPDWORD lpdwBufferLength, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
| | |
|
#if defined(_WIN64) | | #if(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
| | |
/* | | /* |
* 64-bit architectures capable of running 32-bit code have | | * 64-bit architectures capable of running 32-bit code have |
* separate 64-bit and 32-bit catalogs. API with '32' prefix | | * separate 64-bit and 32-bit catalogs. API with '32' prefix |
* allow 32 bit catalog manipulations by 64 bit process. | | * allow 32 bit catalog manipulations by 64 bit process. |
*/ | | */ |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCEnumProtocols32( | | WSCEnumProtocols32( |
IN LPINT lpiProtocols, | | IN LPINT lpiProtocols, |
|
OUT LPWSAPROTOCOL_INFOW lpProtocolBuffer, | | __out_bcount(*lpdwBufferLength) LPWSAPROTOCOL_INFOW lpProtocolBuffer, |
IN OUT LPDWORD lpdwBufferLength, | | IN OUT LPDWORD lpdwBufferLength, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
|
#endif | | #endif //(defined(_WIN64) && _WIN32_WINNT >= 0x0501) |
| | |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCDeinstallProvider( | | WSCDeinstallProvider( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
typedef | | typedef |
int | | int |
(WSPAPI * LPWSCDEINSTALLPROVIDER)( | | (WSPAPI * LPWSCDEINSTALLPROVIDER)( |
LPGUID lpProviderId, | | LPGUID lpProviderId, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
| | |
|
#if defined(_WIN64) | | #if(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
| | |
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCDeinstallProvider32( | | WSCDeinstallProvider32( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
|
#endif | | #endif //(defined(_WIN64) && _WIN32_WINNT >= 0x0501) |
| | |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCInstallProvider( | | WSCInstallProvider( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN const WCHAR FAR * lpszProviderDllPath, | | IN const WCHAR FAR * lpszProviderDllPath, |
|
IN const LPWSAPROTOCOL_INFOW lpProtocolInfoList, | | __in_ecount(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList, |
IN DWORD dwNumberOfEntries, | | IN DWORD dwNumberOfEntries, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
typedef | | typedef |
int | | int |
(WSPAPI * LPWSCINSTALLPROVIDER)( | | (WSPAPI * LPWSCINSTALLPROVIDER)( |
LPGUID lpProviderId, | | LPGUID lpProviderId, |
const WCHAR FAR * lpszProviderDllPath, | | const WCHAR FAR * lpszProviderDllPath, |
const LPWSAPROTOCOL_INFOW lpProtocolInfoList, | | const LPWSAPROTOCOL_INFOW lpProtocolInfoList, |
DWORD dwNumberOfEntries, | | DWORD dwNumberOfEntries, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
| | |
|
#if defined(_WIN64) | | #if(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
| | |
/* | | /* |
* This API manipulates 64-bit and 32-bit catalogs simulteneously. | | * This API manipulates 64-bit and 32-bit catalogs simulteneously. |
* It is needed to guarantee the same catalog IDs for provider catalog | | * It is needed to guarantee the same catalog IDs for provider catalog |
* entries in both 64-bit and 32-bit catalogs. | | * entries in both 64-bit and 32-bit catalogs. |
*/ | | */ |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCInstallProvider64_32( | | WSCInstallProvider64_32( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN const WCHAR FAR * lpszProviderDllPath, | | IN const WCHAR FAR * lpszProviderDllPath, |
|
IN const LPWSAPROTOCOL_INFOW lpProtocolInfoList, | | __in_ecount(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList, |
IN DWORD dwNumberOfEntries, | | IN DWORD dwNumberOfEntries, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
|
#endif | | #endif //(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
| | |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCGetProviderPath( | | WSCGetProviderPath( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
|
OUT WCHAR FAR * lpszProviderDllPath, | | __out_ecount(*lpProviderDllPathLen) WCHAR FAR * lpszProviderDllPath, |
IN OUT LPINT lpProviderDllPathLen, | | IN OUT LPINT lpProviderDllPathLen, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
typedef | | typedef |
int | | int |
(WSPAPI * LPWSCGETPROVIDERPATH)( | | (WSPAPI * LPWSCGETPROVIDERPATH)( |
LPGUID lpProviderId, | | LPGUID lpProviderId, |
WCHAR FAR * lpszProviderDllPath, | | WCHAR FAR * lpszProviderDllPath, |
LPINT lpProviderDllPathLen, | | LPINT lpProviderDllPathLen, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
| | |
|
| | #if(_WIN32_WINNT >= 0x0501) |
#if defined(_WIN64) | | #if defined(_WIN64) |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCGetProviderPath32( | | WSCGetProviderPath32( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
|
OUT WCHAR FAR * lpszProviderDllPath, | | __out_ecount(*lpProviderDllPathLen) WCHAR FAR * lpszProviderDllPath, |
IN OUT LPINT lpProviderDllPathLen, | | IN OUT LPINT lpProviderDllPathLen, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
#endif | | #endif |
| | |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCUpdateProvider( | | WSCUpdateProvider( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN const WCHAR FAR * lpszProviderDllPath, | | IN const WCHAR FAR * lpszProviderDllPath, |
|
IN const LPWSAPROTOCOL_INFOW lpProtocolInfoList, | | __in_ecount(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList, |
IN DWORD dwNumberOfEntries, | | IN DWORD dwNumberOfEntries, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
typedef | | typedef |
int | | int |
(WSPAPI * LPWSCUPDATEPROVIDER)( | | (WSPAPI * LPWSCUPDATEPROVIDER)( |
LPGUID lpProviderId, | | LPGUID lpProviderId, |
const WCHAR FAR * lpszProviderDllPath, | | const WCHAR FAR * lpszProviderDllPath, |
const LPWSAPROTOCOL_INFOW lpProtocolInfoList, | | const LPWSAPROTOCOL_INFOW lpProtocolInfoList, |
DWORD dwNumberOfEntries, | | DWORD dwNumberOfEntries, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
| | |
#if defined(_WIN64) | | #if defined(_WIN64) |
|
| | __control_entrypoint(DllExport) |
int | | int |
WSPAPI | | WSPAPI |
WSCUpdateProvider32( | | WSCUpdateProvider32( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN const WCHAR FAR * lpszProviderDllPath, | | IN const WCHAR FAR * lpszProviderDllPath, |
|
IN const LPWSAPROTOCOL_INFOW lpProtocolInfoList, | | __in_ecount(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList, |
IN DWORD dwNumberOfEntries, | | IN DWORD dwNumberOfEntries, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
#endif | | #endif |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
|
| | #if (_WIN32_WINNT < 0x0600) |
int | | int |
WSPAPI | | WSPAPI |
WSCInstallQOSTemplate ( | | WSCInstallQOSTemplate ( |
IN const LPGUID Guid, | | IN const LPGUID Guid, |
IN LPWSABUF QosName, | | IN LPWSABUF QosName, |
IN LPQOS Qos | | IN LPQOS Qos |
); | | ); |
| | |
typedef | | typedef |
int | | int |
| | |
skipping to change at line 815 | | skipping to change at line 846 |
IN LPWSABUF QosName | | IN LPWSABUF QosName |
); | | ); |
| | |
typedef | | typedef |
int | | int |
(WSPAPI * LPWSCREMOVEQOSTEMPLATE)( | | (WSPAPI * LPWSCREMOVEQOSTEMPLATE)( |
const LPGUID Guid, | | const LPGUID Guid, |
LPWSABUF QosName | | LPWSABUF QosName |
); | | ); |
| | |
|
| | #endif //(_WIN32_WINNT < 0x0600) |
| | |
| | #if(_WIN32_WINNT >= 0x0600) |
| | |
| | // |
| | // LSP Categorization |
| | // |
| | |
| | #define LSP_SYSTEM 0x80000000 |
| | #define LSP_INSPECTOR 0x00000001 |
| | #define LSP_REDIRECTOR 0x00000002 |
| | #define LSP_PROXY 0x00000004 |
| | #define LSP_FIREWALL 0x00000008 |
| | #define LSP_INBOUND_MODIFY 0x00000010 |
| | #define LSP_OUTBOUND_MODIFY 0x00000020 |
| | #define LSP_CRYPTO_COMPRESS 0x00000040 |
| | #define LSP_LOCAL_CACHE 0x00000080 |
| | |
| | // |
| | // Provider Information APIs |
| | // |
| | |
| | typedef enum _WSC_PROVIDER_INFO_TYPE { |
| | // InfoType is: Info points to: |
| | ProviderInfoLspCategories, // DWORD (LspCategories) |
| | ProviderInfoAudit, // struct WSC_PROVIDER_AUDIT_INFO |
| | } WSC_PROVIDER_INFO_TYPE ; |
| | |
| | typedef struct _WSC_PROVIDER_AUDIT_INFO { |
| | DWORD RecordSize; // Size of this audit record, in bytes (includes thi |
| | s field) |
| | PVOID Reserved; // Reserved |
| | // Install Time (GMT) |
| | // User SID of account performing install |
| | // Length (in characters) of Full Path |
| | // Full Path of EXE performing install |
| | } WSC_PROVIDER_AUDIT_INFO; |
| | |
| | __control_entrypoint(DllExport) |
| | int |
| | WSPAPI |
| | WSCSetProviderInfo( |
| | __in LPGUID lpProviderId, |
| | __in WSC_PROVIDER_INFO_TYPE InfoType, |
| | __in_bcount(InfoSize) PBYTE Info, |
| | __in size_t InfoSize, |
| | __in DWORD Flags, |
| | __out LPINT lpErrno |
| | ); |
| | |
| | __control_entrypoint(DllExport) |
| | int |
| | WSPAPI |
| | WSCGetProviderInfo( |
| | __in LPGUID lpProviderId, |
| | __in WSC_PROVIDER_INFO_TYPE InfoType, |
| | __out_bcount_part(*InfoSize, *InfoSize) PBYTE Info, |
| | __inout size_t *InfoSize, |
| | __in DWORD Flags, |
| | __out LPINT lpErrno |
| | ); |
| | |
| | #if defined(_WIN64) |
| | |
| | __control_entrypoint(DllExport) |
| | int |
| | WSPAPI |
| | WSCSetProviderInfo32( |
| | __in LPGUID lpProviderId, |
| | __in WSC_PROVIDER_INFO_TYPE InfoType, |
| | __in_bcount(InfoSize) PBYTE Info, |
| | __in size_t InfoSize, |
| | __in DWORD Flags, |
| | __out LPINT lpErrno |
| | ); |
| | |
| | __control_entrypoint(DllExport) |
| | int |
| | WSPAPI |
| | WSCGetProviderInfo32( |
| | __in LPGUID lpProviderId, |
| | __in WSC_PROVIDER_INFO_TYPE InfoType, |
| | __out_bcount_part(*InfoSize, *InfoSize) PBYTE Info, |
| | __inout size_t *InfoSize, |
| | __in DWORD Flags, |
| | __out LPINT lpErrno |
| | ); |
| | |
| | #endif // (_WIN64) |
| | |
| | // |
| | // App Permitted LSP Categorization APIs |
| | // |
| | |
| | __control_entrypoint(DllExport) |
| | int |
| | WSPAPI |
| | WSCSetApplicationCategory( |
| | __in_ecount(PathLength) LPCWSTR Path, |
| | __in DWORD PathLength, |
| | __in_ecount_opt(ExtraLength) LPCWSTR Extra, |
| | __in DWORD ExtraLength, |
| | __in DWORD PermittedLspCategories, |
| | __out_opt DWORD * pPrevPermLspCat, |
| | __out LPINT lpErrno |
| | ); |
| | |
| | __control_entrypoint(DllExport) |
| | int |
| | WSPAPI |
| | WSCGetApplicationCategory( |
| | __in_ecount(PathLength) LPCWSTR Path, |
| | __in DWORD PathLength, |
| | __in_ecount_opt(ExtraLength) LPCWSTR Extra, |
| | __in DWORD ExtraLength, |
| | __out DWORD * pPermittedLspCategories, |
| | __out LPINT lpErrno |
| | ); |
| | |
| | #endif //(_WIN32_WINNT >= 0x0600) |
| | |
/* | | /* |
* The following upcall function prototypes are only used by WinSock 2 DLL and | | * The following upcall function prototypes are only used by WinSock 2 DLL and |
* should not be used by any service providers. | | * should not be used by any service providers. |
*/ | | */ |
| | |
BOOL | | BOOL |
WSPAPI | | WSPAPI |
WPUCloseEvent( | | WPUCloseEvent( |
IN WSAEVENT hEvent, | | IN WSAEVENT hEvent, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
| | |
skipping to change at line 848 | | skipping to change at line 999 |
); | | ); |
| | |
SOCKET | | SOCKET |
WSPAPI | | WSPAPI |
WPUCreateSocketHandle( | | WPUCreateSocketHandle( |
IN DWORD dwCatalogEntryId, | | IN DWORD dwCatalogEntryId, |
IN DWORD_PTR dwContext, | | IN DWORD_PTR dwContext, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
|
| | __control_entrypoint(DispatchTable) |
int | | int |
WSPAPI | | WSPAPI |
WPUFDIsSet( | | WPUFDIsSet( |
IN SOCKET s, | | IN SOCKET s, |
IN fd_set FAR * fdset | | IN fd_set FAR * fdset |
); | | ); |
| | |
int | | int |
WSPAPI | | WSPAPI |
WPUGetProviderPath( | | WPUGetProviderPath( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
|
OUT WCHAR FAR * lpszProviderDllPath, | | __out_ecount(*lpProviderDllPathLen) WCHAR FAR * lpszProviderDllPath, |
IN OUT LPINT lpProviderDllPathLen, | | __inout LPINT lpProviderDllPathLen, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
SOCKET | | SOCKET |
WSPAPI | | WSPAPI |
WPUModifyIFSHandle( | | WPUModifyIFSHandle( |
IN DWORD dwCatalogEntryId, | | IN DWORD dwCatalogEntryId, |
IN SOCKET ProposedHandle, | | IN SOCKET ProposedHandle, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
|
| | __control_entrypoint(DispatchTable) |
BOOL | | BOOL |
WSPAPI | | WSPAPI |
WPUPostMessage( | | WPUPostMessage( |
IN HWND hWnd, | | IN HWND hWnd, |
IN UINT Msg, | | IN UINT Msg, |
IN WPARAM wParam, | | IN WPARAM wParam, |
IN LPARAM lParam | | IN LPARAM lParam |
); | | ); |
| | |
int | | int |
| | |
skipping to change at line 898 | | skipping to change at line 1051 |
); | | ); |
| | |
int | | int |
WSPAPI | | WSPAPI |
WPUQuerySocketHandleContext( | | WPUQuerySocketHandleContext( |
IN SOCKET s, | | IN SOCKET s, |
OUT PDWORD_PTR lpContext, | | OUT PDWORD_PTR lpContext, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
|
| | __control_entrypoint(DispatchTable) |
int | | int |
WSPAPI | | WSPAPI |
WPUQueueApc( | | WPUQueueApc( |
IN LPWSATHREADID lpThreadId, | | IN LPWSATHREADID lpThreadId, |
IN LPWSAUSERAPC lpfnUserApc, | | IN LPWSAUSERAPC lpfnUserApc, |
IN DWORD_PTR dwContext, | | IN DWORD_PTR dwContext, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
BOOL | | BOOL |
| | |
skipping to change at line 921 | | skipping to change at line 1075 |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
BOOL | | BOOL |
WSPAPI | | WSPAPI |
WPUSetEvent( | | WPUSetEvent( |
IN WSAEVENT hEvent, | | IN WSAEVENT hEvent, |
OUT LPINT lpErrno | | OUT LPINT lpErrno |
); | | ); |
| | |
|
| | __control_entrypoint(DispatchTable) |
int | | int |
WSPAPI | | WSPAPI |
WPUCompleteOverlappedRequest ( | | WPUCompleteOverlappedRequest ( |
SOCKET s, | | SOCKET s, |
LPWSAOVERLAPPED lpOverlapped, | | LPWSAOVERLAPPED lpOverlapped, |
DWORD dwError, | | DWORD dwError, |
DWORD cbTransferred, | | DWORD cbTransferred, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
| | |
|
| | #if(_WIN32_WINNT >= 0x0501) |
| | __control_entrypoint(DispatchTable) |
int | | int |
WSPAPI | | WSPAPI |
WPUOpenCurrentThread( | | WPUOpenCurrentThread( |
LPWSATHREADID lpThreadId, | | LPWSATHREADID lpThreadId, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
| | |
|
| | __control_entrypoint(DispatchTable) |
int | | int |
WSPAPI | | WSPAPI |
WPUCloseThread( | | WPUCloseThread( |
LPWSATHREADID lpThreadId, | | LPWSATHREADID lpThreadId, |
LPINT lpErrno | | LPINT lpErrno |
); | | ); |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
/* | | /* |
* Installing and uninstalling name space providers. | | * Installing and uninstalling name space providers. |
*/ | | */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0501) |
/* | | /* |
* SPI and API for enumerating name space providers are | | * SPI and API for enumerating name space providers are |
* currently equivalent since there is no concept of a hidden | | * currently equivalent since there is no concept of a hidden |
* name space provider | | * name space provider |
*/ | | */ |
#define WSCEnumNameSpaceProviders WSAEnumNameSpaceProvidersW | | #define WSCEnumNameSpaceProviders WSAEnumNameSpaceProvidersW |
#define LPFN_WSCENUMNAMESPACEPROVIDERS LPFN_WSAENUMNAMESPACEPROVIDERSW | | #define LPFN_WSCENUMNAMESPACEPROVIDERS LPFN_WSAENUMNAMESPACEPROVIDERSW |
| | |
#if defined(_WIN64) | | #if defined(_WIN64) |
INT | | INT |
WSAAPI | | WSAAPI |
WSCEnumNameSpaceProviders32( | | WSCEnumNameSpaceProviders32( |
|
IN OUT LPDWORD lpdwBufferLength, | | __inout LPDWORD lpdwBufferLength, |
OUT LPWSANAMESPACE_INFOW lpnspBuffer | | __out_bcount(*lpdwBufferLength) LPWSANAMESPACE_INFOW lpnspBuffer |
); | | ); |
#endif | | #endif |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
| | #if(_WIN32_WINNT >= 0x0600) |
| | #define WSCEnumNameSpaceProvidersEx WSAEnumNameSpaceProvidersExW |
| | #define LPFN_WSCENUMNAMESPACEPROVIDERSEX LPFN_WSAENUMNAMESPACEPROVIDERSEXW |
| | |
| | #if defined(_WIN64) |
| | INT |
| | WSAAPI |
| | WSCEnumNameSpaceProvidersEx32( |
| | __inout LPDWORD lpdwBufferLength, |
| | __out_bcount(*lpdwBufferLength) LPWSANAMESPACE_INFOEXW lpnspBuffer |
| | ); |
| | #endif //(_WIN64) |
| | #endif //(_WIN32_WINNT >= 0x0600) |
| | |
INT | | INT |
WSPAPI | | WSPAPI |
WSCInstallNameSpace ( | | WSCInstallNameSpace ( |
|
IN LPWSTR lpszIdentifier, | | __in LPWSTR lpszIdentifier, |
IN LPWSTR lpszPathName, | | __in LPWSTR lpszPathName, |
IN DWORD dwNameSpace, | | IN DWORD dwNameSpace, |
IN DWORD dwVersion, | | IN DWORD dwVersion, |
|
IN LPGUID lpProviderId | | __in IN LPGUID lpProviderId |
); | | ); |
| | |
typedef | | typedef |
INT | | INT |
(WSPAPI * LPWSCINSTALLNAMESPACE)( | | (WSPAPI * LPWSCINSTALLNAMESPACE)( |
LPWSTR lpszIdentifier, | | LPWSTR lpszIdentifier, |
LPWSTR lpszPathName, | | LPWSTR lpszPathName, |
DWORD dwNameSpace, | | DWORD dwNameSpace, |
DWORD dwVersion, | | DWORD dwVersion, |
LPGUID lpProviderId | | LPGUID lpProviderId |
); | | ); |
| | |
|
#if defined(_WIN64) | | #if(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
INT | | INT |
WSPAPI | | WSPAPI |
WSCInstallNameSpace32 ( | | WSCInstallNameSpace32 ( |
|
IN LPWSTR lpszIdentifier, | | __in LPWSTR lpszIdentifier, |
IN LPWSTR lpszPathName, | | __in LPWSTR lpszPathName, |
IN DWORD dwNameSpace, | | IN DWORD dwNameSpace, |
IN DWORD dwVersion, | | IN DWORD dwVersion, |
IN LPGUID lpProviderId | | IN LPGUID lpProviderId |
); | | ); |
|
#endif | | #endif //(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
| | |
INT | | INT |
WSPAPI | | WSPAPI |
WSCUnInstallNameSpace ( | | WSCUnInstallNameSpace ( |
IN LPGUID lpProviderId | | IN LPGUID lpProviderId |
); | | ); |
| | |
typedef | | typedef |
INT | | INT |
(WSPAPI * LPWSCUNINSTALLNAMESPACE)( | | (WSPAPI * LPWSCUNINSTALLNAMESPACE)( |
LPGUID lpProviderId | | LPGUID lpProviderId |
); | | ); |
| | |
|
#if defined(_WIN64) | | #if (_WIN32_WINNT >= 0x0600 ) |
| | INT |
| | WSPAPI |
| | WSCInstallNameSpaceEx( |
| | __in LPWSTR lpszIdentifier, |
| | __in LPWSTR lpszPathName, |
| | IN DWORD dwNameSpace, |
| | IN DWORD dwVersion, |
| | __in LPGUID lpProviderId, |
| | __in LPBLOB lpProviderSpecific |
| | ); |
| | #endif //(defined(_WIN32_WINNT >= 0x0600) |
| | |
| | #if(defined(_WIN64) && (_WIN32_WINNT >= 0x0600)) |
| | INT |
| | WSPAPI |
| | WSCInstallNameSpaceEx32( |
| | __in LPWSTR lpszIdentifier, |
| | __in LPWSTR lpszPathName, |
| | IN DWORD dwNameSpace, |
| | IN DWORD dwVersion, |
| | IN LPGUID lpProviderId, |
| | IN LPBLOB lpProviderSpecific |
| | ); |
| | #endif //(defined(_WIN64) && (_WIN32_WINNT >= 0x0600)) |
| | |
| | #if(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
INT | | INT |
WSPAPI | | WSPAPI |
WSCUnInstallNameSpace32 ( | | WSCUnInstallNameSpace32 ( |
IN LPGUID lpProviderId | | IN LPGUID lpProviderId |
); | | ); |
|
#endif | | #endif //(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
| | |
INT | | INT |
WSPAPI | | WSPAPI |
WSCEnableNSProvider ( | | WSCEnableNSProvider ( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN BOOL fEnable | | IN BOOL fEnable |
); | | ); |
| | |
typedef | | typedef |
INT | | INT |
(WSPAPI * LPWSCENABLENSPROVIDER)( | | (WSPAPI * LPWSCENABLENSPROVIDER)( |
LPGUID lpProviderId, | | LPGUID lpProviderId, |
BOOL fEnable | | BOOL fEnable |
); | | ); |
| | |
|
#if defined(_WIN64) | | #if(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
INT | | INT |
WSPAPI | | WSPAPI |
WSCEnableNSProvider32 ( | | WSCEnableNSProvider32 ( |
IN LPGUID lpProviderId, | | IN LPGUID lpProviderId, |
IN BOOL fEnable | | IN BOOL fEnable |
); | | ); |
|
| | #endif //(defined(_WIN64) && (_WIN32_WINNT >= 0x0501)) |
| | |
| | #if (_WIN32_WINNT >= 0x0600) |
| | |
| | #if defined(_WIN64) |
| | int WSPAPI WSCInstallProviderAndChains64_32( |
| | #else |
| | int WSPAPI WSCInstallProviderAndChains( |
| | #endif |
| | IN LPGUID lpProviderId, |
| | __in const LPWSTR lpszProviderDllPath, |
| | #if defined(_WIN64) |
| | __in const LPWSTR lpszProviderDllPath32, |
#endif | | #endif |
|
| | __in const LPWSTR lpszLspName, |
| | IN DWORD dwServiceFlags, |
| | __inout_ecount(dwNumberOfEntries) LPWSAPROTOCOL_INFOW lpProtocolInfoList, |
| | IN DWORD dwNumberOfEntries, |
| | OUT LPDWORD lpdwCatalogEntryId OPTIONAL, |
| | OUT LPINT lpErrno); |
| | |
| | #endif //(_WIN32_WINNT >= 0x0600) |
| | |
/* | | /* |
* Pointers to the individual entries in the namespace proc table. | | * Pointers to the individual entries in the namespace proc table. |
*/ | | */ |
| | |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPNSPCLEANUP)( | | (WSAAPI * LPNSPCLEANUP)( |
LPGUID lpProviderId | | LPGUID lpProviderId |
); | | ); |
| | |
skipping to change at line 1070 | | skipping to change at line 1292 |
| | |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPNSPLOOKUPSERVICENEXT)( | | (WSAAPI * LPNSPLOOKUPSERVICENEXT)( |
HANDLE hLookup, | | HANDLE hLookup, |
DWORD dwControlFlags, | | DWORD dwControlFlags, |
LPDWORD lpdwBufferLength, | | LPDWORD lpdwBufferLength, |
LPWSAQUERYSETW lpqsResults | | LPWSAQUERYSETW lpqsResults |
); | | ); |
| | |
|
| | #if(_WIN32_WINNT >= 0x0501) |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPNSPIOCTL)( | | (WSAAPI * LPNSPIOCTL)( |
HANDLE hLookup, | | HANDLE hLookup, |
DWORD dwControlCode, | | DWORD dwControlCode, |
LPVOID lpvInBuffer, | | LPVOID lpvInBuffer, |
DWORD cbInBuffer, | | DWORD cbInBuffer, |
LPVOID lpvOutBuffer, | | LPVOID lpvOutBuffer, |
DWORD cbOutBuffer, | | DWORD cbOutBuffer, |
LPDWORD lpcbBytesReturned, | | LPDWORD lpcbBytesReturned, |
LPWSACOMPLETION lpCompletion, | | LPWSACOMPLETION lpCompletion, |
LPWSATHREADID lpThreadId | | LPWSATHREADID lpThreadId |
); | | ); |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPNSPLOOKUPSERVICEEND)( | | (WSAAPI * LPNSPLOOKUPSERVICEEND)( |
HANDLE hLookup | | HANDLE hLookup |
); | | ); |
| | |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPNSPSETSERVICE)( | | (WSAAPI * LPNSPSETSERVICE)( |
| | |
skipping to change at line 1144 | | skipping to change at line 1368 |
| | |
LPNSPCLEANUP NSPCleanup; | | LPNSPCLEANUP NSPCleanup; |
LPNSPLOOKUPSERVICEBEGIN NSPLookupServiceBegin; | | LPNSPLOOKUPSERVICEBEGIN NSPLookupServiceBegin; |
LPNSPLOOKUPSERVICENEXT NSPLookupServiceNext; | | LPNSPLOOKUPSERVICENEXT NSPLookupServiceNext; |
LPNSPLOOKUPSERVICEEND NSPLookupServiceEnd; | | LPNSPLOOKUPSERVICEEND NSPLookupServiceEnd; |
LPNSPSETSERVICE NSPSetService; | | LPNSPSETSERVICE NSPSetService; |
LPNSPINSTALLSERVICECLASS NSPInstallServiceClass; | | LPNSPINSTALLSERVICECLASS NSPInstallServiceClass; |
LPNSPREMOVESERVICECLASS NSPRemoveServiceClass; | | LPNSPREMOVESERVICECLASS NSPRemoveServiceClass; |
LPNSPGETSERVICECLASSINFO NSPGetServiceClassInfo; | | LPNSPGETSERVICECLASSINFO NSPGetServiceClassInfo; |
| | |
|
| | #if(_WIN32_WINNT >= 0x0501) |
// These APIs were added later, so must appear here | | // These APIs were added later, so must appear here |
// to keep the pointers in the structure in order. | | // to keep the pointers in the structure in order. |
// Namespaces unaware of these APIs will set cbSize | | // Namespaces unaware of these APIs will set cbSize |
// to match the size of FIELD_OFFSET(NSP_ROUTINE, NSPIoctl). | | // to match the size of FIELD_OFFSET(NSP_ROUTINE, NSPIoctl). |
LPNSPIOCTL NSPIoctl; | | LPNSPIOCTL NSPIoctl; |
|
| | #endif //(_WIN32_WINNT >= 0x0501) |
| | |
} NSP_ROUTINE, FAR * LPNSP_ROUTINE; | | } NSP_ROUTINE, FAR * LPNSP_ROUTINE; |
| | |
/* | | /* |
* Startup procedures. | | * Startup procedures. |
*/ | | */ |
| | |
INT | | INT |
WSAAPI | | WSAAPI |
NSPStartup( | | NSPStartup( |
|
LPGUID lpProviderId, | | __in LPGUID lpProviderId, |
LPNSP_ROUTINE lpnspRoutines | | __inout LPNSP_ROUTINE lpnspRoutines |
); | | ); |
| | |
typedef | | typedef |
INT | | INT |
(WSAAPI * LPNSPSTARTUP)( | | (WSAAPI * LPNSPSTARTUP)( |
LPGUID lpProviderId, | | LPGUID lpProviderId, |
LPNSP_ROUTINE lpnspRoutines | | LPNSP_ROUTINE lpnspRoutines |
); | | ); |
| | |
|
| | typedef |
| | INT |
| | (WSAAPI * LPNSPV2STARTUP)( |
| | LPGUID lpProviderId, |
| | LPVOID * ppvClientSessionArg |
| | ); |
| | |
| | typedef |
| | INT |
| | (WSAAPI * LPNSPV2CLEANUP)( |
| | LPGUID lpProviderId, |
| | LPVOID pvClientSessionArg |
| | ); |
| | |
| | typedef |
| | INT |
| | (WSAAPI * LPNSPV2LOOKUPSERVICEBEGIN)( |
| | LPGUID lpProviderId, |
| | LPWSAQUERYSET2W lpqsRestrictions, |
| | DWORD dwControlFlags, |
| | LPVOID lpvClientSessionArg, |
| | LPHANDLE lphLookup |
| | ); |
| | |
| | typedef |
| | VOID |
| | (WSAAPI * LPNSPV2LOOKUPSERVICENEXTEX)( |
| | HANDLE hAsyncCall, |
| | HANDLE hLookup, |
| | DWORD dwControlFlags, |
| | LPDWORD lpdwBufferLength, |
| | LPWSAQUERYSET2W lpqsResults |
| | ); |
| | |
| | typedef |
| | INT |
| | (WSAAPI * LPNSPV2LOOKUPSERVICEEND)( |
| | HANDLE hLookup |
| | ); |
| | |
| | typedef |
| | VOID |
| | (WSAAPI * LPNSPV2SETSERVICEEX)( |
| | HANDLE hAsyncCall, |
| | LPGUID lpProviderId, |
| | LPWSAQUERYSET2W lpqsRegInfo, |
| | WSAESETSERVICEOP essOperation, |
| | DWORD dwControlFlags, |
| | LPVOID lpvClientSessionArg |
| | ); |
| | |
| | typedef |
| | VOID |
| | (WSAAPI * LPNSPV2CLIENTSESSIONRUNDOWN)( |
| | LPGUID lpProviderId, |
| | LPVOID pvClientSessionArg |
| | ); |
| | |
| | typedef struct _NSPV2_ROUTINE { |
| | DWORD cbSize; |
| | DWORD dwMajorVersion; |
| | DWORD dwMinorVersion; |
| | LPNSPV2STARTUP NSPv2Startup; |
| | LPNSPV2CLEANUP NSPv2Cleanup; |
| | LPNSPV2LOOKUPSERVICEBEGIN NSPv2LookupServiceBegin; |
| | LPNSPV2LOOKUPSERVICENEXTEX NSPv2LookupServiceNextEx; |
| | LPNSPV2LOOKUPSERVICEEND NSPv2LookupServiceEnd; |
| | LPNSPV2SETSERVICEEX NSPv2SetServiceEx; |
| | LPNSPV2CLIENTSESSIONRUNDOWN NSPv2ClientSessionRundown; |
| | } NSPV2_ROUTINE, *PNSPV2_ROUTINE, *LPNSPV2_ROUTINE; |
| | typedef const NSPV2_ROUTINE * PCNSPV2_ROUTINE, * LPCNSPV2_ROUTINE; |
| | |
| | #if(_WIN32_WINNT >= 0x0600) |
| | |
| | INT WSAAPI WSAAdvertiseProvider( |
| | __in const GUID * puuidProviderId, |
| | __in const LPCNSPV2_ROUTINE pNSPv2Routine); |
| | |
| | INT WSAAPI WSAUnadvertiseProvider( |
| | __in const GUID * puuidProviderId); |
| | |
| | INT WSAAPI WSAProviderCompleteAsyncCall( |
| | __in HANDLE hAsyncCall, |
| | __in INT iRetCode); |
| | |
| | #endif //(_WIN32_WINNT >= 0x0600) |
| | |
#ifdef __cplusplus | | #ifdef __cplusplus |
} | | } |
#endif | | #endif |
| | |
#if !defined(_WIN64) | | #if !defined(_WIN64) |
#include <poppack.h> | | #include <poppack.h> |
#endif | | #endif |
| | |
#endif /* _WINSOCK2SPI_ */ | | #endif /* _WINSOCK2SPI_ */ |
| | |
End of changes. 60 change blocks. |
43 lines changed or deleted | | 357 lines changed or added |
|