ReactOS 0.4.15-dev-8428-g6910fa6
ws2help.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS WinSock 2 Helper DLL
4 * FILE: include/reactos/winsock/ws2help.h
5 * PURPOSE: WinSock 2 Helper DLL header
6 */
7
8#ifndef __WS2HELP_H
9#define __WS2HELP_H
10
11/* Types */
12typedef struct _WSH_HANDLE
13{
17
18typedef struct _WSH_HASH_TABLE
19{
23
24typedef struct _WSH_SEARCH_TABLE
25{
34
35typedef struct _WSH_HANDLE_TABLE
36{
40
41//typedef struct _WSH_HANDLE_TABLE *PWAH_HANDLE_TABLE;
42
43typedef BOOL
47);
48
54);
55
61);
62
66 IN HANDLE HelperHandle,
67 IN SOCKET Socket
68);
69
73 IN HANDLE HelperHandle,
74 OUT LPWSATHREADID ThreadId
75);
76
80 IN HANDLE HelperHandle
81);
82
86 IN HANDLE HelperHandle,
87 IN LPWSATHREADID ThreadId
88);
89
93 IN HANDLE HelperHandle
94);
95
99 IN HANDLE HelperHandle
100);
101
102DWORD
103WINAPI
105 OUT PHANDLE HelperHandle
106);
107
108DWORD
109WINAPI
111 IN HANDLE HelperHandle,
112 OUT PHANDLE NotificationHelperHandle
113);
114
115INT
116WINAPI
118 IN HANDLE NotificationHelperHandle,
119 IN HANDLE lpNotificationHandle,
121 IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
122);
123
124INT
125WINAPI
127 IN HANDLE NotificationHelperHandle
128);
129
130BOOL
131WINAPI
136);
137
138DWORD
139WINAPI
142);
143
144DWORD
145WINAPI
148);
149
151WINAPI
155);
156
157DWORD
158WINAPI
160 OUT PHANDLE ApcHelperHandle
161);
162
163#endif
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
ULONG Handle
Definition: gdb_input.c:15
ASMGENDATA Table[]
Definition: genincdata.c:61
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED lpOverlapped
Definition: mswsock.h:93
#define BOOL
Definition: nt_native.h:43
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
long LONG
Definition: pedump.c:60
WSH_SEARCH_TABLE SearchTables[1]
Definition: ws2help.h:38
LONG RefCount
Definition: ws2help.h:14
HANDLE Handle
Definition: ws2help.h:15
PWAH_HANDLE Handles[1]
Definition: ws2help.h:21
DWORD Size
Definition: ws2help.h:20
CRITICAL_SECTION Lock
Definition: ws2help.h:32
volatile PWAH_HASH_TABLE HashTable
Definition: ws2help.h:26
volatile PLONG CurrentCount
Definition: ws2help.h:27
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
int32_t * PLONG
Definition: typedefs.h:58
#define OUT
Definition: typedefs.h:40
_In_ WDFINTERRUPT _In_ PFN_WDF_INTERRUPT_SYNCHRONIZE Callback
Definition: wdfinterrupt.h:458
#define WINAPI
Definition: msvc.h:6
void(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)(IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)
Definition: winsock2.h:722
UINT_PTR SOCKET
Definition: winsock.h:47
BOOL WINAPI WahEnumerateHandleContexts(IN PWAH_HANDLE_TABLE Table, IN PWAH_HANDLE_ENUMERATE_PROC Callback, IN PVOID Context)
Definition: context.c:280
struct _WSH_HASH_TABLE WSH_HASH_TABLE
DWORD WINAPI WahOpenCurrentThread(IN HANDLE HelperHandle, OUT LPWSATHREADID ThreadId)
Definition: apc.c:118
DWORD WINAPI WahCloseHandleHelper(IN HANDLE HelperHandle)
Definition: handle.c:86
INT WINAPI WahNotifyAllProcesses(IN HANDLE NotificationHelperHandle)
Definition: notify.c:67
struct _WSH_HANDLE * PWAH_HANDLE
DWORD WINAPI WahOpenNotificationHandleHelper(OUT PHANDLE HelperHandle)
Definition: notify.c:49
DWORD WINAPI WahCloseSocketHandle(IN HANDLE HelperHandle, IN SOCKET Socket)
Definition: handle.c:113
struct _WSH_SEARCH_TABLE WSH_SEARCH_TABLE
INT WINAPI WahWaitForNotification(IN HANDLE NotificationHelperHandle, IN HANDLE lpNotificationHandle, IN LPWSAOVERLAPPED lpOverlapped, IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
Definition: notify.c:75
DWORD WINAPI WahCreateHandleContextTable(OUT PWAH_HANDLE_TABLE *Table)
Definition: context.c:189
DWORD WINAPI WahRemoveHandleContext(IN PWAH_HANDLE_TABLE Table, IN PWAH_HANDLE Handle)
Definition: context.c:564
PWAH_HANDLE WINAPI WahInsertHandleContext(IN PWAH_HANDLE_TABLE Table, IN PWAH_HANDLE Handle)
Definition: context.c:336
DWORD WINAPI WahCreateNotificationHandle(IN HANDLE HelperHandle, OUT PHANDLE NotificationHelperHandle)
Definition: notify.c:39
DWORD WINAPI WahCloseNotificationHandleHelper(IN HANDLE HelperHandle)
Definition: notify.c:22
DWORD WINAPI WahDestroyHandleContextTable(IN PWAH_HANDLE_TABLE Table)
Definition: context.c:246
struct _WSH_SEARCH_TABLE * PWAH_SEARCH_TABLE
struct _WSH_HASH_TABLE * PWAH_HASH_TABLE
DWORD WINAPI WahCloseApcHelper(IN HANDLE HelperHandle)
Definition: apc.c:42
DWORD WINAPI WahCloseThread(IN HANDLE HelperHandle, IN LPWSATHREADID ThreadId)
Definition: apc.c:59
PWAH_HANDLE WINAPI WahReferenceContextByHandle(IN PWAH_HANDLE_TABLE Table, IN HANDLE Handle)
Definition: context.c:524
struct _WSH_HANDLE WSH_HANDLE
BOOL(WINAPI * PWAH_HANDLE_ENUMERATE_PROC)(IN PVOID Context, IN PWAH_HANDLE Handle)
Definition: ws2help.h:44
struct _WSH_HANDLE_TABLE WSH_HANDLE_TABLE
DWORD WINAPI WahOpenApcHelper(OUT PHANDLE ApcHelperHandle)
Definition: apc.c:20
struct _WSH_HANDLE_TABLE * PWAH_HANDLE_TABLE