xref: /reactos/dll/win32/wshtcpip/wshtcpip.h (revision 2b82fe44)
1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS WinSock Helper DLL for TCP/IP
4  * FILE:        include/wshtcpip.h
5  * PURPOSE:     WinSock Helper DLL for TCP/IP header
6  */
7 #ifndef __WSHTCPIP_H
8 #define __WSHTCPIP_H
9 
10 #define WIN32_NO_STATUS
11 #include <wsahelp.h>
12 #include <tdiinfo.h>
13 #include <tcpioctl.h>
14 #include <tdilib.h>
15 #include <ws2tcpip.h>
16 #include <rtlfuncs.h>
17 
18 #define EXPORT WINAPI
19 
20 #define DD_TCP_DEVICE_NAME      L"\\Device\\Tcp"
21 #define DD_UDP_DEVICE_NAME      L"\\Device\\Udp"
22 #define DD_RAW_IP_DEVICE_NAME   L"\\Device\\RawIp"
23 
24 typedef enum _SOCKET_STATE {
25     SocketStateCreated,
26     SocketStateBound,
27     SocketStateListening,
28     SocketStateConnected
29 } SOCKET_STATE, *PSOCKET_STATE;
30 
31 typedef struct _QUEUED_REQUEST {
32     PTCP_REQUEST_SET_INFORMATION_EX Info;
33     PVOID Next;
34 } QUEUED_REQUEST, *PQUEUED_REQUEST;
35 
36 typedef struct _SOCKET_CONTEXT {
37     INT AddressFamily;
38     INT SocketType;
39     INT Protocol;
40     DWORD Flags;
41     DWORD AddrFileEntityType;
42     DWORD AddrFileInstance;
43     SOCKET_STATE SocketState;
44     PQUEUED_REQUEST RequestQueue;
45 } SOCKET_CONTEXT, *PSOCKET_CONTEXT;
46 
47 #endif /* __WSHTCPIP_H */
48 
49 /* EOF */
50