ReactOS
0.4.16-dev-122-g325d74c
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
25
#define EXPORT WINAPI
26
27
#define DD_TCP_DEVICE_NAME L"\\Device\\Tcp"
28
#define DD_UDP_DEVICE_NAME L"\\Device\\Udp"
29
#define DD_RAW_IP_DEVICE_NAME L"\\Device\\RawIp"
30
31
typedef
enum
_SOCKET_STATE
{
32
SocketStateCreated
,
33
SocketStateBound
,
34
SocketStateListening
,
35
SocketStateConnected
36
}
SOCKET_STATE
, *
PSOCKET_STATE
;
37
38
typedef
struct
_QUEUED_REQUEST
{
39
PTCP_REQUEST_SET_INFORMATION_EX
Info
;
40
PVOID
Next
;
41
}
QUEUED_REQUEST
, *
PQUEUED_REQUEST
;
42
43
typedef
struct
_SOCKET_CONTEXT
{
44
INT
AddressFamily
;
45
INT
SocketType
;
46
INT
Protocol
;
47
DWORD
Flags
;
48
DWORD
AddrFileEntityType
;
49
DWORD
AddrFileInstance
;
50
SOCKET_STATE
SocketState
;
51
PQUEUED_REQUEST
RequestQueue
;
52
BOOL
DontRoute
;
53
}
SOCKET_CONTEXT
, *
PSOCKET_CONTEXT
;
54
55
INT
56
WSHIoctl_GetInterfaceList
(
57
IN
LPVOID
OutputBuffer
,
58
IN
DWORD
OutputBufferLength
,
59
OUT
LPDWORD
NumberOfBytesReturned,
60
OUT
LPBOOL
NeedsCompletion);
61
62
#endif
/* __WSHTCPIP_H */
63
64
/* EOF */
_SOCKET_STATE
_SOCKET_STATE
Definition:
msafd.h:45
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
SOCKET_STATE
enum _SOCKET_STATE SOCKET_STATE
_QUEUED_REQUEST
Definition:
wshtcpip.h:38
_QUEUED_REQUEST::Next
PVOID Next
Definition:
wshtcpip.h:40
_QUEUED_REQUEST::Info
PTCP_REQUEST_SET_INFORMATION_EX Info
Definition:
wshtcpip.h:39
_SOCKET_CONTEXT
Definition:
msafd.h:120
_SOCKET_CONTEXT::AddrFileEntityType
DWORD AddrFileEntityType
Definition:
wshtcpip.h:48
_SOCKET_CONTEXT::SocketType
INT SocketType
Definition:
wshtcpip.h:45
_SOCKET_CONTEXT::Flags
DWORD Flags
Definition:
wshtcpip.h:47
_SOCKET_CONTEXT::RequestQueue
PQUEUED_REQUEST RequestQueue
Definition:
wshtcpip.h:51
_SOCKET_CONTEXT::AddrFileInstance
DWORD AddrFileInstance
Definition:
wshtcpip.h:49
_SOCKET_CONTEXT::DontRoute
BOOL DontRoute
Definition:
wshtcpip.h:52
_SOCKET_CONTEXT::SocketState
SOCKET_STATE SocketState
Definition:
wshtcpip.h:50
_SOCKET_CONTEXT::AddressFamily
INT AddressFamily
Definition:
wshtcpip.h:44
_SOCKET_CONTEXT::Protocol
INT Protocol
Definition:
wshtcpip.h:46
_TCP_REQUEST_SET_INFORMATION_EX
Definition:
tdiinfo.h:94
tcpioctl.h
tdiinfo.h
tdilib.h
LPDWORD
uint32_t * LPDWORD
Definition:
typedefs.h:59
INT
int32_t INT
Definition:
typedefs.h:58
IN
#define IN
Definition:
typedefs.h:39
OUT
#define OUT
Definition:
typedefs.h:40
OutputBufferLength
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition:
wdfio.h:320
OutputBuffer
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition:
wdfiotarget.h:863
winbase.h
windef.h
LPBOOL
BOOL * LPBOOL
Definition:
windef.h:162
ws2tcpip.h
wsahelp.h
WSHIoctl_GetInterfaceList
INT WSHIoctl_GetInterfaceList(IN LPVOID OutputBuffer, IN DWORD OutputBufferLength, OUT LPDWORD NumberOfBytesReturned, OUT LPBOOL NeedsCompletion)
Definition:
iflist.c:215
SOCKET_STATE
enum _SOCKET_STATE SOCKET_STATE
PSOCKET_STATE
enum _SOCKET_STATE * PSOCKET_STATE
SOCKET_CONTEXT
struct _SOCKET_CONTEXT SOCKET_CONTEXT
QUEUED_REQUEST
struct _QUEUED_REQUEST QUEUED_REQUEST
PSOCKET_CONTEXT
struct _SOCKET_CONTEXT * PSOCKET_CONTEXT
SocketStateBound
@ SocketStateBound
Definition:
wshtcpip.h:33
SocketStateCreated
@ SocketStateCreated
Definition:
wshtcpip.h:32
SocketStateConnected
@ SocketStateConnected
Definition:
wshtcpip.h:35
SocketStateListening
@ SocketStateListening
Definition:
wshtcpip.h:34
PQUEUED_REQUEST
struct _QUEUED_REQUEST * PQUEUED_REQUEST
dll
win32
wshtcpip
wshtcpip.h
Generated on Sat Oct 12 2024 06:05:13 for ReactOS by
1.9.6