2000-09-17 09:33:44 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS WinSock Helper DLL for TCP/IP
|
|
|
|
* FILE: include/wshtcpip.h
|
|
|
|
* PURPOSE: WinSock Helper DLL for TCP/IP header
|
|
|
|
*/
|
|
|
|
#ifndef __WSHTCPIP_H
|
|
|
|
#define __WSHTCPIP_H
|
|
|
|
|
2005-11-28 21:40:21 +00:00
|
|
|
#define WIN32_NO_STATUS
|
2000-09-17 09:33:44 +00:00
|
|
|
#include <wsahelp.h>
|
2010-01-16 00:05:15 +00:00
|
|
|
#include <tdiinfo.h>
|
|
|
|
#include <tcpioctl.h>
|
|
|
|
#include <tdilib.h>
|
|
|
|
#include <ws2tcpip.h>
|
2006-01-07 08:28:20 +00:00
|
|
|
#include <rtlfuncs.h>
|
2000-09-17 09:33:44 +00:00
|
|
|
|
2008-11-30 11:42:05 +00:00
|
|
|
#define EXPORT WINAPI
|
2000-09-17 09:33:44 +00:00
|
|
|
|
|
|
|
#define DD_TCP_DEVICE_NAME L"\\Device\\Tcp"
|
|
|
|
#define DD_UDP_DEVICE_NAME L"\\Device\\Udp"
|
|
|
|
#define DD_RAW_IP_DEVICE_NAME L"\\Device\\RawIp"
|
|
|
|
|
2010-01-16 00:05:15 +00:00
|
|
|
typedef enum _SOCKET_STATE {
|
|
|
|
SocketStateCreated,
|
|
|
|
SocketStateBound,
|
|
|
|
SocketStateListening,
|
|
|
|
SocketStateConnected
|
|
|
|
} SOCKET_STATE, *PSOCKET_STATE;
|
|
|
|
|
|
|
|
typedef struct _QUEUED_REQUEST {
|
|
|
|
PTCP_REQUEST_SET_INFORMATION_EX Info;
|
|
|
|
PVOID Next;
|
|
|
|
} QUEUED_REQUEST, *PQUEUED_REQUEST;
|
2000-09-17 09:33:44 +00:00
|
|
|
|
|
|
|
typedef struct _SOCKET_CONTEXT {
|
|
|
|
INT AddressFamily;
|
|
|
|
INT SocketType;
|
|
|
|
INT Protocol;
|
|
|
|
DWORD Flags;
|
2010-01-16 00:05:15 +00:00
|
|
|
DWORD AddrFileEntityType;
|
|
|
|
DWORD AddrFileInstance;
|
|
|
|
SOCKET_STATE SocketState;
|
|
|
|
PQUEUED_REQUEST RequestQueue;
|
2000-09-17 09:33:44 +00:00
|
|
|
} SOCKET_CONTEXT, *PSOCKET_CONTEXT;
|
|
|
|
|
|
|
|
#endif /* __WSHTCPIP_H */
|
|
|
|
|
|
|
|
/* EOF */
|