; --------------------------------------------------------------------------------------------------
;                           wsock32.inc Copyright The MASM32 SDK 1998-2010
; --------------------------------------------------------------------------------------------------

IFNDEF WSOCK32_INC
WSOCK32_INC equ <1>

AcceptEx PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD

EnumProtocolsA PROTO STDCALL :DWORD,:DWORD,:DWORD
IFNDEF __UNICODE__
  EnumProtocols equ <EnumProtocolsA>
ENDIF

EnumProtocolsW PROTO STDCALL :DWORD,:DWORD,:DWORD
IFDEF __UNICODE__
  EnumProtocols equ <EnumProtocolsW>
ENDIF

GetAcceptExSockaddrs PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD

GetAddressByNameA PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
IFNDEF __UNICODE__
  GetAddressByName equ <GetAddressByNameA>
ENDIF

GetAddressByNameW PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
IFDEF __UNICODE__
  GetAddressByName equ <GetAddressByNameW>
ENDIF

GetNameByTypeA PROTO STDCALL :DWORD,:DWORD,:DWORD
IFNDEF __UNICODE__
  GetNameByType equ <GetNameByTypeA>
ENDIF

GetNameByTypeW PROTO STDCALL :DWORD,:DWORD,:DWORD
IFDEF __UNICODE__
  GetNameByType equ <GetNameByTypeW>
ENDIF

GetServiceA PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
IFNDEF __UNICODE__
  GetService equ <GetServiceA>
ENDIF

GetServiceW PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
IFDEF __UNICODE__
  GetService equ <GetServiceW>
ENDIF

GetTypeByNameA PROTO STDCALL :DWORD,:DWORD
IFNDEF __UNICODE__
  GetTypeByName equ <GetTypeByNameA>
ENDIF

GetTypeByNameW PROTO STDCALL :DWORD,:DWORD
IFDEF __UNICODE__
  GetTypeByName equ <GetTypeByNameW>
ENDIF

MigrateWinsockConfiguration PROTO STDCALL :DWORD,:DWORD,:DWORD
NPLoadNameSpaces PROTO STDCALL :DWORD,:DWORD,:DWORD

SetServiceA PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
IFNDEF __UNICODE__
  SetService equ <SetServiceA>
ENDIF

SetServiceW PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
IFDEF __UNICODE__
  SetService equ <SetServiceW>
ENDIF

TransmitFile PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
WEP PROTO STDCALL
WSAAsyncGetHostByAddr PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
WSAAsyncGetHostByName PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
WSAAsyncGetProtoByName PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
WSAAsyncGetProtoByNumber PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
WSAAsyncGetServByName PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
WSAAsyncGetServByPort PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
WSAAsyncSelect PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
WSACancelAsyncRequest PROTO STDCALL :DWORD
WSACancelBlockingCall PROTO STDCALL
WSACleanup PROTO STDCALL
WSAGetLastError PROTO STDCALL
WSAIsBlocking PROTO STDCALL
WSARecvEx PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
WSASetBlockingHook PROTO STDCALL :DWORD
WSASetLastError PROTO STDCALL :DWORD
WSAStartup PROTO STDCALL :DWORD,:DWORD
WSAUnhookBlockingHook PROTO STDCALL
__WSAFDIsSet PROTO STDCALL :DWORD,:DWORD
accept PROTO STDCALL :DWORD,:DWORD,:DWORD
bind PROTO STDCALL :DWORD,:DWORD,:DWORD
closesocket PROTO STDCALL :DWORD
connect PROTO STDCALL :DWORD,:DWORD,:DWORD
dn_expand PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
gethostbyaddr PROTO STDCALL :DWORD,:DWORD,:DWORD
gethostbyname PROTO STDCALL :DWORD
gethostname PROTO STDCALL :DWORD,:DWORD
getnetbyname PROTO STDCALL :DWORD
getpeername PROTO STDCALL :DWORD,:DWORD,:DWORD
getprotobyname PROTO STDCALL :DWORD
getprotobynumber PROTO STDCALL :DWORD
getservbyname PROTO STDCALL :DWORD,:DWORD
getservbyport PROTO STDCALL :DWORD,:DWORD
getsockname PROTO STDCALL :DWORD,:DWORD,:DWORD
getsockopt PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
htonl PROTO STDCALL :DWORD
htons PROTO STDCALL :DWORD
inet_addr PROTO STDCALL :DWORD
inet_network PROTO STDCALL :DWORD
inet_ntoa PROTO STDCALL :DWORD
ioctlsocket PROTO STDCALL :DWORD,:DWORD,:DWORD
listen PROTO STDCALL :DWORD,:DWORD
ntohl PROTO STDCALL :DWORD
ntohs PROTO STDCALL :DWORD
rcmd PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
recv PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
recvfrom PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
rexec PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
rresvport PROTO STDCALL :DWORD
s_perror PROTO STDCALL :DWORD,:DWORD
select PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
send PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
sendto PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
sethostname PROTO STDCALL :DWORD,:DWORD
setsockopt PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
shutdown PROTO STDCALL :DWORD,:DWORD
socket PROTO STDCALL :DWORD,:DWORD,:DWORD

ELSE
  echo ------------------------------------------
  echo WARNING duplicate include file wsock32.inc
  echo ------------------------------------------
ENDIF
