2020-09-20 00:13:36 +02:00
|
|
|
/*
|
|
|
|
* Socket driver ioctls
|
|
|
|
*
|
|
|
|
* Copyright 2020 Zebediah Figura for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_AFD_H
|
|
|
|
#define __WINE_WINE_AFD_H
|
|
|
|
|
2021-05-22 05:08:48 +02:00
|
|
|
#include <winternl.h>
|
2020-09-20 00:13:36 +02:00
|
|
|
#include <winioctl.h>
|
2021-05-28 01:57:29 +02:00
|
|
|
#include <mswsock.h>
|
2020-09-20 00:13:36 +02:00
|
|
|
|
2021-05-27 06:36:50 +02:00
|
|
|
#ifdef USE_WS_PREFIX
|
|
|
|
# define WS(x) WS_##x
|
|
|
|
#else
|
|
|
|
# define WS(x) x
|
|
|
|
#endif
|
|
|
|
|
2021-06-16 06:13:27 +02:00
|
|
|
#define IOCTL_AFD_BIND CTL_CODE(FILE_DEVICE_BEEP, 0x800, METHOD_NEITHER, FILE_ANY_ACCESS)
|
2021-05-14 05:54:39 +02:00
|
|
|
#define IOCTL_AFD_LISTEN CTL_CODE(FILE_DEVICE_BEEP, 0x802, METHOD_NEITHER, FILE_ANY_ACCESS)
|
2021-05-22 05:08:48 +02:00
|
|
|
#define IOCTL_AFD_RECV CTL_CODE(FILE_DEVICE_BEEP, 0x805, METHOD_NEITHER, FILE_ANY_ACCESS)
|
2021-05-25 06:13:41 +02:00
|
|
|
#define IOCTL_AFD_POLL CTL_CODE(FILE_DEVICE_BEEP, 0x809, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
2021-06-16 06:13:28 +02:00
|
|
|
#define IOCTL_AFD_GETSOCKNAME CTL_CODE(FILE_DEVICE_BEEP, 0x80b, METHOD_NEITHER, FILE_ANY_ACCESS)
|
2021-06-14 07:41:49 +02:00
|
|
|
#define IOCTL_AFD_EVENT_SELECT CTL_CODE(FILE_DEVICE_BEEP, 0x821, METHOD_NEITHER, FILE_ANY_ACCESS)
|
2021-06-15 17:39:43 +02:00
|
|
|
#define IOCTL_AFD_GET_EVENTS CTL_CODE(FILE_DEVICE_BEEP, 0x822, METHOD_NEITHER, FILE_ANY_ACCESS)
|
2021-05-25 06:13:41 +02:00
|
|
|
|
2021-06-14 07:41:47 +02:00
|
|
|
enum afd_poll_bit
|
|
|
|
{
|
|
|
|
AFD_POLL_BIT_READ = 0,
|
|
|
|
AFD_POLL_BIT_OOB = 1,
|
|
|
|
AFD_POLL_BIT_WRITE = 2,
|
|
|
|
AFD_POLL_BIT_HUP = 3,
|
|
|
|
AFD_POLL_BIT_RESET = 4,
|
|
|
|
AFD_POLL_BIT_CLOSE = 5,
|
|
|
|
AFD_POLL_BIT_CONNECT = 6,
|
|
|
|
AFD_POLL_BIT_ACCEPT = 7,
|
|
|
|
AFD_POLL_BIT_CONNECT_ERR = 8,
|
|
|
|
/* IOCTL_AFD_GET_EVENTS has space for 13 events. */
|
|
|
|
AFD_POLL_BIT_UNK1 = 9,
|
|
|
|
AFD_POLL_BIT_UNK2 = 10,
|
|
|
|
AFD_POLL_BIT_UNK3 = 11,
|
|
|
|
AFD_POLL_BIT_UNK4 = 12,
|
|
|
|
AFD_POLL_BIT_COUNT = 13,
|
|
|
|
};
|
|
|
|
|
2021-05-25 06:13:41 +02:00
|
|
|
#define AFD_POLL_READ 0x0001
|
|
|
|
#define AFD_POLL_OOB 0x0002
|
|
|
|
#define AFD_POLL_WRITE 0x0004
|
|
|
|
#define AFD_POLL_HUP 0x0008
|
|
|
|
#define AFD_POLL_RESET 0x0010
|
|
|
|
#define AFD_POLL_CLOSE 0x0020
|
|
|
|
#define AFD_POLL_CONNECT 0x0040
|
|
|
|
#define AFD_POLL_ACCEPT 0x0080
|
|
|
|
#define AFD_POLL_CONNECT_ERR 0x0100
|
|
|
|
/* I have never seen these reported, but StarCraft Remastered polls for them. */
|
|
|
|
#define AFD_POLL_UNK1 0x0200
|
|
|
|
#define AFD_POLL_UNK2 0x0400
|
2021-05-14 05:54:39 +02:00
|
|
|
|
2021-06-16 06:13:27 +02:00
|
|
|
struct afd_bind_params
|
|
|
|
{
|
|
|
|
int unknown;
|
|
|
|
struct WS(sockaddr) addr; /* variable size */
|
|
|
|
};
|
|
|
|
|
2021-05-14 05:54:39 +02:00
|
|
|
struct afd_listen_params
|
|
|
|
{
|
|
|
|
int unknown1;
|
|
|
|
int backlog;
|
|
|
|
int unknown2;
|
|
|
|
};
|
|
|
|
|
2021-05-22 05:08:48 +02:00
|
|
|
#define AFD_RECV_FORCE_ASYNC 0x2
|
|
|
|
|
|
|
|
#define AFD_MSG_NOT_OOB 0x0020
|
|
|
|
#define AFD_MSG_OOB 0x0040
|
|
|
|
#define AFD_MSG_PEEK 0x0080
|
|
|
|
#define AFD_MSG_WAITALL 0x4000
|
|
|
|
|
|
|
|
struct afd_recv_params
|
|
|
|
{
|
|
|
|
const WSABUF *buffers;
|
|
|
|
unsigned int count;
|
|
|
|
int recv_flags;
|
|
|
|
int msg_flags;
|
|
|
|
};
|
|
|
|
|
2021-05-25 06:13:41 +02:00
|
|
|
#include <pshpack4.h>
|
|
|
|
struct afd_poll_params
|
|
|
|
{
|
|
|
|
LONGLONG timeout;
|
|
|
|
unsigned int count;
|
2021-09-23 07:48:01 +02:00
|
|
|
BOOLEAN exclusive;
|
2021-05-25 06:13:41 +02:00
|
|
|
BOOLEAN padding[3];
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
SOCKET socket;
|
|
|
|
int flags;
|
|
|
|
NTSTATUS status;
|
|
|
|
} sockets[1];
|
|
|
|
};
|
|
|
|
#include <poppack.h>
|
|
|
|
|
2021-06-14 07:41:49 +02:00
|
|
|
struct afd_event_select_params
|
|
|
|
{
|
|
|
|
HANDLE event;
|
|
|
|
int mask;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct afd_event_select_params_64
|
|
|
|
{
|
|
|
|
ULONGLONG event;
|
|
|
|
int mask;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct afd_event_select_params_32
|
|
|
|
{
|
|
|
|
ULONG event;
|
|
|
|
int mask;
|
|
|
|
};
|
|
|
|
|
2021-06-15 17:39:43 +02:00
|
|
|
struct afd_get_events_params
|
|
|
|
{
|
|
|
|
int flags;
|
|
|
|
NTSTATUS status[13];
|
|
|
|
};
|
|
|
|
|
2021-07-02 00:10:24 +02:00
|
|
|
#define WINE_AFD_IOC(x) CTL_CODE(FILE_DEVICE_NETWORK, x, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
|
|
|
|
|
|
|
#define IOCTL_AFD_WINE_CREATE WINE_AFD_IOC(200)
|
|
|
|
#define IOCTL_AFD_WINE_ACCEPT WINE_AFD_IOC(201)
|
|
|
|
#define IOCTL_AFD_WINE_ACCEPT_INTO WINE_AFD_IOC(202)
|
|
|
|
#define IOCTL_AFD_WINE_CONNECT WINE_AFD_IOC(203)
|
|
|
|
#define IOCTL_AFD_WINE_SHUTDOWN WINE_AFD_IOC(204)
|
|
|
|
#define IOCTL_AFD_WINE_RECVMSG WINE_AFD_IOC(205)
|
|
|
|
#define IOCTL_AFD_WINE_SENDMSG WINE_AFD_IOC(206)
|
|
|
|
#define IOCTL_AFD_WINE_TRANSMIT WINE_AFD_IOC(207)
|
|
|
|
#define IOCTL_AFD_WINE_ADDRESS_LIST_CHANGE WINE_AFD_IOC(208)
|
|
|
|
#define IOCTL_AFD_WINE_FIONBIO WINE_AFD_IOC(209)
|
|
|
|
#define IOCTL_AFD_WINE_COMPLETE_ASYNC WINE_AFD_IOC(210)
|
|
|
|
#define IOCTL_AFD_WINE_FIONREAD WINE_AFD_IOC(211)
|
|
|
|
#define IOCTL_AFD_WINE_SIOCATMARK WINE_AFD_IOC(212)
|
|
|
|
#define IOCTL_AFD_WINE_GET_INTERFACE_LIST WINE_AFD_IOC(213)
|
|
|
|
#define IOCTL_AFD_WINE_KEEPALIVE_VALS WINE_AFD_IOC(214)
|
|
|
|
#define IOCTL_AFD_WINE_MESSAGE_SELECT WINE_AFD_IOC(215)
|
|
|
|
#define IOCTL_AFD_WINE_GETPEERNAME WINE_AFD_IOC(216)
|
|
|
|
#define IOCTL_AFD_WINE_DEFER WINE_AFD_IOC(217)
|
|
|
|
#define IOCTL_AFD_WINE_GET_INFO WINE_AFD_IOC(218)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_ACCEPTCONN WINE_AFD_IOC(219)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_BROADCAST WINE_AFD_IOC(220)
|
|
|
|
#define IOCTL_AFD_WINE_SET_SO_BROADCAST WINE_AFD_IOC(221)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_ERROR WINE_AFD_IOC(222)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_KEEPALIVE WINE_AFD_IOC(223)
|
|
|
|
#define IOCTL_AFD_WINE_SET_SO_KEEPALIVE WINE_AFD_IOC(224)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_LINGER WINE_AFD_IOC(225)
|
|
|
|
#define IOCTL_AFD_WINE_SET_SO_LINGER WINE_AFD_IOC(226)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_OOBINLINE WINE_AFD_IOC(227)
|
|
|
|
#define IOCTL_AFD_WINE_SET_SO_OOBINLINE WINE_AFD_IOC(228)
|
|
|
|
#define IOCTL_AFD_WINE_SET_SO_RCVBUF WINE_AFD_IOC(229)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_RCVBUF WINE_AFD_IOC(230)
|
|
|
|
#define IOCTL_AFD_WINE_SET_SO_RCVTIMEO WINE_AFD_IOC(231)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_RCVTIMEO WINE_AFD_IOC(232)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_REUSEADDR WINE_AFD_IOC(233)
|
|
|
|
#define IOCTL_AFD_WINE_SET_SO_REUSEADDR WINE_AFD_IOC(234)
|
|
|
|
#define IOCTL_AFD_WINE_SET_SO_SNDBUF WINE_AFD_IOC(235)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_SNDBUF WINE_AFD_IOC(236)
|
|
|
|
#define IOCTL_AFD_WINE_GET_SO_SNDTIMEO WINE_AFD_IOC(237)
|
|
|
|
#define IOCTL_AFD_WINE_SET_SO_SNDTIMEO WINE_AFD_IOC(238)
|
|
|
|
#define IOCTL_AFD_WINE_SET_IP_ADD_MEMBERSHIP WINE_AFD_IOC(239)
|
2021-07-02 00:10:25 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_ADD_SOURCE_MEMBERSHIP WINE_AFD_IOC(240)
|
2021-07-02 00:10:26 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_BLOCK_SOURCE WINE_AFD_IOC(241)
|
2021-07-02 00:10:27 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_DONTFRAGMENT WINE_AFD_IOC(242)
|
2021-07-02 00:10:28 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_DONTFRAGMENT WINE_AFD_IOC(243)
|
2021-07-07 06:48:44 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_DROP_MEMBERSHIP WINE_AFD_IOC(244)
|
2021-07-07 06:48:45 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_DROP_SOURCE_MEMBERSHIP WINE_AFD_IOC(245)
|
2021-08-18 07:50:48 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_HDRINCL WINE_AFD_IOC(246)
|
2021-07-08 03:16:39 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_HDRINCL WINE_AFD_IOC(247)
|
2021-07-08 03:16:40 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_MULTICAST_IF WINE_AFD_IOC(248)
|
2021-07-08 03:16:41 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_MULTICAST_IF WINE_AFD_IOC(249)
|
2021-07-08 03:16:42 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_MULTICAST_LOOP WINE_AFD_IOC(250)
|
2021-07-09 04:24:45 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_MULTICAST_LOOP WINE_AFD_IOC(251)
|
2021-07-09 04:24:46 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_MULTICAST_TTL WINE_AFD_IOC(252)
|
2021-07-09 04:24:47 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_MULTICAST_TTL WINE_AFD_IOC(253)
|
2021-07-09 04:24:48 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_OPTIONS WINE_AFD_IOC(254)
|
2021-07-09 04:24:49 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_OPTIONS WINE_AFD_IOC(255)
|
2021-07-10 02:40:39 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_PKTINFO WINE_AFD_IOC(256)
|
2021-07-10 02:40:40 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_PKTINFO WINE_AFD_IOC(257)
|
2021-07-10 02:40:41 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_TOS WINE_AFD_IOC(258)
|
2021-07-10 02:40:42 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_TOS WINE_AFD_IOC(259)
|
2021-07-10 02:40:43 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_TTL WINE_AFD_IOC(260)
|
2021-07-27 07:13:32 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_TTL WINE_AFD_IOC(261)
|
2021-07-27 07:13:33 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_UNBLOCK_SOURCE WINE_AFD_IOC(262)
|
2021-07-27 07:13:34 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_UNICAST_IF WINE_AFD_IOC(263)
|
2021-07-27 07:13:35 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IP_UNICAST_IF WINE_AFD_IOC(264)
|
2021-07-28 17:17:05 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_ADD_MEMBERSHIP WINE_AFD_IOC(265)
|
2021-07-28 17:17:06 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_DONTFRAG WINE_AFD_IOC(266)
|
2021-07-28 17:17:07 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_DONTFRAG WINE_AFD_IOC(267)
|
2021-07-28 17:17:08 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_DROP_MEMBERSHIP WINE_AFD_IOC(268)
|
2021-07-28 17:17:09 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_MULTICAST_HOPS WINE_AFD_IOC(269)
|
2021-07-28 23:18:09 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_MULTICAST_HOPS WINE_AFD_IOC(270)
|
2021-07-28 23:18:10 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_MULTICAST_IF WINE_AFD_IOC(271)
|
2021-07-28 23:18:11 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_MULTICAST_IF WINE_AFD_IOC(272)
|
2021-07-28 23:18:12 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_MULTICAST_LOOP WINE_AFD_IOC(273)
|
2021-07-28 23:18:13 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_MULTICAST_LOOP WINE_AFD_IOC(274)
|
2021-07-30 07:00:42 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_UNICAST_HOPS WINE_AFD_IOC(275)
|
2021-07-30 07:00:43 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_UNICAST_HOPS WINE_AFD_IOC(276)
|
2021-07-30 07:00:44 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_UNICAST_IF WINE_AFD_IOC(277)
|
2021-07-30 07:00:45 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_UNICAST_IF WINE_AFD_IOC(278)
|
2021-07-30 07:00:46 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_V6ONLY WINE_AFD_IOC(279)
|
2021-07-30 07:00:47 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_V6ONLY WINE_AFD_IOC(280)
|
2021-07-31 01:55:36 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPX_PTYPE WINE_AFD_IOC(281)
|
2021-07-31 01:55:37 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_IPX_PTYPE WINE_AFD_IOC(282)
|
2021-07-31 01:55:38 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IRLMP_ENUMDEVICES WINE_AFD_IOC(283)
|
2021-07-31 01:55:39 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_TCP_NODELAY WINE_AFD_IOC(284)
|
2021-07-31 01:55:40 +02:00
|
|
|
#define IOCTL_AFD_WINE_SET_TCP_NODELAY WINE_AFD_IOC(285)
|
2021-08-03 07:08:38 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_RECVHOPLIMIT WINE_AFD_IOC(286)
|
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_RECVHOPLIMIT WINE_AFD_IOC(287)
|
2021-08-03 07:08:39 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_RECVPKTINFO WINE_AFD_IOC(288)
|
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_RECVPKTINFO WINE_AFD_IOC(289)
|
2021-08-13 07:56:13 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IPV6_RECVTCLASS WINE_AFD_IOC(290)
|
|
|
|
#define IOCTL_AFD_WINE_SET_IPV6_RECVTCLASS WINE_AFD_IOC(291)
|
2021-08-19 06:25:50 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_SO_CONNECT_TIME WINE_AFD_IOC(292)
|
2021-09-29 08:40:54 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_RECVTTL WINE_AFD_IOC(293)
|
|
|
|
#define IOCTL_AFD_WINE_SET_IP_RECVTTL WINE_AFD_IOC(294)
|
2021-09-29 08:40:55 +02:00
|
|
|
#define IOCTL_AFD_WINE_GET_IP_RECVTOS WINE_AFD_IOC(295)
|
|
|
|
#define IOCTL_AFD_WINE_SET_IP_RECVTOS WINE_AFD_IOC(296)
|
2020-09-25 05:21:01 +02:00
|
|
|
|
2020-09-20 00:13:36 +02:00
|
|
|
struct afd_create_params
|
|
|
|
{
|
|
|
|
int family, type, protocol;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2020-10-19 18:21:18 +02:00
|
|
|
struct afd_accept_into_params
|
|
|
|
{
|
2021-08-11 20:13:01 +02:00
|
|
|
ULONG accept_handle;
|
2020-10-19 18:21:18 +02:00
|
|
|
unsigned int recv_len, local_len;
|
|
|
|
};
|
|
|
|
|
2021-05-18 04:29:59 +02:00
|
|
|
struct afd_connect_params
|
|
|
|
{
|
|
|
|
int addr_len;
|
|
|
|
int synchronous;
|
2021-06-17 06:33:10 +02:00
|
|
|
/* VARARG(addr, struct WS(sockaddr), addr_len); */
|
2021-05-18 04:29:59 +02:00
|
|
|
/* VARARG(data, bytes); */
|
|
|
|
};
|
|
|
|
|
2021-05-27 06:36:50 +02:00
|
|
|
struct afd_recvmsg_params
|
|
|
|
{
|
|
|
|
WSABUF *control;
|
|
|
|
struct WS(sockaddr) *addr;
|
|
|
|
int *addr_len;
|
|
|
|
unsigned int *ws_flags;
|
|
|
|
int force_async;
|
|
|
|
unsigned int count;
|
|
|
|
WSABUF *buffers;
|
|
|
|
};
|
|
|
|
|
2021-05-27 06:36:53 +02:00
|
|
|
struct afd_sendmsg_params
|
|
|
|
{
|
|
|
|
const struct WS(sockaddr) *addr;
|
|
|
|
unsigned int addr_len;
|
|
|
|
unsigned int ws_flags;
|
|
|
|
int force_async;
|
|
|
|
unsigned int count;
|
|
|
|
const WSABUF *buffers;
|
|
|
|
};
|
|
|
|
|
2021-05-28 01:57:29 +02:00
|
|
|
struct afd_transmit_params
|
|
|
|
{
|
|
|
|
HANDLE file;
|
|
|
|
DWORD file_len;
|
|
|
|
DWORD buffer_size;
|
|
|
|
LARGE_INTEGER offset;
|
|
|
|
TRANSMIT_FILE_BUFFERS buffers;
|
|
|
|
DWORD flags;
|
|
|
|
};
|
|
|
|
|
2021-06-15 17:39:47 +02:00
|
|
|
struct afd_message_select_params
|
|
|
|
{
|
2021-08-11 20:13:01 +02:00
|
|
|
ULONG handle;
|
|
|
|
ULONG window;
|
2021-06-15 17:39:47 +02:00
|
|
|
unsigned int message;
|
|
|
|
int mask;
|
|
|
|
};
|
|
|
|
|
2021-06-20 18:05:55 +02:00
|
|
|
struct afd_get_info_params
|
|
|
|
{
|
|
|
|
int family, type, protocol;
|
|
|
|
};
|
|
|
|
|
2020-09-20 00:13:36 +02:00
|
|
|
#endif
|