#include <ws2_32.h>
Go to the source code of this file.
◆ WsThreadAllocate()
Definition at line 135 of file dthread.c.
136{
138
139
142 {
143
145 }
146
147
149}
DWORD WSAAPI WsThreadDefaultBlockingHook(VOID)
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Referenced by WsThreadCreate().
◆ WsThreadBlobToHostent()
Definition at line 316 of file dthread.c.
318{
319
320 if (
Thread->HostentSize < Blob->cbSize)
321 {
322
325
326
327 Thread->HostentSize = Blob->cbSize;
328 }
329
330
332 {
333
335 }
336 else
337 {
338
341 }
342
343
345}
#define HeapFree(x, y, z)
#define RtlMoveMemory(Destination, Source, Length)
#define WSA_NOT_ENOUGH_MEMORY
Referenced by gethostbyaddr(), and gethostbyname().
◆ WsThreadBlobToServent()
Definition at line 349 of file dthread.c.
351{
352
353 if (
Thread->ServentSize < Blob->cbSize)
354 {
355
358
359
360 Thread->ServentSize = Blob->cbSize;
361 }
362
363
365 {
366
368 }
369 else
370 {
371
374 }
375
376
378}
Referenced by getservbyname(), and getservbyport().
◆ WsThreadBlockingCallback()
Definition at line 39 of file dthread.c.
40{
42
43
47
48
49 while (
Thread->BlockingHook());
50
51
53
54
56}
LPVOID WINAPI TlsGetValue(IN DWORD Index)
int(WSPAPI * LPWSPCANCELBLOCKINGCALL)(_Out_ LPINT lpErrno)
Referenced by WsThreadSetBlockingHook().
◆ WsThreadCancelBlockingCall()
Definition at line 96 of file dthread.c.
97{
99
100
102
103
105 {
106
109
110
112 }
113
114
116}
UINT32 void void ** ReturnValue
_In_ NDIS_ERROR_CODE ErrorCode
Referenced by WSACancelBlockingCall().
◆ WsThreadCleanup()
◆ WsThreadCreate()
Definition at line 244 of file dthread.c.
246{
249
250
252 {
253
255 {
256
258 {
259
261 {
262
265 }
266 }
267
268
270 }
271 }
272
273
275}
BOOL WINAPI TlsSetValue(IN DWORD Index, IN LPVOID Value)
DWORD WSAAPI WsThreadInitialize(IN PWSTHREAD Thread, IN PWSPROCESS Process)
PWSTHREAD WSAAPI WsThreadAllocate(VOID)
VOID WSAAPI WsThreadDelete(IN PWSTHREAD Thread)
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
#define TLS_OUT_OF_INDEXES
#define WSASYSCALLFAILURE
Referenced by WsThreadGetCurrentThread().
◆ WsThreadDefaultBlockingHook()
◆ WsThreadDelete()
◆ WsThreadDestroyCurrentThread()
Definition at line 225 of file dthread.c.
226{
228
229
231 {
232
234 {
235
238 }
239 }
240}
Referenced by DllMain().
◆ WsThreadGetCurrentThread()
Definition at line 279 of file dthread.c.
281{
282
284 {
285
287 }
288 else
289 {
290
292 }
293}
DWORD WSAAPI WsThreadCreate(IN PWSPROCESS Process, IN PWSTHREAD *CurrentThread)
Referenced by WsApiProlog().
◆ WsThreadGetProtoBuffer()
◆ WsThreadGetThreadId()
◆ WsThreadInitialize()
Definition at line 176 of file dthread.c.
178{
180
181
183
184
186 {
187
190 {
191
193 }
194 }
195
196
198}
DWORD WINAPI WahOpenCurrentThread(IN HANDLE ApcHelperHandle, OUT LPWSATHREADID ThreadId)
INT WSAAPI WsProcGetAsyncHelper(IN PWSPROCESS Process, OUT PHANDLE Handle)
Referenced by WsThreadCreate().
◆ WsThreadSetBlockingHook()
Definition at line 60 of file dthread.c.
62{
64
65
67 {
68
70 }
71 else
72 {
73
75 }
76
77
78 Thread->BlockingHook = BlockingHook;
79 return OldHook;
80}
BOOL WSAAPI WsThreadBlockingCallback(IN DWORD_PTR Context)
Referenced by WSASetBlockingHook().
◆ WsThreadStartup()
◆ WsThreadUnhookBlockingHook()