2 (cl:in-package w32apimod
)
4 (define-w32api-module winsock
:winsock
)
6 (cl:in-package cl-w32api.module.winsock
)
9 (defconstant-exported FD_SETSIZE
64)
11 (defconstant-exported SD_RECEIVE
#x00
)
13 (defconstant-exported SD_SEND
#x01
)
15 (defconstant-exported SD_BOTH
#x02
)
17 (defcstructex-exported fd_set
18 (fd_count :unsigned-int
)
23 (defcfunex-exported ("__WSAFDIsSet" __WSAFDIsSet
:convention
:stdcall
) :int
27 (defcstructex-exported timeval
31 (defcstructex-exported hostent
36 (h_addr_list :pointer
))
38 (defcstructex-exported linger
39 (l_onoff :unsigned-short
)
40 (l_linger :unsigned-short
))
42 (defconstant-exported IOCPARM_MASK
#x7f
)
44 (defconstant-exported IOC_VOID
#x20000000
)
46 (defconstant-exported IOC_OUT
#x40000000
)
48 (defconstant-exported IOC_IN
#x80000000
)
50 (defconstant-exported IOC_INOUT
(cl:logior
#x80000000
#x40000000
))
52 (defcstructex-exported netent
56 (n_net :unsigned-long
))
58 (defcstructex-exported servent
64 (defcstructex-exported protoent
69 (defconstant-exported IPPROTO_IP
0)
71 (defconstant-exported IPPROTO_ICMP
1)
73 (defconstant-exported IPPROTO_IGMP
2)
75 (defconstant-exported IPPROTO_GGP
3)
77 (defconstant-exported IPPROTO_TCP
6)
79 (defconstant-exported IPPROTO_PUP
12)
81 (defconstant-exported IPPROTO_UDP
17)
83 (defconstant-exported IPPROTO_IDP
22)
85 (defconstant-exported IPPROTO_ND
77)
87 (defconstant-exported IPPROTO_RAW
255)
89 (defconstant-exported IPPROTO_MAX
256)
91 (defconstant-exported IPPROTO_HOPOPTS
0)
93 (defconstant-exported IPPROTO_IPV6
41)
95 (defconstant-exported IPPROTO_ROUTING
43)
97 (defconstant-exported IPPROTO_FRAGMENT
44)
99 (defconstant-exported IPPROTO_ESP
50)
101 (defconstant-exported IPPROTO_AH
51)
103 (defconstant-exported IPPROTO_ICMPV6
58)
105 (defconstant-exported IPPROTO_NONE
59)
107 (defconstant-exported IPPROTO_DSTOPTS
60)
109 (defconstant-exported IPPORT_ECHO
7)
111 (defconstant-exported IPPORT_DISCARD
9)
113 (defconstant-exported IPPORT_SYSTAT
11)
115 (defconstant-exported IPPORT_DAYTIME
13)
117 (defconstant-exported IPPORT_NETSTAT
15)
119 (defconstant-exported IPPORT_FTP
21)
121 (defconstant-exported IPPORT_TELNET
23)
123 (defconstant-exported IPPORT_SMTP
25)
125 (defconstant-exported IPPORT_TIMESERVER
37)
127 (defconstant-exported IPPORT_NAMESERVER
42)
129 (defconstant-exported IPPORT_WHOIS
43)
131 (defconstant-exported IPPORT_MTP
57)
133 (defconstant-exported IPPORT_TFTP
69)
135 (defconstant-exported IPPORT_RJE
77)
137 (defconstant-exported IPPORT_FINGER
79)
139 (defconstant-exported IPPORT_TTYLINK
87)
141 (defconstant-exported IPPORT_SUPDUP
95)
143 (defconstant-exported IPPORT_EXECSERVER
512)
145 (defconstant-exported IPPORT_LOGINSERVER
513)
147 (defconstant-exported IPPORT_CMDSERVER
514)
149 (defconstant-exported IPPORT_EFSSERVER
520)
151 (defconstant-exported IPPORT_BIFFUDP
512)
153 (defconstant-exported IPPORT_WHOSERVER
513)
155 (defconstant-exported IPPORT_ROUTESERVER
520)
157 (defconstant-exported IPPORT_RESERVED
1024)
159 (defconstant-exported IMPLINK_IP
155)
161 (defconstant-exported IMPLINK_LOWEXPER
156)
163 (defconstant-exported IMPLINK_HIGHEXPER
158)
165 (defcstructex-exported in_addr
168 (cffi:defcunion in_addr_S_un
169 (S_addr :unsigned-long
)
173 (defcstructex-exported in_addr_S_un_S_un_w
174 (s_w1 :unsigned-short
)
175 (s_w2 :unsigned-short
))
177 (defcstructex-exported in_addr_S_un_S_un_b
178 (s_b1 :unsigned-char
)
179 (s_b2 :unsigned-char
)
180 (s_b3 :unsigned-char
)
181 (s_b4 :unsigned-char
))
183 (defconstant-exported IN_CLASSA_NET
#xff000000
)
185 (defconstant-exported IN_CLASSA_NSHIFT
24)
187 (defconstant-exported IN_CLASSA_HOST
#x00ffffff
)
189 (defconstant-exported IN_CLASSA_MAX
128)
191 (defconstant-exported IN_CLASSB_NET
#xffff0000
)
193 (defconstant-exported IN_CLASSB_NSHIFT
16)
195 (defconstant-exported IN_CLASSB_HOST
#x0000ffff
)
197 (defconstant-exported IN_CLASSB_MAX
65536)
199 (defconstant-exported IN_CLASSC_NET
#xffffff00
)
201 (defconstant-exported IN_CLASSC_NSHIFT
8)
203 (defconstant-exported IN_CLASSC_HOST
#xff
)
205 (defconstant-exported INADDR_LOOPBACK
#x7f000001
)
207 (defconstant-exported INADDR_NONE
#xffffffff
)
209 (defcstructex-exported sockaddr_in
211 (sin_port :unsigned-short
)
215 (defconstant-exported WSADESCRIPTION_LEN
256)
217 (defconstant-exported WSASYS_STATUS_LEN
128)
219 (defcstructex-exported WSADATA
220 (wVersion :unsigned-short
)
221 (wHighVersion :unsigned-short
)
222 (szDescription :pointer
)
223 (szSystemStatus :pointer
)
224 (iMaxSockets :unsigned-short
)
225 (iMaxUdpDg :unsigned-short
)
226 (lpVendorInfo :string
))
232 (defconstant-exported IP_OPTIONS
1)
234 (defconstant-exported SO_DEBUG
1)
236 (defconstant-exported SO_ACCEPTCONN
2)
238 (defconstant-exported SO_REUSEADDR
4)
240 (defconstant-exported SO_KEEPALIVE
8)
242 (defconstant-exported SO_DONTROUTE
16)
244 (defconstant-exported SO_BROADCAST
32)
246 (defconstant-exported SO_USELOOPBACK
64)
248 (defconstant-exported SO_LINGER
128)
250 (defconstant-exported SO_OOBINLINE
256)
252 (defconstant-exported SO_SNDBUF
#x1001
)
254 (defconstant-exported SO_RCVBUF
#x1002
)
256 (defconstant-exported SO_SNDLOWAT
#x1003
)
258 (defconstant-exported SO_RCVLOWAT
#x1004
)
260 (defconstant-exported SO_SNDTIMEO
#x1005
)
262 (defconstant-exported SO_RCVTIMEO
#x1006
)
264 (defconstant-exported SO_ERROR
#x1007
)
266 (defconstant-exported SO_TYPE
#x1008
)
268 (defconstant-exported SOCKET_ERROR -
1)
270 (defconstant-exported SOCK_STREAM
1)
272 (defconstant-exported SOCK_DGRAM
2)
274 (defconstant-exported SOCK_RAW
3)
276 (defconstant-exported SOCK_RDM
4)
278 (defconstant-exported SOCK_SEQPACKET
5)
280 (defconstant-exported TCP_NODELAY
#x0001
)
282 (defconstant-exported AF_UNSPEC
0)
284 (defconstant-exported AF_UNIX
1)
286 (defconstant-exported AF_INET
2)
288 (defconstant-exported AF_IMPLINK
3)
290 (defconstant-exported AF_PUP
4)
292 (defconstant-exported AF_CHAOS
5)
294 (defconstant-exported AF_IPX
6)
296 (defconstant-exported AF_NS
6)
298 (defconstant-exported AF_ISO
7)
300 (defconstant-exported AF_OSI
7)
302 (defconstant-exported AF_ECMA
8)
304 (defconstant-exported AF_DATAKIT
9)
306 (defconstant-exported AF_CCITT
10)
308 (defconstant-exported AF_SNA
11)
310 (defconstant-exported AF_DECnet
12)
312 (defconstant-exported AF_DLI
13)
314 (defconstant-exported AF_LAT
14)
316 (defconstant-exported AF_HYLINK
15)
318 (defconstant-exported AF_APPLETALK
16)
320 (defconstant-exported AF_NETBIOS
17)
322 (defconstant-exported AF_VOICEVIEW
18)
324 (defconstant-exported AF_FIREFOX
19)
326 (defconstant-exported AF_UNKNOWN1
20)
328 (defconstant-exported AF_BAN
21)
330 (defconstant-exported AF_ATM
22)
332 (defconstant-exported AF_INET6
23)
334 (defconstant-exported AF_CLUSTER
24)
336 (defconstant-exported AF_12844
25)
338 (defconstant-exported AF_IRDA
26)
340 (defconstant-exported AF_NETDES
28)
342 (defconstant-exported AF_MAX
29)
344 (defcstructex-exported sockaddr
345 (sa_family :unsigned-short
)
348 (defcstructex-exported sockaddr_storage
351 (__ss_align :long-long
)
352 (__ss_pad2 :pointer
))
354 (defcstructex-exported sockproto
355 (sp_family :unsigned-short
)
356 (sp_protocol :unsigned-short
))
358 (defconstant-exported PF_UNSPEC
0)
360 (defconstant-exported PF_UNIX
1)
362 (defconstant-exported PF_INET
2)
364 (defconstant-exported PF_IMPLINK
3)
366 (defconstant-exported PF_PUP
4)
368 (defconstant-exported PF_CHAOS
5)
370 (defconstant-exported PF_NS
6)
372 (defconstant-exported PF_IPX
6)
374 (defconstant-exported PF_ISO
7)
376 (defconstant-exported PF_OSI
7)
378 (defconstant-exported PF_ECMA
8)
380 (defconstant-exported PF_DATAKIT
9)
382 (defconstant-exported PF_CCITT
10)
384 (defconstant-exported PF_SNA
11)
386 (defconstant-exported PF_DECnet
12)
388 (defconstant-exported PF_DLI
13)
390 (defconstant-exported PF_LAT
14)
392 (defconstant-exported PF_HYLINK
15)
394 (defconstant-exported PF_APPLETALK
16)
396 (defconstant-exported PF_VOICEVIEW
18)
398 (defconstant-exported PF_FIREFOX
19)
400 (defconstant-exported PF_UNKNOWN1
20)
402 (defconstant-exported PF_BAN
21)
404 (defconstant-exported PF_ATM
22)
406 (defconstant-exported PF_INET6
23)
408 (defconstant-exported PF_MAX
29)
410 (defconstant-exported SOL_SOCKET
#xffff
)
412 (defconstant-exported SOMAXCONN
#x7fffffff
)
414 (defconstant-exported MSG_OOB
1)
416 (defconstant-exported MSG_PEEK
2)
418 (defconstant-exported MSG_DONTROUTE
4)
420 (defconstant-exported MSG_MAXIOVLEN
16)
422 (defconstant-exported MSG_PARTIAL
#x8000
)
424 (defconstant-exported MAXGETHOSTSTRUCT
1024)
426 (defconstant-exported FD_READ_BIT
0)
428 (defconstant-exported FD_READ
(cl:ash
1 0))
430 (defconstant-exported FD_WRITE_BIT
1)
432 (defconstant-exported FD_WRITE
(cl:ash
1 1))
434 (defconstant-exported FD_OOB_BIT
2)
436 (defconstant-exported FD_OOB
(cl:ash
1 2))
438 (defconstant-exported FD_ACCEPT_BIT
3)
440 (defconstant-exported FD_ACCEPT
(cl:ash
1 3))
442 (defconstant-exported FD_CONNECT_BIT
4)
444 (defconstant-exported FD_CONNECT
(cl:ash
1 4))
446 (defconstant-exported FD_CLOSE_BIT
5)
448 (defconstant-exported FD_CLOSE
(cl:ash
1 5))
450 (defconstant-exported FD_QOS_BIT
6)
452 (defconstant-exported FD_QOS
(cl:ash
1 6))
454 (defconstant-exported FD_GROUP_QOS_BIT
7)
456 (defconstant-exported FD_GROUP_QOS
(cl:ash
1 7))
458 (defconstant-exported FD_ROUTING_INTERFACE_CHANGE_BIT
8)
460 (defconstant-exported FD_ROUTING_INTERFACE_CHANGE
(cl:ash
1 8))
462 (defconstant-exported FD_ADDRESS_LIST_CHANGE_BIT
9)
464 (defconstant-exported FD_ADDRESS_LIST_CHANGE
(cl:ash
1 9))
466 (defconstant-exported FD_MAX_EVENTS
10)
468 (defconstant-exported FD_ALL_EVENTS
(cl:-
(cl:ash
1 10) 1))
470 (defconstant-exported WSANO_ADDRESS
11004)
472 (defconstant-exported HOST_NOT_FOUND
11001)
474 (defconstant-exported TRY_AGAIN
11002)
476 (defconstant-exported NO_RECOVERY
11003)
478 (defconstant-exported NO_DATA
11004)
480 (defconstant-exported NO_ADDRESS
11004)
482 (defcfunex-exported ("accept" accept
:convention
:stdcall
) :unsigned-int
487 (defcfunex-exported ("bind" bind
:convention
:stdcall
) :int
492 (defcfunex-exported ("closesocket" closesocket
:convention
:stdcall
) :int
493 (arg0 :unsigned-int
))
495 (defcfunex-exported ("connect" connect
:convention
:stdcall
) :int
500 (defcfunex-exported ("ioctlsocket" ioctlsocket
:convention
:stdcall
) :int
505 (defcfunex-exported ("getpeername" getpeername
:convention
:stdcall
) :int
510 (defcfunex-exported ("getsockname" getsockname
:convention
:stdcall
) :int
515 (defcfunex-exported ("getsockopt" getsockopt
:convention
:stdcall
) :int
522 (defcfunex-exported ("inet_addr" inet_addr
:convention
:stdcall
) :unsigned-long
525 (defcfunex-exported ("inet_ntoa" inet_ntoa
:convention
:stdcall
) :string
528 (defcfunex-exported ("listen" listen
:convention
:stdcall
) :int
532 (defcfunex-exported ("recv" recv
:convention
:stdcall
) :int
538 (defcfunex-exported ("recvfrom" recvfrom
:convention
:stdcall
) :int
546 (defcfunex-exported ("send" send
:convention
:stdcall
) :int
552 (defcfunex-exported ("sendto" sendto
:convention
:stdcall
) :int
560 (defcfunex-exported ("setsockopt" setsockopt
:convention
:stdcall
) :int
567 (defcfunex-exported ("shutdown" shutdown
:convention
:stdcall
) :int
571 (defcfunex-exported ("socket" socket
:convention
:stdcall
) :unsigned-int
576 (defcfunex-exported ("gethostbyaddr" gethostbyaddr
:convention
:stdcall
) :pointer
581 (defcfunex-exported ("gethostbyname" gethostbyname
:convention
:stdcall
) :pointer
584 (defcfunex-exported ("getservbyport" getservbyport
:convention
:stdcall
) :pointer
588 (defcfunex-exported ("getservbyname" getservbyname
:convention
:stdcall
) :pointer
592 (defcfunex-exported ("getprotobynumber" getprotobynumber
:convention
:stdcall
) :pointer
595 (defcfunex-exported ("getprotobyname" getprotobyname
:convention
:stdcall
) :pointer
658 (defcfunex-exported ("WSAStartup" WSAStartup
:convention
:stdcall
) :int
659 (arg0 :unsigned-short
)
662 (defcfunex-exported ("WSACleanup" WSACleanup
:convention
:stdcall
) :int
)
664 (defcfunex-exported ("WSASetLastError" WSASetLastError
:convention
:stdcall
) :void
667 (defcfunex-exported ("WSAGetLastError" WSAGetLastError
:convention
:stdcall
) :int
)
677 (defcfunex-exported ("WSAIsBlocking" WSAIsBlocking
:convention
:stdcall
) :int
)
679 (defcfunex-exported ("WSAUnhookBlockingHook" WSAUnhookBlockingHook
:convention
:stdcall
) :int
)
681 (defcfunex-exported ("WSASetBlockingHook" WSASetBlockingHook
:convention
:stdcall
) :pointer
684 (defcfunex-exported ("WSACancelBlockingCall" WSACancelBlockingCall
:convention
:stdcall
) :int
)
694 (defcfunex-exported ("WSAAsyncGetServByName" WSAAsyncGetServByName
:convention
:stdcall
) :pointer
702 (defcfunex-exported ("WSAAsyncGetServByPort" WSAAsyncGetServByPort
:convention
:stdcall
) :pointer
710 (defcfunex-exported ("WSAAsyncGetProtoByName" WSAAsyncGetProtoByName
:convention
:stdcall
) :pointer
717 (defcfunex-exported ("WSAAsyncGetProtoByNumber" WSAAsyncGetProtoByNumber
:convention
:stdcall
) :pointer
724 (defcfunex-exported ("WSAAsyncGetHostByName" WSAAsyncGetHostByName
:convention
:stdcall
) :pointer
731 (defcfunex-exported ("WSAAsyncGetHostByAddr" WSAAsyncGetHostByAddr
:convention
:stdcall
) :pointer
740 (defcfunex-exported ("WSACancelAsyncRequest" WSACancelAsyncRequest
:convention
:stdcall
) :int
743 (defcfunex-exported ("WSAAsyncSelect" WSAAsyncSelect
:convention
:stdcall
) :int
763 (defcfunex-exported ("htonl" htonl
:convention
:stdcall
) :unsigned-long
764 (arg0 :unsigned-long
))
766 (defcfunex-exported ("ntohl" ntohl
:convention
:stdcall
) :unsigned-long
767 (arg0 :unsigned-long
))
769 (defcfunex-exported ("htons" htons
:convention
:stdcall
) :unsigned-short
770 (arg0 :unsigned-short
))
772 (defcfunex-exported ("ntohs" ntohs
:convention
:stdcall
) :unsigned-short
773 (arg0 :unsigned-short
))
775 (defcfunex-exported ("select" select
:convention
:stdcall
) :int
782 (defcfunex-exported ("gethostname" gethostname
:convention
:stdcall
) :int
844 (defconstant-exported IN_CLASSD_NET
#xf0000000
)
846 (defconstant-exported IN_CLASSD_NSHIFT
28)
848 (defconstant-exported IN_CLASSD_HOST
#x0fffffff
)
850 (defconstant-exported FROM_PROTOCOL_INFO -
1)
852 (defconstant-exported SO_GROUP_ID
#x2001
)
854 (defconstant-exported SO_GROUP_PRIORITY
#x2002
)
856 (defconstant-exported SO_MAX_MSG_SIZE
#x2003
)
858 (defconstant-exported SO_PROTOCOL_INFOA
#x2004
)
860 (defconstant-exported SO_PROTOCOL_INFOW
#x2005
)
862 (defconstant-exported SO_PROTOCOL_INFO
#x2004
)
864 (defconstant-exported PVD_CONFIG
#x3001
)
866 (defconstant-exported MSG_INTERRUPT
#x10
)
870 (defconstant-exported WSA_IO_PENDING
997)
872 (defconstant-exported WSA_IO_INCOMPLETE
996)
874 (defconstant-exported WSA_INVALID_HANDLE
6)
876 (defconstant-exported WSA_INVALID_PARAMETER
87)
878 (defconstant-exported WSA_NOT_ENOUGH_MEMORY
8)
880 (defconstant-exported WSA_OPERATION_ABORTED
995)
882 (defconstant-exported WSA_MAXIMUM_WAIT_EVENTS
64)
884 (defconstant-exported WSA_WAIT_EVENT_0
0)
886 (defconstant-exported WSA_WAIT_IO_COMPLETION
#xC0
)
888 (defconstant-exported WSA_WAIT_TIMEOUT
258)
890 (defconstant-exported WSA_INFINITE
#xFFFFFFFF
)
892 (defcstructex-exported WSABUF
900 (cffi:defcenum GUARANTEE
902 :ControlledLoadService
904 :GuaranteedDelayService
909 (defcstructex-exported FLOWSPEC
910 (TokenRate :unsigned-int
)
911 (TokenBucketSize :unsigned-int
)
912 (PeakBandwidth :unsigned-int
)
913 (Latency :unsigned-int
)
914 (DelayVariation :unsigned-int
)
915 (ServiceType :unsigned-int
)
916 (MaxSduSize :unsigned-int
)
917 (MinimumPolicedSize :unsigned-int
))
925 (defcstructex-exported QOS
926 (SendingFlowspec FLOWSPEC
)
927 (ReceivingFlowspec FLOWSPEC
)
928 (ProviderSpecific WSABUF
))
934 (defconstant-exported CF_ACCEPT
#x0000
)
936 (defconstant-exported CF_REJECT
#x0001
)
938 (defconstant-exported CF_DEFER
#x0002
)
942 (defconstant-exported SG_UNCONSTRAINED_GROUP
#x01
)
944 (defconstant-exported SG_CONSTRAINED_GROUP
#x02
)
946 (defcstructex-exported WSANETWORKEVENTS
947 (lNetworkEvents :int32
)
948 (iErrorCode :pointer
))
954 (defconstant-exported MAX_PROTOCOL_CHAIN
7)
956 (defconstant-exported BASE_PROTOCOL
1)
958 (defconstant-exported LAYERED_PROTOCOL
0)
960 (cffi:defcenum WSAESETSERVICEOP
961 (:RNRSERVICE_REGISTER
#.0)
962 :RNRSERVICE_DEREGISTER
969 (defcstructex-exported AFPROTOCOLS
970 (iAddressFamily :int
)
979 (cffi:defcenum WSAECOMPARATOR
987 (defcstructex-exported WSAVERSION
988 (dwVersion :unsigned-long
)
989 (ecHow WSAECOMPARATOR
))
997 (defcstructex-exported SOCKET_ADDRESS
998 (lpSockaddr :pointer
)
999 (iSockaddrLength :int
))
1007 (defcstructex-exported CSADDR_INFO
1008 (LocalAddr SOCKET_ADDRESS
)
1009 (RemoteAddr SOCKET_ADDRESS
)
1019 (defcstructex-exported SOCKET_ADDRESS_LIST
1020 (iAddressCount :int
)
1027 (defcstructex-exported BLOB
1028 (cbSize :unsigned-long
)
1029 (pBlobData :pointer
))
1037 (defcstructex-exported WSAQUERYSETA
1038 (dwSize :unsigned-long
)
1039 (lpszServiceInstanceName :string
)
1040 (lpServiceClassId :pointer
)
1041 (lpVersion :pointer
)
1042 (lpszComment :string
)
1043 (dwNameSpace :unsigned-long
)
1044 (lpNSProviderId :pointer
)
1045 (lpszContext :string
)
1046 (dwNumberOfProtocols :unsigned-long
)
1047 (lpafpProtocols :pointer
)
1048 (lpszQueryString :string
)
1049 (dwNumberOfCsAddrs :unsigned-long
)
1050 (lpcsaBuffer :pointer
)
1051 (dwOutputFlags :unsigned-long
)
1060 (defcstructex-exported WSAQUERYSETW
1061 (dwSize :unsigned-long
)
1062 (lpszServiceInstanceName :pointer
)
1063 (lpServiceClassId :pointer
)
1064 (lpVersion :pointer
)
1065 (lpszComment :pointer
)
1066 (dwNameSpace :unsigned-long
)
1067 (lpNSProviderId :pointer
)
1068 (lpszContext :pointer
)
1069 (dwNumberOfProtocols :unsigned-long
)
1070 (lpafpProtocols :pointer
)
1071 (lpszQueryString :pointer
)
1072 (dwNumberOfCsAddrs :unsigned-long
)
1073 (lpcsaBuffer :pointer
)
1074 (dwOutputFlags :unsigned-long
)
1089 (defconstant-exported LUP_DEEP
#x0001
)
1091 (defconstant-exported LUP_CONTAINERS
#x0002
)
1093 (defconstant-exported LUP_NOCONTAINERS
#x0004
)
1095 (defconstant-exported LUP_NEAREST
#x0008
)
1097 (defconstant-exported LUP_RETURN_NAME
#x0010
)
1099 (defconstant-exported LUP_RETURN_TYPE
#x0020
)
1101 (defconstant-exported LUP_RETURN_VERSION
#x0040
)
1103 (defconstant-exported LUP_RETURN_COMMENT
#x0080
)
1105 (defconstant-exported LUP_RETURN_ADDR
#x0100
)
1107 (defconstant-exported LUP_RETURN_BLOB
#x0200
)
1109 (defconstant-exported LUP_RETURN_ALIASES
#x0400
)
1111 (defconstant-exported LUP_RETURN_QUERY_STRING
#x0800
)
1113 (defconstant-exported LUP_RETURN_ALL
#x0FF0
)
1115 (defconstant-exported LUP_RES_SERVICE
#x8000
)
1117 (defconstant-exported LUP_FLUSHCACHE
#x1000
)
1119 (defconstant-exported LUP_FLUSHPREVIOUS
#x2000
)
1121 (defcstructex-exported WSANSCLASSINFOA
1123 (dwNameSpace :unsigned-long
)
1124 (dwValueType :unsigned-long
)
1125 (dwValueSize :unsigned-long
)
1134 (defcstructex-exported WSANSCLASSINFOW
1136 (dwNameSpace :unsigned-long
)
1137 (dwValueType :unsigned-long
)
1138 (dwValueSize :unsigned-long
)
1153 (defcstructex-exported WSASERVICECLASSINFOA
1154 (lpServiceClassId :pointer
)
1155 (lpszServiceClassName :string
)
1156 (dwCount :unsigned-long
)
1157 (lpClassInfos :pointer
))
1165 (defcstructex-exported WSASERVICECLASSINFOW
1166 (lpServiceClassId :pointer
)
1167 (lpszServiceClassName :pointer
)
1168 (dwCount :unsigned-long
)
1169 (lpClassInfos :pointer
))
1183 (defcstructex-exported WSANAMESPACE_INFOA
1185 (dwNameSpace :unsigned-long
)
1187 (dwVersion :unsigned-long
)
1188 (lpszIdentifier :string
))
1196 (defcstructex-exported WSANAMESPACE_INFOW
1198 (dwNameSpace :unsigned-long
)
1200 (dwVersion :unsigned-long
)
1201 (lpszIdentifier :pointer
))
1215 (defcstructex-exported WSAPROTOCOLCHAIN
1217 (ChainEntries :pointer
))
1223 (defconstant-exported WSAPROTOCOL_LEN
255)
1225 (defcstructex-exported WSAPROTOCOL_INFOA
1226 (dwServiceFlags1 :unsigned-long
)
1227 (dwServiceFlags2 :unsigned-long
)
1228 (dwServiceFlags3 :unsigned-long
)
1229 (dwServiceFlags4 :unsigned-long
)
1230 (dwProviderFlags :unsigned-long
)
1232 (dwCatalogEntryId :unsigned-long
)
1233 (ProtocolChain WSAPROTOCOLCHAIN
)
1235 (iAddressFamily :int
)
1240 (iProtocolMaxOffset :int
)
1241 (iNetworkByteOrder :int
)
1242 (iSecurityScheme :int
)
1243 (dwMessageSize :unsigned-long
)
1244 (dwProviderReserved :unsigned-long
)
1245 (szProtocol :pointer
))
1251 (defcstructex-exported WSAPROTOCOL_INFOW
1252 (dwServiceFlags1 :unsigned-long
)
1253 (dwServiceFlags2 :unsigned-long
)
1254 (dwServiceFlags3 :unsigned-long
)
1255 (dwServiceFlags4 :unsigned-long
)
1256 (dwProviderFlags :unsigned-long
)
1258 (dwCatalogEntryId :unsigned-long
)
1259 (ProtocolChain WSAPROTOCOLCHAIN
)
1261 (iAddressFamily :int
)
1266 (iProtocolMaxOffset :int
)
1267 (iNetworkByteOrder :int
)
1268 (iSecurityScheme :int
)
1269 (dwMessageSize :unsigned-long
)
1270 (dwProviderReserved :unsigned-long
)
1271 (szProtocol :pointer
))
1285 (cffi:defcenum WSACOMPLETIONTYPE
1286 (:NSP_NOTIFY_IMMEDIATELY
#.0)
1296 (defcstructex-exported WSACOMPLETION
1297 (Type WSACOMPLETIONTYPE
)
1298 (Parameters :pointer
))
1306 (cffi:defcunion WSACOMPLETION_Parameters
1307 (WindowMessage :pointer
)
1312 (defcstructex-exported WSACOMPLETION_Parameters_Port
1313 (lpOverlapped :pointer
)
1315 (Key :unsigned-long
))
1317 (defcstructex-exported WSACOMPLETION_Parameters_Apc
1318 (lpOverlapped :pointer
)
1319 (lpfnCompletionProc :pointer
))
1321 (defcstructex-exported WSACOMPLETION_Parameters_Event
1322 (lpOverlapped :pointer
))
1324 (defcstructex-exported WSACOMPLETION_Parameters_WindowMessage
1326 (uMsg :unsigned-int
)
1327 (context :unsigned-int
))
1329 (defconstant-exported PFL_MULTIPLE_PROTO_ENTRIES
#x00000001
)
1331 (defconstant-exported PFL_RECOMMENDED_PROTO_ENTRY
#x00000002
)
1333 (defconstant-exported PFL_HIDDEN
#x00000004
)
1335 (defconstant-exported PFL_MATCHES_PROTOCOL_ZERO
#x00000008
)
1337 (defconstant-exported XP1_CONNECTIONLESS
#x00000001
)
1339 (defconstant-exported XP1_GUARANTEED_DELIVERY
#x00000002
)
1341 (defconstant-exported XP1_GUARANTEED_ORDER
#x00000004
)
1343 (defconstant-exported XP1_MESSAGE_ORIENTED
#x00000008
)
1345 (defconstant-exported XP1_PSEUDO_STREAM
#x00000010
)
1347 (defconstant-exported XP1_GRACEFUL_CLOSE
#x00000020
)
1349 (defconstant-exported XP1_EXPEDITED_DATA
#x00000040
)
1351 (defconstant-exported XP1_CONNECT_DATA
#x00000080
)
1353 (defconstant-exported XP1_DISCONNECT_DATA
#x00000100
)
1355 (defconstant-exported XP1_SUPPORT_BROADCAST
#x00000200
)
1357 (defconstant-exported XP1_SUPPORT_MULTIPOINT
#x00000400
)
1359 (defconstant-exported XP1_MULTIPOINT_CONTROL_PLANE
#x00000800
)
1361 (defconstant-exported XP1_MULTIPOINT_DATA_PLANE
#x00001000
)
1363 (defconstant-exported XP1_QOS_SUPPORTED
#x00002000
)
1365 (defconstant-exported XP1_INTERRUPT
#x00004000
)
1367 (defconstant-exported XP1_UNI_SEND
#x00008000
)
1369 (defconstant-exported XP1_UNI_RECV
#x00010000
)
1371 (defconstant-exported XP1_IFS_HANDLES
#x00020000
)
1373 (defconstant-exported XP1_PARTIAL_MESSAGE
#x00040000
)
1375 (defconstant-exported BIGENDIAN
#x0000
)
1377 (defconstant-exported LITTLEENDIAN
#x0001
)
1379 (defconstant-exported SECURITY_PROTOCOL_NONE
#x0000
)
1381 (defconstant-exported JL_SENDER_ONLY
#x01
)
1383 (defconstant-exported JL_RECEIVER_ONLY
#x02
)
1385 (defconstant-exported JL_BOTH
#x04
)
1387 (defconstant-exported WSA_FLAG_OVERLAPPED
#x01
)
1389 (defconstant-exported WSA_FLAG_MULTIPOINT_C_ROOT
#x02
)
1391 (defconstant-exported WSA_FLAG_MULTIPOINT_C_LEAF
#x04
)
1393 (defconstant-exported WSA_FLAG_MULTIPOINT_D_ROOT
#x08
)
1395 (defconstant-exported WSA_FLAG_MULTIPOINT_D_LEAF
#x10
)
1397 (defconstant-exported IOC_UNIX
#x00000000
)
1399 (defconstant-exported IOC_WS2
#x08000000
)
1401 (defconstant-exported IOC_PROTOCOL
#x10000000
)
1403 (defconstant-exported IOC_VENDOR
#x18000000
)
1405 (defconstant-exported SIO_ASSOCIATE_HANDLE
(cl:logior
#x80000000
#x08000000
1))
1407 (defconstant-exported SIO_ENABLE_CIRCULAR_QUEUEING
(cl:logior
#x20000000
#x08000000
2))
1409 (defconstant-exported SIO_FIND_ROUTE
(cl:logior
#x40000000
#x08000000
3))
1411 (defconstant-exported SIO_FLUSH
(cl:logior
#x20000000
#x08000000
4))
1413 (defconstant-exported SIO_GET_BROADCAST_ADDRESS
(cl:logior
#x40000000
#x08000000
5))
1415 (defconstant-exported SIO_GET_EXTENSION_FUNCTION_POINTER
(cl:logior IOC_INOUT IOC_WS2
6))
1417 (defconstant-exported SIO_GET_QOS
(cl:logior IOC_INOUT IOC_WS2
7))
1419 (defconstant-exported SIO_GET_GROUP_QOS
(cl:logior IOC_INOUT IOC_WS2
8))
1421 (defconstant-exported SIO_MULTIPOINT_LOOPBACK
(cl:logior
#x80000000
#x08000000
9))
1423 (defconstant-exported SIO_MULTICAST_SCOPE
(cl:logior
#x80000000
#x08000000
10))
1425 (defconstant-exported SIO_SET_QOS
(cl:logior
#x80000000
#x08000000
11))
1427 (defconstant-exported SIO_SET_GROUP_QOS
(cl:logior
#x80000000
#x08000000
12))
1429 (defconstant-exported SIO_TRANSLATE_HANDLE
(cl:logior IOC_INOUT IOC_WS2
13))
1431 (defconstant-exported SIO_ROUTING_INTERFACE_QUERY
(cl:logior IOC_INOUT IOC_WS2
20))
1433 (defconstant-exported SIO_ROUTING_INTERFACE_CHANGE
(cl:logior
#x80000000
#x08000000
21))
1435 (defconstant-exported SIO_ADDRESS_LIST_QUERY
(cl:logior
#x40000000
#x08000000
22))
1437 (defconstant-exported SIO_ADDRESS_LIST_CHANGE
(cl:logior
#x20000000
#x08000000
23))
1439 (defconstant-exported SIO_QUERY_TARGET_PNP_HANDLE
(cl:logior
#x40000000
#x08000000
24))
1441 (defconstant-exported SIO_NSP_NOTIFY_CHANGE
(cl:logior
#x80000000
#x08000000
25))
1443 (defconstant-exported TH_NETDEV
#x00000001
)
1445 (defconstant-exported TH_TAPI
#x00000002
)
1447 (defcfunex-exported ("WSAAccept" WSAAccept
:convention
:stdcall
) :unsigned-int
1448 (arg0 :unsigned-int
)
1452 (arg4 :unsigned-long
))
1454 (defcfunex-exported ("WSAAddressToStringA" WSAAddressToStringA
:convention
:stdcall
) :int
1456 (arg1 :unsigned-long
)
1461 (defcfunex-exported ("WSAAddressToStringW" WSAAddressToStringW
:convention
:stdcall
) :int
1463 (arg1 :unsigned-long
)
1468 (defcfunex-exported ("WSACloseEvent" WSACloseEvent
:convention
:stdcall
) :int
1471 (defcfunex-exported ("WSAConnect" WSAConnect
:convention
:stdcall
) :int
1472 (arg0 :unsigned-int
)
1480 (defcfunex-exported ("WSACreateEvent" WSACreateEvent
:convention
:stdcall
) :pointer
)
1482 (defcfunex-exported ("WSADuplicateSocketA" WSADuplicateSocketA
:convention
:stdcall
) :int
1483 (arg0 :unsigned-int
)
1484 (arg1 :unsigned-long
)
1487 (defcfunex-exported ("WSADuplicateSocketW" WSADuplicateSocketW
:convention
:stdcall
) :int
1488 (arg0 :unsigned-int
)
1489 (arg1 :unsigned-long
)
1492 (defcfunex-exported ("WSAEnumNameSpaceProvidersA" WSAEnumNameSpaceProvidersA
:convention
:stdcall
) :int
1496 (defcfunex-exported ("WSAEnumNameSpaceProvidersW" WSAEnumNameSpaceProvidersW
:convention
:stdcall
) :int
1500 (defcfunex-exported ("WSAEnumNetworkEvents" WSAEnumNetworkEvents
:convention
:stdcall
) :int
1501 (arg0 :unsigned-int
)
1505 (defcfunex-exported ("WSAEnumProtocolsA" WSAEnumProtocolsA
:convention
:stdcall
) :int
1510 (defcfunex-exported ("WSAEnumProtocolsW" WSAEnumProtocolsW
:convention
:stdcall
) :int
1515 (defcfunex-exported ("WSAEventSelect" WSAEventSelect
:convention
:stdcall
) :int
1516 (arg0 :unsigned-int
)
1520 (defcfunex-exported ("WSAGetOverlappedResult" WSAGetOverlappedResult
:convention
:stdcall
) :int
1521 (arg0 :unsigned-int
)
1527 (defcfunex-exported ("WSAGetQOSByName" WSAGetQOSByName
:convention
:stdcall
) :int
1528 (arg0 :unsigned-int
)
1532 (defcfunex-exported ("WSAGetServiceClassInfoA" WSAGetServiceClassInfoA
:convention
:stdcall
) :int
1538 (defcfunex-exported ("WSAGetServiceClassInfoW" WSAGetServiceClassInfoW
:convention
:stdcall
) :int
1544 (defcfunex-exported ("WSAGetServiceClassNameByClassIdA" WSAGetServiceClassNameByClassIdA
:convention
:stdcall
) :int
1549 (defcfunex-exported ("WSAGetServiceClassNameByClassIdW" WSAGetServiceClassNameByClassIdW
:convention
:stdcall
) :int
1554 (defcfunex-exported ("WSAHtonl" WSAHtonl
:convention
:stdcall
) :int
1555 (arg0 :unsigned-int
)
1556 (arg1 :unsigned-long
)
1559 (defcfunex-exported ("WSAHtons" WSAHtons
:convention
:stdcall
) :int
1560 (arg0 :unsigned-int
)
1561 (arg1 :unsigned-short
)
1564 (defcfunex-exported ("WSAInstallServiceClassA" WSAInstallServiceClassA
:convention
:stdcall
) :int
1567 (defcfunex-exported ("WSAInstallServiceClassW" WSAInstallServiceClassW
:convention
:stdcall
) :int
1570 (defcfunex-exported ("WSAIoctl" WSAIoctl
:convention
:stdcall
) :int
1571 (arg0 :unsigned-int
)
1572 (arg1 :unsigned-long
)
1574 (arg3 :unsigned-long
)
1576 (arg5 :unsigned-long
)
1581 (defcfunex-exported ("WSAJoinLeaf" WSAJoinLeaf
:convention
:stdcall
) :unsigned-int
1582 (arg0 :unsigned-int
)
1589 (arg7 :unsigned-long
))
1591 (defcfunex-exported ("WSALookupServiceBeginA" WSALookupServiceBeginA
:convention
:stdcall
) :int
1593 (arg1 :unsigned-long
)
1596 (defcfunex-exported ("WSALookupServiceBeginW" WSALookupServiceBeginW
:convention
:stdcall
) :int
1597 (lpqsRestrictions :pointer
)
1598 (arg1 :unsigned-long
)
1601 (defcfunex-exported ("WSALookupServiceNextA" WSALookupServiceNextA
:convention
:stdcall
) :int
1603 (arg1 :unsigned-long
)
1607 (defcfunex-exported ("WSALookupServiceNextW" WSALookupServiceNextW
:convention
:stdcall
) :int
1609 (arg1 :unsigned-long
)
1613 (defcfunex-exported ("WSALookupServiceEnd" WSALookupServiceEnd
:convention
:stdcall
) :int
1616 (defcfunex-exported ("WSANSPIoctl" WSANSPIoctl
:convention
:stdcall
) :int
1618 (arg1 :unsigned-long
)
1620 (arg3 :unsigned-long
)
1622 (arg5 :unsigned-long
)
1626 (defcfunex-exported ("WSANtohl" WSANtohl
:convention
:stdcall
) :int
1627 (arg0 :unsigned-int
)
1628 (arg1 :unsigned-long
)
1631 (defcfunex-exported ("WSANtohs" WSANtohs
:convention
:stdcall
) :int
1632 (arg0 :unsigned-int
)
1633 (arg1 :unsigned-short
)
1636 (defcfunex-exported ("WSARecv" WSARecv
:convention
:stdcall
) :int
1637 (arg0 :unsigned-int
)
1639 (arg2 :unsigned-long
)
1645 (defcfunex-exported ("WSARecvDisconnect" WSARecvDisconnect
:convention
:stdcall
) :int
1646 (arg0 :unsigned-int
)
1649 (defcfunex-exported ("WSARecvFrom" WSARecvFrom
:convention
:stdcall
) :int
1650 (arg0 :unsigned-int
)
1652 (arg2 :unsigned-long
)
1660 (defcfunex-exported ("WSARemoveServiceClass" WSARemoveServiceClass
:convention
:stdcall
) :int
1663 (defcfunex-exported ("WSAResetEvent" WSAResetEvent
:convention
:stdcall
) :int
1666 (defcfunex-exported ("WSASend" WSASend
:convention
:stdcall
) :int
1667 (arg0 :unsigned-int
)
1669 (arg2 :unsigned-long
)
1671 (arg4 :unsigned-long
)
1675 (defcfunex-exported ("WSASendDisconnect" WSASendDisconnect
:convention
:stdcall
) :int
1676 (arg0 :unsigned-int
)
1679 (defcfunex-exported ("WSASendTo" WSASendTo
:convention
:stdcall
) :int
1680 (arg0 :unsigned-int
)
1682 (arg2 :unsigned-long
)
1684 (arg4 :unsigned-long
)
1690 (defcfunex-exported ("WSASetEvent" WSASetEvent
:convention
:stdcall
) :int
1693 (defcfunex-exported ("WSASetServiceA" WSASetServiceA
:convention
:stdcall
) :int
1695 (arg1 WSAESETSERVICEOP
)
1696 (arg2 :unsigned-long
))
1698 (defcfunex-exported ("WSASetServiceW" WSASetServiceW
:convention
:stdcall
) :int
1700 (arg1 WSAESETSERVICEOP
)
1701 (arg2 :unsigned-long
))
1703 (defcfunex-exported ("WSASocketA" WSASocketA
:convention
:stdcall
) :unsigned-int
1708 (arg4 :unsigned-int
)
1709 (arg5 :unsigned-long
))
1711 (defcfunex-exported ("WSASocketW" WSASocketW
:convention
:stdcall
) :unsigned-int
1716 (arg4 :unsigned-int
)
1717 (arg5 :unsigned-long
))
1719 (defcfunex-exported ("WSAStringToAddressA" WSAStringToAddressA
:convention
:stdcall
) :int
1726 (defcfunex-exported ("WSAStringToAddressW" WSAStringToAddressW
:convention
:stdcall
) :int
1733 (defcfunex-exported ("WSAWaitForMultipleEvents" WSAWaitForMultipleEvents
:convention
:stdcall
) :unsigned-long
1734 (arg0 :unsigned-long
)
1737 (arg3 :unsigned-long
)