ReactOS  0.4.14-dev-49-gfb4591c
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 */
12 typedef struct _WSH_HANDLE
13 {
17 
18 typedef struct _WSH_HASH_TABLE
19 {
23 
24 typedef struct _WSH_SEARCH_TABLE
25 {
27  volatile PLONG CurrentCount;
34 
35 typedef struct _WSH_HANDLE_TABLE
36 {
40 
41 //typedef struct _WSH_HANDLE_TABLE *PWAH_HANDLE_TABLE;
42 
43 typedef BOOL
47 );
48 
50 WINAPI
54 );
55 
56 DWORD
57 WINAPI
61 );
62 
63 DWORD
64 WINAPI
66  IN HANDLE HelperHandle,
67  IN SOCKET Socket
68 );
69 
70 DWORD
71 WINAPI
73  IN HANDLE HelperHandle,
74  OUT LPWSATHREADID ThreadId
75 );
76 
77 DWORD
78 WINAPI
80  IN HANDLE HelperHandle
81 );
82 
83 DWORD
84 WINAPI
86  IN HANDLE HelperHandle,
87  IN LPWSATHREADID ThreadId
88 );
89 
90 DWORD
91 WINAPI
93  IN HANDLE HelperHandle
94 );
95 
96 DWORD
97 WINAPI
99  IN HANDLE HelperHandle
100 );
101 
102 DWORD
103 WINAPI
105  OUT PHANDLE HelperHandle
106 );
107 
108 DWORD
109 WINAPI
111  IN HANDLE HelperHandle,
112  OUT PHANDLE NotificationHelperHandle
113 );
114 
115 INT
116 WINAPI
118  IN HANDLE NotificationHelperHandle,
119  IN HANDLE lpNotificationHandle,
121  IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
122 );
123 
124 INT
125 WINAPI
127  IN HANDLE NotificationHelperHandle
128 );
129 
130 BOOL
131 WINAPI
136 );
137 
138 DWORD
139 WINAPI
142 );
143 
144 DWORD
145 WINAPI
148 );
149 
151 WINAPI
155 );
156 
157 DWORD
158 WINAPI
160  OUT PHANDLE ApcHelperHandle
161 );
162 
163 #endif
DWORD WINAPI WahOpenApcHelper(OUT PHANDLE ApcHelperHandle)
Definition: apc.c:20
#define IN
Definition: typedefs.h:38
volatile PLONG CurrentCount
Definition: ws2help.h:27
ASMGENDATA Table[]
Definition: genincdata.c:61
BOOL(WINAPI * PWAH_HANDLE_ENUMERATE_PROC)(IN PVOID Context, IN PWAH_HANDLE Handle)
Definition: ws2help.h:44
DWORD WINAPI WahRemoveHandleContext(IN PWAH_HANDLE_TABLE Table, IN PWAH_HANDLE Handle)
Definition: context.c:564
DWORD WINAPI WahCloseNotificationHandleHelper(IN HANDLE HelperHandle)
Definition: notify.c:22
DWORD WINAPI WahCloseThread(IN HANDLE HelperHandle, IN LPWSATHREADID ThreadId)
Definition: apc.c:59
DWORD WINAPI WahCreateNotificationHandle(IN HANDLE HelperHandle, OUT PHANDLE NotificationHelperHandle)
Definition: notify.c:39
volatile PWAH_HASH_TABLE HashTable
Definition: ws2help.h:26
DWORD WINAPI WahOpenNotificationHandleHelper(OUT PHANDLE HelperHandle)
Definition: notify.c:49
#define BOOL
Definition: nt_native.h:43
int32_t INT
Definition: typedefs.h:56
DWORD WINAPI WahDestroyHandleContextTable(IN PWAH_HANDLE_TABLE Table)
Definition: context.c:246
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
struct _WSH_HANDLE WSH_HANDLE
DWORD WINAPI WahOpenCurrentThread(IN HANDLE HelperHandle, OUT LPWSATHREADID ThreadId)
Definition: apc.c:118
WSH_SEARCH_TABLE SearchTables[1]
Definition: ws2help.h:38
DWORD WINAPI WahCreateHandleContextTable(OUT PWAH_HANDLE_TABLE *Table)
Definition: context.c:189
PWAH_HANDLE Handles[1]
Definition: ws2help.h:21
struct _WSH_HANDLE * PWAH_HANDLE
_In_ HANDLE Handle
Definition: extypes.h:390
INT WINAPI WahWaitForNotification(IN HANDLE NotificationHelperHandle, IN HANDLE lpNotificationHandle, IN LPWSAOVERLAPPED lpOverlapped, IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
Definition: notify.c:75
#define WINAPI
Definition: msvc.h:8
DWORD WINAPI WahCloseSocketHandle(IN HANDLE HelperHandle, IN SOCKET Socket)
Definition: handle.c:113
DWORD WINAPI WahCloseApcHelper(IN HANDLE HelperHandle)
Definition: apc.c:42
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _WSH_HASH_TABLE * PWAH_HASH_TABLE
LONG RefCount
Definition: ws2help.h:14
struct _WSH_HANDLE_TABLE * PWAH_HANDLE_TABLE
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:414
BOOL WINAPI WahEnumerateHandleContexts(IN PWAH_HANDLE_TABLE Table, IN PWAH_HANDLE_ENUMERATE_PROC Callback, IN PVOID Context)
Definition: context.c:280
DWORD WINAPI WahCloseHandleHelper(IN HANDLE HelperHandle)
Definition: handle.c:86
struct _WSH_HANDLE_TABLE WSH_HANDLE_TABLE
INT WINAPI WahNotifyAllProcesses(IN HANDLE NotificationHelperHandle)
Definition: notify.c:67
struct _WSH_SEARCH_TABLE * PWAH_SEARCH_TABLE
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED lpOverlapped
Definition: mswsock.h:90
PWAH_HANDLE WINAPI WahReferenceContextByHandle(IN PWAH_HANDLE_TABLE Table, IN HANDLE Handle)
Definition: context.c:524
struct _WSH_SEARCH_TABLE WSH_SEARCH_TABLE
CRITICAL_SECTION Lock
Definition: ws2help.h:32
#define OUT
Definition: typedefs.h:39
void(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)(IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)
Definition: winsock2.h:722
struct tagContext Context
Definition: acpixf.h:1024
HANDLE Handle
Definition: ws2help.h:15
UINT_PTR SOCKET
Definition: winsock.h:47
struct _WSH_HASH_TABLE WSH_HASH_TABLE
signed int * PLONG
Definition: retypes.h:5
LPFNPSPCALLBACK Callback
Definition: desk.c:111
DWORD Size
Definition: ws2help.h:20
PWAH_HANDLE WINAPI WahInsertHandleContext(IN PWAH_HANDLE_TABLE Table, IN PWAH_HANDLE Handle)
Definition: context.c:336