ReactOS 0.4.17-dev-573-g8315b8c
wshtcpip.h
Go to the documentation of this file.
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#define _INC_WINDOWS
12#define COM_NO_WINDOWS_H
13
14#include <stdarg.h>
15
16#include <windef.h>
17#include <winbase.h>
18#include <wsahelp.h>
19#include <tdiinfo.h>
20#include <tcpioctl.h>
21#include <tdilib.h>
22#include <ws2tcpip.h>
23#include <rtlfuncs.h>
24#include <mstcpip.h>
25
26#define EXPORT WINAPI
27
28#define DD_TCP_DEVICE_NAME L"\\Device\\Tcp"
29#define DD_UDP_DEVICE_NAME L"\\Device\\Udp"
30#define DD_RAW_IP_DEVICE_NAME L"\\Device\\RawIp"
31
32typedef enum _SOCKET_STATE {
38
39typedef struct _QUEUED_REQUEST {
43
44typedef struct _SOCKET_CONTEXT {
55
56INT
60 OUT LPDWORD NumberOfBytesReturned,
61 OUT LPBOOL NeedsCompletion);
62
63INT
67 IN DWORD IOCTL);
68
69#endif /* __WSHTCPIP_H */
70
71/* EOF */
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL * LPBOOL
Definition: minwindef.h:138
enum _SOCKET_STATE SOCKET_STATE
static ULONG RequestSize
Definition: ping.c:63
PTCP_REQUEST_SET_INFORMATION_EX Info
Definition: wshtcpip.h:40
DWORD AddrFileEntityType
Definition: wshtcpip.h:49
PQUEUED_REQUEST RequestQueue
Definition: wshtcpip.h:52
DWORD AddrFileInstance
Definition: wshtcpip.h:50
BOOL DontRoute
Definition: wshtcpip.h:53
SOCKET_STATE SocketState
Definition: wshtcpip.h:51
INT AddressFamily
Definition: wshtcpip.h:45
uint32_t * LPDWORD
Definition: typedefs.h:59
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_In_ WDFREQUEST Request
Definition: wdfdevice.h:547
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:320
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:863
INT WSHIoctl_GetInterfaceList(IN LPVOID OutputBuffer, IN DWORD OutputBufferLength, OUT LPDWORD NumberOfBytesReturned, OUT LPBOOL NeedsCompletion)
Definition: iflist.c:215
enum _SOCKET_STATE SOCKET_STATE
enum _SOCKET_STATE * PSOCKET_STATE
INT SendRequest(IN PVOID Request, IN DWORD RequestSize, IN DWORD IOCTL)
Definition: wshtcpip.c:460
struct _SOCKET_CONTEXT SOCKET_CONTEXT
struct _QUEUED_REQUEST QUEUED_REQUEST
struct _SOCKET_CONTEXT * PSOCKET_CONTEXT
_SOCKET_STATE
Definition: wshtcpip.h:32
@ SocketStateBound
Definition: wshtcpip.h:34
@ SocketStateCreated
Definition: wshtcpip.h:33
@ SocketStateConnected
Definition: wshtcpip.h:36
@ SocketStateListening
Definition: wshtcpip.h:35
struct _QUEUED_REQUEST * PQUEUED_REQUEST