mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* include/winsock2.h (WINSOCK_API_LINKAGE): Define. Add to
prototypes.
This commit is contained in:
parent
0d80558dc4
commit
74d3f96faa
@ -1,3 +1,8 @@
|
||||
2006-01-29 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* include/winsock2.h (WINSOCK_API_LINKAGE): Define. Add to
|
||||
prototypes.
|
||||
|
||||
2006-01-29 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* include/winnt.h (FORCEINLINE): Define.
|
||||
|
@ -13,7 +13,7 @@
|
||||
#if !(defined _WINSOCK2_H || defined _WINSOCK_H)
|
||||
#define _WINSOCK2_H
|
||||
#define _WINSOCK_H /* to prevent later inclusion of winsock.h */
|
||||
#if __GNUC__ >=3
|
||||
#if __GNUC__ >= 3
|
||||
#pragma GCC system_header
|
||||
#endif
|
||||
|
||||
@ -21,6 +21,14 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#ifndef WINSOCK_API_LINKAGE
|
||||
#ifdef __W32API_USE_DLLIMPORT__
|
||||
#define WINSOCK_API_LINKAGE DECLSPEC_IMPORT
|
||||
#else
|
||||
#define WINSOCK_API_LINKAGE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -525,30 +533,30 @@ struct sockproto {
|
||||
#define NO_DATA WSANO_DATA
|
||||
#define NO_ADDRESS WSANO_ADDRESS
|
||||
#endif /* ! (__INSIDE_CYGWIN__ || __INSIDE_MSYS__) */
|
||||
SOCKET PASCAL accept(SOCKET,struct sockaddr*,int*);
|
||||
int PASCAL bind(SOCKET,const struct sockaddr*,int);
|
||||
int PASCAL closesocket(SOCKET);
|
||||
int PASCAL connect(SOCKET,const struct sockaddr*,int);
|
||||
int PASCAL ioctlsocket(SOCKET,long,u_long *);
|
||||
int PASCAL getpeername(SOCKET,struct sockaddr*,int*);
|
||||
int PASCAL getsockname(SOCKET,struct sockaddr*,int*);
|
||||
int PASCAL getsockopt(SOCKET,int,int,char*,int*);
|
||||
unsigned long PASCAL inet_addr(const char*);
|
||||
DECLARE_STDCALL_P(char *) inet_ntoa(struct in_addr);
|
||||
int PASCAL listen(SOCKET,int);
|
||||
int PASCAL recv(SOCKET,char*,int,int);
|
||||
int PASCAL recvfrom(SOCKET,char*,int,int,struct sockaddr*,int*);
|
||||
int PASCAL send(SOCKET,const char*,int,int);
|
||||
int PASCAL sendto(SOCKET,const char*,int,int,const struct sockaddr*,int);
|
||||
int PASCAL setsockopt(SOCKET,int,int,const char*,int);
|
||||
int PASCAL shutdown(SOCKET,int);
|
||||
SOCKET PASCAL socket(int,int,int);
|
||||
DECLARE_STDCALL_P(struct hostent *) gethostbyaddr(const char*,int,int);
|
||||
DECLARE_STDCALL_P(struct hostent *) gethostbyname(const char*);
|
||||
DECLARE_STDCALL_P(struct servent *) getservbyport(int,const char*);
|
||||
DECLARE_STDCALL_P(struct servent *) getservbyname(const char*,const char*);
|
||||
DECLARE_STDCALL_P(struct protoent *) getprotobynumber(int);
|
||||
DECLARE_STDCALL_P(struct protoent *) getprotobyname(const char*);
|
||||
WINSOCK_API_LINKAGE SOCKET PASCAL accept(SOCKET,struct sockaddr*,int*);
|
||||
WINSOCK_API_LINKAGE int PASCAL bind(SOCKET,const struct sockaddr*,int);
|
||||
WINSOCK_API_LINKAGE int PASCAL closesocket(SOCKET);
|
||||
WINSOCK_API_LINKAGE int PASCAL connect(SOCKET,const struct sockaddr*,int);
|
||||
WINSOCK_API_LINKAGE int PASCAL ioctlsocket(SOCKET,long,u_long *);
|
||||
WINSOCK_API_LINKAGE int PASCAL getpeername(SOCKET,struct sockaddr*,int*);
|
||||
WINSOCK_API_LINKAGE int PASCAL getsockname(SOCKET,struct sockaddr*,int*);
|
||||
WINSOCK_API_LINKAGE int PASCAL getsockopt(SOCKET,int,int,char*,int*);
|
||||
WINSOCK_API_LINKAGE unsigned long PASCAL inet_addr(const char*);
|
||||
WINSOCK_API_LINKAGE DECLARE_STDCALL_P(char *) inet_ntoa(struct in_addr);
|
||||
WINSOCK_API_LINKAGE int PASCAL listen(SOCKET,int);
|
||||
WINSOCK_API_LINKAGE int PASCAL recv(SOCKET,char*,int,int);
|
||||
WINSOCK_API_LINKAGE int PASCAL recvfrom(SOCKET,char*,int,int,struct sockaddr*,int*);
|
||||
WINSOCK_API_LINKAGE int PASCAL send(SOCKET,const char*,int,int);
|
||||
WINSOCK_API_LINKAGE int PASCAL sendto(SOCKET,const char*,int,int,const struct sockaddr*,int);
|
||||
WINSOCK_API_LINKAGE int PASCAL setsockopt(SOCKET,int,int,const char*,int);
|
||||
WINSOCK_API_LINKAGE int PASCAL shutdown(SOCKET,int);
|
||||
WINSOCK_API_LINKAGE SOCKET PASCAL socket(int,int,int);
|
||||
WINSOCK_API_LINKAGE DECLARE_STDCALL_P(struct hostent *) gethostbyaddr(const char*,int,int);
|
||||
WINSOCK_API_LINKAGE DECLARE_STDCALL_P(struct hostent *) gethostbyname(const char*);
|
||||
WINSOCK_API_LINKAGE DECLARE_STDCALL_P(struct servent *) getservbyport(int,const char*);
|
||||
WINSOCK_API_LINKAGE DECLARE_STDCALL_P(struct servent *) getservbyname(const char*,const char*);
|
||||
WINSOCK_API_LINKAGE DECLARE_STDCALL_P(struct protoent *) getprotobynumber(int);
|
||||
WINSOCK_API_LINKAGE DECLARE_STDCALL_P(struct protoent *) getprotobyname(const char*);
|
||||
typedef SOCKET (PASCAL * LPFN_ACCEPT)(SOCKET, struct sockaddr*,int *);
|
||||
typedef int (PASCAL * LPFN_BIND)(SOCKET, const struct sockaddr*,int);
|
||||
typedef int (PASCAL * LPFN_CLOSESOCKET)(SOCKET);
|
||||
@ -580,11 +588,11 @@ typedef struct servent*(PASCAL * LPFN_GETSERVBYNAME)(const char*, const char*);
|
||||
typedef struct protoent*(PASCAL * LPFN_GETPROTOBYNUMBER)(int);
|
||||
typedef struct protoent*(PASCAL * LPFN_GETPROTOBYNAME)(const char*);
|
||||
|
||||
int PASCAL WSAStartup(WORD,LPWSADATA);
|
||||
int PASCAL WSACleanup(void);
|
||||
void PASCAL WSASetLastError(int);
|
||||
int PASCAL WSAGetLastError(void);
|
||||
typedef int(PASCAL * LPFN_WSASTARTUP)(WORD, LPWSADATA);
|
||||
WINSOCK_API_LINKAGE int PASCAL WSAStartup(WORD,LPWSADATA);
|
||||
WINSOCK_API_LINKAGE int PASCAL WSACleanup(void);
|
||||
WINSOCK_API_LINKAGE void PASCAL WSASetLastError(int);
|
||||
WINSOCK_API_LINKAGE int PASCAL WSAGetLastError(void);
|
||||
WINSOCK_API_LINKAGE typedef int(PASCAL * LPFN_WSASTARTUP)(WORD, LPWSADATA);
|
||||
typedef int(PASCAL * LPFN_WSACLEANUP)(void);
|
||||
typedef void(PASCAL * LPFN_WSASETLASTERROR)(int);
|
||||
typedef int(PASCAL * LPFN_WSAGETLASTERROR)(void);
|
||||
@ -592,23 +600,23 @@ typedef int(PASCAL * LPFN_WSAGETLASTERROR)(void);
|
||||
* Pseudo-blocking functions are deprecated in WinSock2
|
||||
* spec. Use threads instead.
|
||||
*/
|
||||
BOOL PASCAL WSAIsBlocking(void);
|
||||
int PASCAL WSAUnhookBlockingHook(void);
|
||||
FARPROC PASCAL WSASetBlockingHook(FARPROC);
|
||||
int PASCAL WSACancelBlockingCall(void);
|
||||
WINSOCK_API_LINKAGE BOOL PASCAL WSAIsBlocking(void);
|
||||
WINSOCK_API_LINKAGE int PASCAL WSAUnhookBlockingHook(void);
|
||||
WINSOCK_API_LINKAGE FARPROC PASCAL WSASetBlockingHook(FARPROC);
|
||||
WINSOCK_API_LINKAGE int PASCAL WSACancelBlockingCall(void);
|
||||
typedef BOOL(PASCAL * LPFN_WSAISBLOCKING)(void);
|
||||
typedef int(PASCAL * LPFN_WSAUNHOOKBLOCKINGHOOK)(void);
|
||||
typedef FARPROC (PASCAL * LPFN_WSASETBLOCKINGHOOK)(FARPROC);
|
||||
typedef int(PASCAL * LPFN_WSACANCELBLOCKINGCALL)(void);
|
||||
|
||||
HANDLE PASCAL WSAAsyncGetServByName(HWND,u_int,const char*,const char*,char*,int);
|
||||
HANDLE PASCAL WSAAsyncGetServByPort(HWND,u_int,int,const char*,char*,int);
|
||||
HANDLE PASCAL WSAAsyncGetProtoByName(HWND,u_int,const char*,char*,int);
|
||||
HANDLE PASCAL WSAAsyncGetProtoByNumber(HWND,u_int,int,char*,int);
|
||||
HANDLE PASCAL WSAAsyncGetHostByName(HWND,u_int,const char*,char*,int);
|
||||
HANDLE PASCAL WSAAsyncGetHostByAddr(HWND,u_int,const char*,int,int,char*,int);
|
||||
int PASCAL WSACancelAsyncRequest(HANDLE);
|
||||
int PASCAL WSAAsyncSelect(SOCKET,HWND,u_int,long);
|
||||
WINSOCK_API_LINKAGE HANDLE PASCAL WSAAsyncGetServByName(HWND,u_int,const char*,const char*,char*,int);
|
||||
WINSOCK_API_LINKAGE HANDLE PASCAL WSAAsyncGetServByPort(HWND,u_int,int,const char*,char*,int);
|
||||
WINSOCK_API_LINKAGE HANDLE PASCAL WSAAsyncGetProtoByName(HWND,u_int,const char*,char*,int);
|
||||
WINSOCK_API_LINKAGE HANDLE PASCAL WSAAsyncGetProtoByNumber(HWND,u_int,int,char*,int);
|
||||
WINSOCK_API_LINKAGE HANDLE PASCAL WSAAsyncGetHostByName(HWND,u_int,const char*,char*,int);
|
||||
WINSOCK_API_LINKAGE HANDLE PASCAL WSAAsyncGetHostByAddr(HWND,u_int,const char*,int,int,char*,int);
|
||||
WINSOCK_API_LINKAGE int PASCAL WSACancelAsyncRequest(HANDLE);
|
||||
WINSOCK_API_LINKAGE int PASCAL WSAAsyncSelect(SOCKET,HWND,u_int,long);
|
||||
typedef HANDLE(PASCAL * LPFN_WSAASYNCGETSERVBYNAME)(HWND, u_int, const char *, const char *, char *, int);
|
||||
typedef HANDLE(PASCAL * LPFN_WSAASYNCGETSERVBYPORT)(HWND, u_int, int, const char *, char *, int);
|
||||
typedef HANDLE(PASCAL * LPFN_WSAASYNCGETPROTOBYNAME)(HWND, u_int, const char*, char*, int);
|
||||
@ -617,11 +625,11 @@ typedef HANDLE(PASCAL * LPFN_WSAASYNCGETHOSTBYADDR)(HWND, u_int, const char*, in
|
||||
typedef int(PASCAL * LPFN_WSACANCELASYNCREQUEST)(HANDLE);
|
||||
typedef int(PASCAL * LPFN_WSAASYNCSELECT)(SOCKET, HWND, u_int, long);
|
||||
#if ! (defined (__INSIDE_CYGWIN__) || defined (__INSIDE_MSYS__))
|
||||
u_long PASCAL htonl(u_long);
|
||||
u_long PASCAL ntohl(u_long);
|
||||
u_short PASCAL htons(u_short);
|
||||
u_short PASCAL ntohs(u_short);
|
||||
int PASCAL select(int nfds,fd_set*,fd_set*,fd_set*,const struct timeval*);
|
||||
WINSOCK_API_LINKAGE u_long PASCAL htonl(u_long);
|
||||
WINSOCK_API_LINKAGE u_long PASCAL ntohl(u_long);
|
||||
WINSOCK_API_LINKAGE u_short PASCAL htons(u_short);
|
||||
WINSOCK_API_LINKAGE u_short PASCAL ntohs(u_short);
|
||||
WINSOCK_API_LINKAGE int PASCAL select(int nfds,fd_set*,fd_set*,fd_set*,const struct timeval*);
|
||||
#endif /* ! (__INSIDE_CYGWIN__ || __INSIDE_MSYS__) */
|
||||
|
||||
int PASCAL gethostname(char*,int);
|
||||
@ -1135,56 +1143,57 @@ typedef struct _WSACOMPLETION {
|
||||
#define TH_NETDEV 0x00000001
|
||||
#define TH_TAPI 0x00000002
|
||||
|
||||
SOCKET WINAPI WSAAccept(SOCKET, struct sockaddr *, LPINT, LPCONDITIONPROC, DWORD);
|
||||
INT WINAPI WSAAddressToStringA(LPSOCKADDR, DWORD, LPWSAPROTOCOL_INFOA, LPSTR, LPDWORD);
|
||||
INT WINAPI WSAAddressToStringW(LPSOCKADDR, DWORD, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD);
|
||||
BOOL WINAPI WSACloseEvent(WSAEVENT);
|
||||
int WINAPI WSAConnect(SOCKET, const struct sockaddr *, int, LPWSABUF, LPWSABUF, LPQOS, LPQOS);
|
||||
WSAEVENT WINAPI WSACreateEvent(void);
|
||||
int WINAPI WSADuplicateSocketA(SOCKET, DWORD, LPWSAPROTOCOL_INFOA);
|
||||
int WINAPI WSADuplicateSocketW(SOCKET, DWORD, LPWSAPROTOCOL_INFOW);
|
||||
INT WINAPI WSAEnumNameSpaceProvidersA(LPDWORD, LPWSANAMESPACE_INFOA);
|
||||
INT WINAPI WSAEnumNameSpaceProvidersW(LPDWORD, LPWSANAMESPACE_INFOW);
|
||||
int WINAPI WSAEnumNetworkEvents(SOCKET, WSAEVENT, LPWSANETWORKEVENTS);
|
||||
int WINAPI WSAEnumProtocolsA(LPINT, LPWSAPROTOCOL_INFOA, LPDWORD);
|
||||
int WINAPI WSAEnumProtocolsW(LPINT, LPWSAPROTOCOL_INFOW, LPDWORD);
|
||||
int WINAPI WSAEventSelect(SOCKET, WSAEVENT, long);
|
||||
BOOL WINAPI WSAGetOverlappedResult(SOCKET, LPWSAOVERLAPPED, LPDWORD, BOOL, LPDWORD);
|
||||
BOOL WINAPI WSAGetQOSByName(SOCKET, LPWSABUF, LPQOS);
|
||||
INT WINAPI WSAGetServiceClassInfoA(LPGUID, LPGUID, LPDWORD, LPWSASERVICECLASSINFOA);
|
||||
INT WINAPI WSAGetServiceClassInfoW(LPGUID, LPGUID, LPDWORD, LPWSASERVICECLASSINFOW);
|
||||
INT WINAPI WSAGetServiceClassNameByClassIdA(LPGUID, LPSTR, LPDWORD);
|
||||
INT WINAPI WSAGetServiceClassNameByClassIdW(LPGUID, LPWSTR, LPDWORD);
|
||||
int WINAPI WSAHtonl(SOCKET, unsigned long, unsigned long *);
|
||||
int WINAPI WSAHtons(SOCKET, unsigned short, unsigned short *);
|
||||
INT WINAPI WSAInstallServiceClassA(LPWSASERVICECLASSINFOA);
|
||||
INT WINAPI WSAInstallServiceClassW(LPWSASERVICECLASSINFOW);
|
||||
int WINAPI WSAIoctl(SOCKET, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
SOCKET WINAPI WSAJoinLeaf(SOCKET, const struct sockaddr *, int, LPWSABUF, LPWSABUF, LPQOS, LPQOS, DWORD);
|
||||
INT WINAPI WSALookupServiceBeginA(LPWSAQUERYSETA, DWORD, LPHANDLE);
|
||||
INT WINAPI WSALookupServiceBeginW(LPWSAQUERYSETW lpqsRestrictions, DWORD, LPHANDLE);
|
||||
INT WINAPI WSALookupServiceNextA(HANDLE, DWORD, LPDWORD, LPWSAQUERYSETA);
|
||||
INT WINAPI WSALookupServiceNextW(HANDLE, DWORD, LPDWORD, LPWSAQUERYSETW);
|
||||
INT WINAPI WSALookupServiceEnd(HANDLE);
|
||||
int WINAPI WSANSPIoctl(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSACOMPLETION); /* XP or .NET Server */
|
||||
int WINAPI WSANtohl(SOCKET, unsigned long, unsigned long *);
|
||||
int WINAPI WSANtohs(SOCKET, unsigned short, unsigned short *);
|
||||
int WINAPI WSARecv(SOCKET, LPWSABUF, DWORD, LPDWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
int WINAPI WSARecvDisconnect(SOCKET, LPWSABUF);
|
||||
int WINAPI WSARecvFrom(SOCKET, LPWSABUF, DWORD, LPDWORD, LPDWORD, struct sockaddr *, LPINT, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
INT WINAPI WSARemoveServiceClass(LPGUID);
|
||||
BOOL WINAPI WSAResetEvent(WSAEVENT);
|
||||
int WINAPI WSASend(SOCKET, LPWSABUF, DWORD, LPDWORD, DWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
int WINAPI WSASendDisconnect(SOCKET, LPWSABUF);
|
||||
int WINAPI WSASendTo(SOCKET, LPWSABUF, DWORD, LPDWORD, DWORD, const struct sockaddr *, int, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
BOOL WINAPI WSASetEvent(WSAEVENT);
|
||||
INT WSAAPI WSASetServiceA(LPWSAQUERYSETA, WSAESETSERVICEOP, DWORD);
|
||||
INT WINAPI WSASetServiceW(LPWSAQUERYSETW, WSAESETSERVICEOP, DWORD);
|
||||
SOCKET WINAPI WSASocketA(int, int, int, LPWSAPROTOCOL_INFOA, GROUP, DWORD);
|
||||
SOCKET WINAPI WSASocketW(int, int, int, LPWSAPROTOCOL_INFOW, GROUP, DWORD);
|
||||
INT WINAPI WSAStringToAddressA(LPSTR, INT, LPWSAPROTOCOL_INFOA, LPSOCKADDR, LPINT);
|
||||
INT WINAPI WSAStringToAddressW(LPWSTR, INT, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPINT);
|
||||
DWORD WINAPI WSAWaitForMultipleEvents(DWORD, const WSAEVENT *, BOOL, DWORD, BOOL);
|
||||
WINSOCK_API_LINKAGE SOCKET WINAPI WSAAccept(SOCKET, struct sockaddr *, LPINT, LPCONDITIONPROC, DWORD);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAAddressToStringA(LPSOCKADDR, DWORD, LPWSAPROTOCOL_INFOA, LPSTR, LPDWORD);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAAddressToStringW(LPSOCKADDR, DWORD, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD);
|
||||
WINSOCK_API_LINKAGE BOOL WINAPI WSACloseEvent(WSAEVENT);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSAConnect(SOCKET, const struct sockaddr *, int, LPWSABUF, LPWSABUF, LPQOS, LPQOS);
|
||||
WINSOCK_API_LINKAGE WSAEVENT WINAPI WSACreateEvent(void);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSADuplicateSocketA(SOCKET, DWORD, LPWSAPROTOCOL_INFOA);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSADuplicateSocketW(SOCKET, DWORD, LPWSAPROTOCOL_INFOW);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAEnumNameSpaceProvidersA(LPDWORD, LPWSANAMESPACE_INFOA);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAEnumNameSpaceProvidersW(LPDWORD, LPWSANAMESPACE_INFOW);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSAEnumNetworkEvents(SOCKET, WSAEVENT, LPWSANETWORKEVENTS);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSAEnumProtocolsA(LPINT, LPWSAPROTOCOL_INFOA, LPDWORD);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSAEnumProtocolsW(LPINT, LPWSAPROTOCOL_INFOW, LPDWORD);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSAEventSelect(SOCKET, WSAEVENT, long);
|
||||
WINSOCK_API_LINKAGE BOOL WINAPI WSAGetOverlappedResult(SOCKET, LPWSAOVERLAPPED, LPDWORD, BOOL, LPDWORD);
|
||||
WINSOCK_API_LINKAGE BOOL WINAPI WSAGetQOSByName(SOCKET, LPWSABUF, LPQOS);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAGetServiceClassInfoA(LPGUID, LPGUID, LPDWORD, LPWSASERVICECLASSINFOA);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAGetServiceClassInfoW(LPGUID, LPGUID, LPDWORD, LPWSASERVICECLASSINFOW);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAGetServiceClassNameByClassIdA(LPGUID, LPSTR, LPDWORD);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAGetServiceClassNameByClassIdW(LPGUID, LPWSTR, LPDWORD);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSAHtonl(SOCKET, unsigned long, unsigned long *);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSAHtons(SOCKET, unsigned short, unsigned short *);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAInstallServiceClassA(LPWSASERVICECLASSINFOA);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAInstallServiceClassW(LPWSASERVICECLASSINFOW);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSAIoctl(SOCKET, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
WINSOCK_API_LINKAGE SOCKET WINAPI WSAJoinLeaf(SOCKET, const struct sockaddr *, int, LPWSABUF, LPWSABUF, LPQOS, LPQOS, DWORD);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSALookupServiceBeginA(LPWSAQUERYSETA, DWORD, LPHANDLE);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSALookupServiceBeginW(LPWSAQUERYSETW lpqsRestrictions, DWORD, LPHANDLE);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSALookupServiceNextA(HANDLE, DWORD, LPDWORD, LPWSAQUERYSETA);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSALookupServiceNextW(HANDLE, DWORD, LPDWORD, LPWSAQUERYSETW);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSALookupServiceEnd(HANDLE);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSANSPIoctl(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSACOMPLETION); /* XP or .NET Server */
|
||||
WINSOCK_API_LINKAGE int WINAPI WSANtohl(SOCKET, unsigned long, unsigned long *);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSANtohs(SOCKET, unsigned short, unsigned short *);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSARecv(SOCKET, LPWSABUF, DWORD, LPDWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSARecvDisconnect(SOCKET, LPWSABUF);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSARecvFrom(SOCKET, LPWSABUF, DWORD, LPDWORD, LPDWORD, struct sockaddr *, LPINT, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSARemoveServiceClass(LPGUID);
|
||||
WINSOCK_API_LINKAGE BOOL WINAPI WSAResetEvent(WSAEVENT);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSASend(SOCKET, LPWSABUF, DWORD, LPDWORD, DWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSASendDisconnect(SOCKET, LPWSABUF);
|
||||
WINSOCK_API_LINKAGE int WINAPI WSASendTo(SOCKET, LPWSABUF, DWORD, LPDWORD, DWORD, const struct sockaddr *, int, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||
WINSOCK_API_LINKAGE BOOL WINAPI WSASetEvent(WSAEVENT);
|
||||
WINSOCK_API_LINKAGE INT WSAAPI WSASetServiceA(LPWSAQUERYSETA, WSAESETSERVICEOP, DWORD);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSASetServiceW(LPWSAQUERYSETW, WSAESETSERVICEOP, DWORD);
|
||||
WINSOCK_API_LINKAGE SOCKET WINAPI WSASocketA(int, int, int, LPWSAPROTOCOL_INFOA, GROUP, DWORD);
|
||||
WINSOCK_API_LINKAGE SOCKET WINAPI WSASocketW(int, int, int, LPWSAPROTOCOL_INFOW, GROUP, DWORD);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAStringToAddressA(LPSTR, INT, LPWSAPROTOCOL_INFOA, LPSOCKADDR, LPINT);
|
||||
WINSOCK_API_LINKAGE INT WINAPI WSAStringToAddressW(LPWSTR, INT, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPINT);
|
||||
WINSOCK_API_LINKAGE DWORD WINAPI WSAWaitForMultipleEvents(DWORD, const WSAEVENT *, BOOL, DWORD, BOOL);
|
||||
|
||||
typedef SOCKET (WINAPI *LPFN_WSAACCEPT)(SOCKET, struct sockaddr *, LPINT, LPCONDITIONPROC, DWORD);
|
||||
typedef INT (WINAPI *LPFN_WSAADDRESSTOSTRINGA)(LPSOCKADDR, DWORD, LPWSAPROTOCOL_INFOA, LPSTR, LPDWORD);
|
||||
typedef INT (WINAPI *LPFN_WSAADDRESSTOSTRINGW)(LPSOCKADDR, DWORD, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD);
|
||||
|
Loading…
x
Reference in New Issue
Block a user