reactos/dll/win32/wshtcpip/wshtcpip.h
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

57 lines
1.3 KiB
C

/*
* 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
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <wsahelp.h>
#include <tdiinfo.h>
#include <tcpioctl.h>
#include <tdilib.h>
#include <ws2tcpip.h>
#include <rtlfuncs.h>
#define EXPORT WINAPI
#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"
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;
typedef struct _SOCKET_CONTEXT {
INT AddressFamily;
INT SocketType;
INT Protocol;
DWORD Flags;
DWORD AddrFileEntityType;
DWORD AddrFileInstance;
SOCKET_STATE SocketState;
PQUEUED_REQUEST RequestQueue;
BOOL DontRoute;
} SOCKET_CONTEXT, *PSOCKET_CONTEXT;
#endif /* __WSHTCPIP_H */
/* EOF */