#include <ws2_32.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ getprotobyname()
Definition at line 305 of file getproto.c.
306{
311 PVOID GetProtoBuffer;
314
315
317 {
318
321 }
322
323
325 if (!GetProtoBuffer)
326 {
327
330 }
331
332
335 {
336
339 }
340
341
343 {
344
346
347
348 if (!Protoent) break;
349
350
352 }
353
354
356
357
359
360
361 return Protoent;
362}
#define INVALID_HANDLE_VALUE
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
PPROTOENT WSAAPI GetProtoGetNextEnt(IN HANDLE DbHandle, IN PWSPROTO_BUFFER Buffer)
HANDLE WSAAPI GetProtoOpenNetworkDatabase(PCHAR Name)
_In_ NDIS_ERROR_CODE ErrorCode
PWSPROTO_BUFFER WSAAPI WsThreadGetProtoBuffer(IN PWSTHREAD Thread)
INT WSAAPI WsApiProlog(OUT PWSPROCESS *Process, OUT PWSTHREAD *Thread)
Referenced by adns__tcp_tryconnect(), init_finish(), and WsAsyncGetProto().
◆ getprotobynumber()
Definition at line 241 of file getproto.c.
242{
247 PVOID GetProtoBuffer;
250
251
253 {
254
257 }
258
259
261 if (!GetProtoBuffer)
262 {
263
266 }
267
268
271 {
272
275 }
276
277
279 {
280
282
283
284 if (!Protoent) break;
285
286
288 }
289
290
292
293
295
296
297 return Protoent;
298}
static unsigned int number
Referenced by WsAsyncGetProto().
◆ GetProtoGetNextEnt()
Definition at line 132 of file getproto.c.
134{
139
140
142
144 {
145
148 sizeof(
Buffer->LineBuffer) - 1,
151
152
156
157
159
160
162
163
165
166
168
169
170 if (*p1 == '#') continue;
171
172
174 if (!
Entry)
continue;
176
177
178 Buffer->Protoent.p_name = p1;
179
180
182 if (!
Entry)
continue;
184
185
187
188
191
192
194
195
197 Aliases =
Buffer->Protoent.p_aliases;
198
199
200 if (p1)
201 {
202
204
205
207 {
208
210
211
212 if (Aliases < &Buffer->Protoent.p_aliases[
MAXALIASES - 1])
213 {
214
216 }
217
218
221 }
222 }
223
224
226
227
228 ReturnedProtoent = &
Buffer->Protoent;
229 break;
230 }
231
232
233 return ReturnedProtoent;
234}
#define ReadFile(a, b, c, d, e)
_ACRTIMP int __cdecl atoi(const char *)
_ACRTIMP char *__cdecl strchr(const char *, int)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
PCHAR WSAAPI GetProtoPatternMatch(IN PCHAR Buffer, IN PCHAR Lookup)
Referenced by getprotobyname(), and getprotobynumber().
◆ GetProtoOpenNetworkDatabase()
Definition at line 20 of file getproto.c.
21{
29
31 if (!ExpandedPath)
33
34
36 "System\\CurrentControlSet\\Services\\Tcpip\\Parameters",
37 0,
39 &DatabaseKey);
41 {
42
44 "DatabasePath",
46 &RegType,
48 &RegSize);
49
52 {
55 }
56
57
59 "DatabasePath",
61 &RegType,
63 &RegSize);
64
65
66
68
69
71
73 }
74 else
75 {
76
78 if (ExpandedPath[
strlen(ExpandedPath) - 1] !=
'\\')
79 {
80
82 }
84 }
85
86
87 if (ExpandedPath[
strlen(ExpandedPath) - 1] !=
'\\')
88 {
89
91 }
92
93
95
96
99 0,
104
107}
#define RegCloseKey(hKey)
#define HeapFree(x, y, z)
#define FILE_ATTRIBUTE_NORMAL
_ACRTIMP size_t __cdecl strlen(const char *)
#define GetSystemDirectory
#define ExpandEnvironmentStrings
#define HKEY_LOCAL_MACHINE
Referenced by getprotobyname(), and getprotobynumber().
◆ GetProtoPatternMatch()
Definition at line 111 of file getproto.c.
113{
115
116
117 while ((ScanChar = *
Buffer))
118 {
119
121
122
124 }
125
126
128}
static void Lookup(RTF_Info *, char *)
Referenced by GetProtoGetNextEnt().