Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / contrib / idn / idnkit-1.0-src / wsock / wsock20 / dllstub.c
blob826a7ac7f2d368f8187058dc950da3c192d52fcb
1 /* $NetBSD$ */
3 /* Id: dllstub.c,v 1.1.1.1 2003/06/04 00:27:51 marka Exp */
5 SOCKET PASCAL
6 accept(SOCKET a0, struct sockaddr* a1, int* a2)
8 static SOCKET (PASCAL *fp)(SOCKET a0, struct sockaddr* a1, int* a2);
10 #ifdef DEBUG_STUB
11 idnLogPrintf(idn_log_level_trace, "stub accept() called\n");
12 #endif
13 if (fp == NULL) {
14 void *p;
15 if ((p = GetProcAddress(DLLHANDLE, "accept")) == NULL) {
16 FATAL("cannot find entry accept (%d)\n", GetLastError());
17 abort();
19 fp = p;
21 return (*fp)(a0, a1, a2);
24 int PASCAL
25 bind(SOCKET a0, const struct sockaddr* a1, int a2)
27 static int (PASCAL *fp)(SOCKET a0, const struct sockaddr* a1, int a2);
29 #ifdef DEBUG_STUB
30 idnLogPrintf(idn_log_level_trace, "stub bind() called\n");
31 #endif
32 if (fp == NULL) {
33 void *p;
34 if ((p = GetProcAddress(DLLHANDLE, "bind")) == NULL) {
35 FATAL("cannot find entry bind (%d)\n", GetLastError());
36 abort();
38 fp = p;
40 return (*fp)(a0, a1, a2);
43 int PASCAL
44 closesocket(SOCKET a0)
46 static int (PASCAL *fp)(SOCKET a0);
48 #ifdef DEBUG_STUB
49 idnLogPrintf(idn_log_level_trace, "stub closesocket() called\n");
50 #endif
51 if (fp == NULL) {
52 void *p;
53 if ((p = GetProcAddress(DLLHANDLE, "closesocket")) == NULL) {
54 FATAL("cannot find entry closesocket (%d)\n", GetLastError());
55 abort();
57 fp = p;
59 return (*fp)(a0);
62 int PASCAL
63 connect(SOCKET a0, const struct sockaddr* a1, int a2)
65 static int (PASCAL *fp)(SOCKET a0, const struct sockaddr* a1, int a2);
67 #ifdef DEBUG_STUB
68 idnLogPrintf(idn_log_level_trace, "stub connect() called\n");
69 #endif
70 if (fp == NULL) {
71 void *p;
72 if ((p = GetProcAddress(DLLHANDLE, "connect")) == NULL) {
73 FATAL("cannot find entry connect (%d)\n", GetLastError());
74 abort();
76 fp = p;
78 return (*fp)(a0, a1, a2);
81 int PASCAL
82 getpeername(SOCKET a0, struct sockaddr* a1, int* a2)
84 static int (PASCAL *fp)(SOCKET a0, struct sockaddr* a1, int* a2);
86 #ifdef DEBUG_STUB
87 idnLogPrintf(idn_log_level_trace, "stub getpeername() called\n");
88 #endif
89 if (fp == NULL) {
90 void *p;
91 if ((p = GetProcAddress(DLLHANDLE, "getpeername")) == NULL) {
92 FATAL("cannot find entry getpeername (%d)\n", GetLastError());
93 abort();
95 fp = p;
97 return (*fp)(a0, a1, a2);
100 int PASCAL
101 getsockname(SOCKET a0, struct sockaddr* a1, int* a2)
103 static int (PASCAL *fp)(SOCKET a0, struct sockaddr* a1, int* a2);
105 #ifdef DEBUG_STUB
106 idnLogPrintf(idn_log_level_trace, "stub getsockname() called\n");
107 #endif
108 if (fp == NULL) {
109 void *p;
110 if ((p = GetProcAddress(DLLHANDLE, "getsockname")) == NULL) {
111 FATAL("cannot find entry getsockname (%d)\n", GetLastError());
112 abort();
114 fp = p;
116 return (*fp)(a0, a1, a2);
119 int PASCAL
120 getsockopt(SOCKET a0, int a1, int a2, char* a3, int* a4)
122 static int (PASCAL *fp)(SOCKET a0, int a1, int a2, char* a3, int* a4);
124 #ifdef DEBUG_STUB
125 idnLogPrintf(idn_log_level_trace, "stub getsockopt() called\n");
126 #endif
127 if (fp == NULL) {
128 void *p;
129 if ((p = GetProcAddress(DLLHANDLE, "getsockopt")) == NULL) {
130 FATAL("cannot find entry getsockopt (%d)\n", GetLastError());
131 abort();
133 fp = p;
135 return (*fp)(a0, a1, a2, a3, a4);
138 u_long PASCAL
139 htonl(u_long a0)
141 static u_long (PASCAL *fp)(u_long a0);
143 #ifdef DEBUG_STUB
144 idnLogPrintf(idn_log_level_trace, "stub htonl() called\n");
145 #endif
146 if (fp == NULL) {
147 void *p;
148 if ((p = GetProcAddress(DLLHANDLE, "htonl")) == NULL) {
149 FATAL("cannot find entry htonl (%d)\n", GetLastError());
150 abort();
152 fp = p;
154 return (*fp)(a0);
157 u_short PASCAL
158 htons(u_short a0)
160 static u_short (PASCAL *fp)(u_short a0);
162 #ifdef DEBUG_STUB
163 idnLogPrintf(idn_log_level_trace, "stub htons() called\n");
164 #endif
165 if (fp == NULL) {
166 void *p;
167 if ((p = GetProcAddress(DLLHANDLE, "htons")) == NULL) {
168 FATAL("cannot find entry htons (%d)\n", GetLastError());
169 abort();
171 fp = p;
173 return (*fp)(a0);
176 int PASCAL
177 ioctlsocket(SOCKET a0, long a1, u_long * a2)
179 static int (PASCAL *fp)(SOCKET a0, long a1, u_long * a2);
181 #ifdef DEBUG_STUB
182 idnLogPrintf(idn_log_level_trace, "stub ioctlsocket() called\n");
183 #endif
184 if (fp == NULL) {
185 void *p;
186 if ((p = GetProcAddress(DLLHANDLE, "ioctlsocket")) == NULL) {
187 FATAL("cannot find entry ioctlsocket (%d)\n", GetLastError());
188 abort();
190 fp = p;
192 return (*fp)(a0, a1, a2);
195 unsigned long PASCAL
196 inet_addr(const char* a0)
198 static unsigned long (PASCAL *fp)(const char* a0);
200 #ifdef DEBUG_STUB
201 idnLogPrintf(idn_log_level_trace, "stub inet_addr() called\n");
202 #endif
203 if (fp == NULL) {
204 void *p;
205 if ((p = GetProcAddress(DLLHANDLE, "inet_addr")) == NULL) {
206 FATAL("cannot find entry inet_addr (%d)\n", GetLastError());
207 abort();
209 fp = p;
211 return (*fp)(a0);
214 char * PASCAL
215 inet_ntoa(struct in_addr a0)
217 static char * (PASCAL *fp)(struct in_addr a0);
219 #ifdef DEBUG_STUB
220 idnLogPrintf(idn_log_level_trace, "stub inet_ntoa() called\n");
221 #endif
222 if (fp == NULL) {
223 void *p;
224 if ((p = GetProcAddress(DLLHANDLE, "inet_ntoa")) == NULL) {
225 FATAL("cannot find entry inet_ntoa (%d)\n", GetLastError());
226 abort();
228 fp = p;
230 return (*fp)(a0);
233 int PASCAL
234 listen(SOCKET a0, int a1)
236 static int (PASCAL *fp)(SOCKET a0, int a1);
238 #ifdef DEBUG_STUB
239 idnLogPrintf(idn_log_level_trace, "stub listen() called\n");
240 #endif
241 if (fp == NULL) {
242 void *p;
243 if ((p = GetProcAddress(DLLHANDLE, "listen")) == NULL) {
244 FATAL("cannot find entry listen (%d)\n", GetLastError());
245 abort();
247 fp = p;
249 return (*fp)(a0, a1);
252 u_long PASCAL
253 ntohl(u_long a0)
255 static u_long (PASCAL *fp)(u_long a0);
257 #ifdef DEBUG_STUB
258 idnLogPrintf(idn_log_level_trace, "stub ntohl() called\n");
259 #endif
260 if (fp == NULL) {
261 void *p;
262 if ((p = GetProcAddress(DLLHANDLE, "ntohl")) == NULL) {
263 FATAL("cannot find entry ntohl (%d)\n", GetLastError());
264 abort();
266 fp = p;
268 return (*fp)(a0);
271 u_short PASCAL
272 ntohs(u_short a0)
274 static u_short (PASCAL *fp)(u_short a0);
276 #ifdef DEBUG_STUB
277 idnLogPrintf(idn_log_level_trace, "stub ntohs() called\n");
278 #endif
279 if (fp == NULL) {
280 void *p;
281 if ((p = GetProcAddress(DLLHANDLE, "ntohs")) == NULL) {
282 FATAL("cannot find entry ntohs (%d)\n", GetLastError());
283 abort();
285 fp = p;
287 return (*fp)(a0);
290 int PASCAL
291 recv(SOCKET a0, char* a1, int a2, int a3)
293 static int (PASCAL *fp)(SOCKET a0, char* a1, int a2, int a3);
295 #ifdef DEBUG_STUB
296 idnLogPrintf(idn_log_level_trace, "stub recv() called\n");
297 #endif
298 if (fp == NULL) {
299 void *p;
300 if ((p = GetProcAddress(DLLHANDLE, "recv")) == NULL) {
301 FATAL("cannot find entry recv (%d)\n", GetLastError());
302 abort();
304 fp = p;
306 return (*fp)(a0, a1, a2, a3);
309 int PASCAL
310 recvfrom(SOCKET a0, char* a1, int a2, int a3, struct sockaddr* a4, int* a5)
312 static int (PASCAL *fp)(SOCKET a0, char* a1, int a2, int a3, struct sockaddr* a4, int* a5);
314 #ifdef DEBUG_STUB
315 idnLogPrintf(idn_log_level_trace, "stub recvfrom() called\n");
316 #endif
317 if (fp == NULL) {
318 void *p;
319 if ((p = GetProcAddress(DLLHANDLE, "recvfrom")) == NULL) {
320 FATAL("cannot find entry recvfrom (%d)\n", GetLastError());
321 abort();
323 fp = p;
325 return (*fp)(a0, a1, a2, a3, a4, a5);
328 int PASCAL
329 select(int a0, fd_set* a1, fd_set* a2, fd_set* a3, const struct timeval* a4)
331 static int (PASCAL *fp)(int a0, fd_set* a1, fd_set* a2, fd_set* a3, const struct timeval* a4);
333 #ifdef DEBUG_STUB
334 idnLogPrintf(idn_log_level_trace, "stub select() called\n");
335 #endif
336 if (fp == NULL) {
337 void *p;
338 if ((p = GetProcAddress(DLLHANDLE, "select")) == NULL) {
339 FATAL("cannot find entry select (%d)\n", GetLastError());
340 abort();
342 fp = p;
344 return (*fp)(a0, a1, a2, a3, a4);
347 int PASCAL
348 send(SOCKET a0, const char* a1, int a2, int a3)
350 static int (PASCAL *fp)(SOCKET a0, const char* a1, int a2, int a3);
352 #ifdef DEBUG_STUB
353 idnLogPrintf(idn_log_level_trace, "stub send() called\n");
354 #endif
355 if (fp == NULL) {
356 void *p;
357 if ((p = GetProcAddress(DLLHANDLE, "send")) == NULL) {
358 FATAL("cannot find entry send (%d)\n", GetLastError());
359 abort();
361 fp = p;
363 return (*fp)(a0, a1, a2, a3);
366 int PASCAL
367 sendto(SOCKET a0, const char* a1, int a2, int a3, const struct sockaddr* a4, int a5)
369 static int (PASCAL *fp)(SOCKET a0, const char* a1, int a2, int a3, const struct sockaddr* a4, int a5);
371 #ifdef DEBUG_STUB
372 idnLogPrintf(idn_log_level_trace, "stub sendto() called\n");
373 #endif
374 if (fp == NULL) {
375 void *p;
376 if ((p = GetProcAddress(DLLHANDLE, "sendto")) == NULL) {
377 FATAL("cannot find entry sendto (%d)\n", GetLastError());
378 abort();
380 fp = p;
382 return (*fp)(a0, a1, a2, a3, a4, a5);
385 int PASCAL
386 setsockopt(SOCKET a0, int a1, int a2, const char* a3, int a4)
388 static int (PASCAL *fp)(SOCKET a0, int a1, int a2, const char* a3, int a4);
390 #ifdef DEBUG_STUB
391 idnLogPrintf(idn_log_level_trace, "stub setsockopt() called\n");
392 #endif
393 if (fp == NULL) {
394 void *p;
395 if ((p = GetProcAddress(DLLHANDLE, "setsockopt")) == NULL) {
396 FATAL("cannot find entry setsockopt (%d)\n", GetLastError());
397 abort();
399 fp = p;
401 return (*fp)(a0, a1, a2, a3, a4);
404 int PASCAL
405 shutdown(SOCKET a0, int a1)
407 static int (PASCAL *fp)(SOCKET a0, int a1);
409 #ifdef DEBUG_STUB
410 idnLogPrintf(idn_log_level_trace, "stub shutdown() called\n");
411 #endif
412 if (fp == NULL) {
413 void *p;
414 if ((p = GetProcAddress(DLLHANDLE, "shutdown")) == NULL) {
415 FATAL("cannot find entry shutdown (%d)\n", GetLastError());
416 abort();
418 fp = p;
420 return (*fp)(a0, a1);
423 SOCKET PASCAL
424 socket(int a0, int a1, int a2)
426 static SOCKET (PASCAL *fp)(int a0, int a1, int a2);
428 #ifdef DEBUG_STUB
429 idnLogPrintf(idn_log_level_trace, "stub socket() called\n");
430 #endif
431 if (fp == NULL) {
432 void *p;
433 if ((p = GetProcAddress(DLLHANDLE, "socket")) == NULL) {
434 FATAL("cannot find entry socket (%d)\n", GetLastError());
435 abort();
437 fp = p;
439 return (*fp)(a0, a1, a2);
442 int PASCAL
443 WSApSetPostRoutine(int a0)
445 static int (PASCAL *fp)(int a0);
447 #ifdef DEBUG_STUB
448 idnLogPrintf(idn_log_level_trace, "stub WSApSetPostRoutine() called\n");
449 #endif
450 if (fp == NULL) {
451 void *p;
452 if ((p = GetProcAddress(DLLHANDLE, "WSApSetPostRoutine")) == NULL) {
453 FATAL("cannot find entry WSApSetPostRoutine (%d)\n", GetLastError());
454 abort();
456 fp = p;
458 return (*fp)(a0);
461 WSAEVENT WSAAPI
462 WPUCompleteOverlappedRequest(SOCKET a0, LPWSAOVERLAPPED a1, DWORD a2, DWORD a3, LPINT a4)
464 static WSAEVENT (WSAAPI *fp)(SOCKET a0, LPWSAOVERLAPPED a1, DWORD a2, DWORD a3, LPINT a4);
466 #ifdef DEBUG_STUB
467 idnLogPrintf(idn_log_level_trace, "stub WPUCompleteOverlappedRequest() called\n");
468 #endif
469 if (fp == NULL) {
470 void *p;
471 if ((p = GetProcAddress(DLLHANDLE, "WPUCompleteOverlappedRequest")) == NULL) {
472 FATAL("cannot find entry WPUCompleteOverlappedRequest (%d)\n", GetLastError());
473 abort();
475 fp = p;
477 return (*fp)(a0, a1, a2, a3, a4);
480 SOCKET WINAPI
481 WSAAccept(SOCKET a0, struct sockaddr * a1, LPINT a2, LPCONDITIONPROC a3, DWORD a4)
483 static SOCKET (WINAPI *fp)(SOCKET a0, struct sockaddr * a1, LPINT a2, LPCONDITIONPROC a3, DWORD a4);
485 #ifdef DEBUG_STUB
486 idnLogPrintf(idn_log_level_trace, "stub WSAAccept() called\n");
487 #endif
488 if (fp == NULL) {
489 void *p;
490 if ((p = GetProcAddress(DLLHANDLE, "WSAAccept")) == NULL) {
491 FATAL("cannot find entry WSAAccept (%d)\n", GetLastError());
492 abort();
494 fp = p;
496 return (*fp)(a0, a1, a2, a3, a4);
499 INT WINAPI
500 WSAAddressToStringA(LPSOCKADDR a0, DWORD a1, LPWSAPROTOCOL_INFOA a2, LPSTR a3, LPDWORD a4)
502 static INT (WINAPI *fp)(LPSOCKADDR a0, DWORD a1, LPWSAPROTOCOL_INFOA a2, LPSTR a3, LPDWORD a4);
504 #ifdef DEBUG_STUB
505 idnLogPrintf(idn_log_level_trace, "stub WSAAddressToStringA() called\n");
506 #endif
507 if (fp == NULL) {
508 void *p;
509 if ((p = GetProcAddress(DLLHANDLE, "WSAAddressToStringA")) == NULL) {
510 FATAL("cannot find entry WSAAddressToStringA (%d)\n", GetLastError());
511 abort();
513 fp = p;
515 return (*fp)(a0, a1, a2, a3, a4);
518 INT WINAPI
519 WSAAddressToStringW(LPSOCKADDR a0, DWORD a1, LPWSAPROTOCOL_INFOW a2, LPWSTR a3, LPDWORD a4)
521 static INT (WINAPI *fp)(LPSOCKADDR a0, DWORD a1, LPWSAPROTOCOL_INFOW a2, LPWSTR a3, LPDWORD a4);
523 #ifdef DEBUG_STUB
524 idnLogPrintf(idn_log_level_trace, "stub WSAAddressToStringW() called\n");
525 #endif
526 if (fp == NULL) {
527 void *p;
528 if ((p = GetProcAddress(DLLHANDLE, "WSAAddressToStringW")) == NULL) {
529 FATAL("cannot find entry WSAAddressToStringW (%d)\n", GetLastError());
530 abort();
532 fp = p;
534 return (*fp)(a0, a1, a2, a3, a4);
537 BOOL WINAPI
538 WSACloseEvent(WSAEVENT a0)
540 static BOOL (WINAPI *fp)(WSAEVENT a0);
542 #ifdef DEBUG_STUB
543 idnLogPrintf(idn_log_level_trace, "stub WSACloseEvent() called\n");
544 #endif
545 if (fp == NULL) {
546 void *p;
547 if ((p = GetProcAddress(DLLHANDLE, "WSACloseEvent")) == NULL) {
548 FATAL("cannot find entry WSACloseEvent (%d)\n", GetLastError());
549 abort();
551 fp = p;
553 return (*fp)(a0);
556 int WINAPI
557 WSAConnect(SOCKET a0, const struct sockaddr * a1, int a2, LPWSABUF a3, LPWSABUF a4, LPQOS a5, LPQOS a6)
559 static int (WINAPI *fp)(SOCKET a0, const struct sockaddr * a1, int a2, LPWSABUF a3, LPWSABUF a4, LPQOS a5, LPQOS a6);
561 #ifdef DEBUG_STUB
562 idnLogPrintf(idn_log_level_trace, "stub WSAConnect() called\n");
563 #endif
564 if (fp == NULL) {
565 void *p;
566 if ((p = GetProcAddress(DLLHANDLE, "WSAConnect")) == NULL) {
567 FATAL("cannot find entry WSAConnect (%d)\n", GetLastError());
568 abort();
570 fp = p;
572 return (*fp)(a0, a1, a2, a3, a4, a5, a6);
575 WSAEVENT WINAPI
576 WSACreateEvent(void)
578 static WSAEVENT (WINAPI *fp)(void);
580 #ifdef DEBUG_STUB
581 idnLogPrintf(idn_log_level_trace, "stub WSACreateEvent() called\n");
582 #endif
583 if (fp == NULL) {
584 void *p;
585 if ((p = GetProcAddress(DLLHANDLE, "WSACreateEvent")) == NULL) {
586 FATAL("cannot find entry WSACreateEvent (%d)\n", GetLastError());
587 abort();
589 fp = p;
591 return (*fp)();
594 int WINAPI
595 WSADuplicateSocketA(SOCKET a0, DWORD a1, LPWSAPROTOCOL_INFOA a2)
597 static int (WINAPI *fp)(SOCKET a0, DWORD a1, LPWSAPROTOCOL_INFOA a2);
599 #ifdef DEBUG_STUB
600 idnLogPrintf(idn_log_level_trace, "stub WSADuplicateSocketA() called\n");
601 #endif
602 if (fp == NULL) {
603 void *p;
604 if ((p = GetProcAddress(DLLHANDLE, "WSADuplicateSocketA")) == NULL) {
605 FATAL("cannot find entry WSADuplicateSocketA (%d)\n", GetLastError());
606 abort();
608 fp = p;
610 return (*fp)(a0, a1, a2);
613 int WINAPI
614 WSADuplicateSocketW(SOCKET a0, DWORD a1, LPWSAPROTOCOL_INFOW a2)
616 static int (WINAPI *fp)(SOCKET a0, DWORD a1, LPWSAPROTOCOL_INFOW a2);
618 #ifdef DEBUG_STUB
619 idnLogPrintf(idn_log_level_trace, "stub WSADuplicateSocketW() called\n");
620 #endif
621 if (fp == NULL) {
622 void *p;
623 if ((p = GetProcAddress(DLLHANDLE, "WSADuplicateSocketW")) == NULL) {
624 FATAL("cannot find entry WSADuplicateSocketW (%d)\n", GetLastError());
625 abort();
627 fp = p;
629 return (*fp)(a0, a1, a2);
632 INT WINAPI
633 WSAEnumNameSpaceProvidersA(LPDWORD a0, LPWSANAMESPACE_INFOA a1)
635 static INT (WINAPI *fp)(LPDWORD a0, LPWSANAMESPACE_INFOA a1);
637 #ifdef DEBUG_STUB
638 idnLogPrintf(idn_log_level_trace, "stub WSAEnumNameSpaceProvidersA() called\n");
639 #endif
640 if (fp == NULL) {
641 void *p;
642 if ((p = GetProcAddress(DLLHANDLE, "WSAEnumNameSpaceProvidersA")) == NULL) {
643 FATAL("cannot find entry WSAEnumNameSpaceProvidersA (%d)\n", GetLastError());
644 abort();
646 fp = p;
648 return (*fp)(a0, a1);
651 INT WINAPI
652 WSAEnumNameSpaceProvidersW(LPDWORD a0, LPWSANAMESPACE_INFOW a1)
654 static INT (WINAPI *fp)(LPDWORD a0, LPWSANAMESPACE_INFOW a1);
656 #ifdef DEBUG_STUB
657 idnLogPrintf(idn_log_level_trace, "stub WSAEnumNameSpaceProvidersW() called\n");
658 #endif
659 if (fp == NULL) {
660 void *p;
661 if ((p = GetProcAddress(DLLHANDLE, "WSAEnumNameSpaceProvidersW")) == NULL) {
662 FATAL("cannot find entry WSAEnumNameSpaceProvidersW (%d)\n", GetLastError());
663 abort();
665 fp = p;
667 return (*fp)(a0, a1);
670 int WINAPI
671 WSAEnumNetworkEvents(SOCKET a0, WSAEVENT a1, LPWSANETWORKEVENTS a2)
673 static int (WINAPI *fp)(SOCKET a0, WSAEVENT a1, LPWSANETWORKEVENTS a2);
675 #ifdef DEBUG_STUB
676 idnLogPrintf(idn_log_level_trace, "stub WSAEnumNetworkEvents() called\n");
677 #endif
678 if (fp == NULL) {
679 void *p;
680 if ((p = GetProcAddress(DLLHANDLE, "WSAEnumNetworkEvents")) == NULL) {
681 FATAL("cannot find entry WSAEnumNetworkEvents (%d)\n", GetLastError());
682 abort();
684 fp = p;
686 return (*fp)(a0, a1, a2);
689 int WINAPI
690 WSAEnumProtocolsA(LPINT a0, LPWSAPROTOCOL_INFOA a1, LPDWORD a2)
692 static int (WINAPI *fp)(LPINT a0, LPWSAPROTOCOL_INFOA a1, LPDWORD a2);
694 #ifdef DEBUG_STUB
695 idnLogPrintf(idn_log_level_trace, "stub WSAEnumProtocolsA() called\n");
696 #endif
697 if (fp == NULL) {
698 void *p;
699 if ((p = GetProcAddress(DLLHANDLE, "WSAEnumProtocolsA")) == NULL) {
700 FATAL("cannot find entry WSAEnumProtocolsA (%d)\n", GetLastError());
701 abort();
703 fp = p;
705 return (*fp)(a0, a1, a2);
708 int WINAPI
709 WSAEnumProtocolsW(LPINT a0, LPWSAPROTOCOL_INFOW a1, LPDWORD a2)
711 static int (WINAPI *fp)(LPINT a0, LPWSAPROTOCOL_INFOW a1, LPDWORD a2);
713 #ifdef DEBUG_STUB
714 idnLogPrintf(idn_log_level_trace, "stub WSAEnumProtocolsW() called\n");
715 #endif
716 if (fp == NULL) {
717 void *p;
718 if ((p = GetProcAddress(DLLHANDLE, "WSAEnumProtocolsW")) == NULL) {
719 FATAL("cannot find entry WSAEnumProtocolsW (%d)\n", GetLastError());
720 abort();
722 fp = p;
724 return (*fp)(a0, a1, a2);
727 int WINAPI
728 WSAEventSelect(SOCKET a0, WSAEVENT a1, long a2)
730 static int (WINAPI *fp)(SOCKET a0, WSAEVENT a1, long a2);
732 #ifdef DEBUG_STUB
733 idnLogPrintf(idn_log_level_trace, "stub WSAEventSelect() called\n");
734 #endif
735 if (fp == NULL) {
736 void *p;
737 if ((p = GetProcAddress(DLLHANDLE, "WSAEventSelect")) == NULL) {
738 FATAL("cannot find entry WSAEventSelect (%d)\n", GetLastError());
739 abort();
741 fp = p;
743 return (*fp)(a0, a1, a2);
746 BOOL WINAPI
747 WSAGetOverlappedResult(SOCKET a0, LPWSAOVERLAPPED a1, LPDWORD a2, BOOL a3, LPDWORD a4)
749 static BOOL (WINAPI *fp)(SOCKET a0, LPWSAOVERLAPPED a1, LPDWORD a2, BOOL a3, LPDWORD a4);
751 #ifdef DEBUG_STUB
752 idnLogPrintf(idn_log_level_trace, "stub WSAGetOverlappedResult() called\n");
753 #endif
754 if (fp == NULL) {
755 void *p;
756 if ((p = GetProcAddress(DLLHANDLE, "WSAGetOverlappedResult")) == NULL) {
757 FATAL("cannot find entry WSAGetOverlappedResult (%d)\n", GetLastError());
758 abort();
760 fp = p;
762 return (*fp)(a0, a1, a2, a3, a4);
765 BOOL WINAPI
766 WSAGetQOSByName(SOCKET a0, LPWSABUF a1, LPQOS a2)
768 static BOOL (WINAPI *fp)(SOCKET a0, LPWSABUF a1, LPQOS a2);
770 #ifdef DEBUG_STUB
771 idnLogPrintf(idn_log_level_trace, "stub WSAGetQOSByName() called\n");
772 #endif
773 if (fp == NULL) {
774 void *p;
775 if ((p = GetProcAddress(DLLHANDLE, "WSAGetQOSByName")) == NULL) {
776 FATAL("cannot find entry WSAGetQOSByName (%d)\n", GetLastError());
777 abort();
779 fp = p;
781 return (*fp)(a0, a1, a2);
784 INT WINAPI
785 WSAGetServiceClassInfoA(LPGUID a0, LPGUID a1, LPDWORD a2, LPWSASERVICECLASSINFOA a3)
787 static INT (WINAPI *fp)(LPGUID a0, LPGUID a1, LPDWORD a2, LPWSASERVICECLASSINFOA a3);
789 #ifdef DEBUG_STUB
790 idnLogPrintf(idn_log_level_trace, "stub WSAGetServiceClassInfoA() called\n");
791 #endif
792 if (fp == NULL) {
793 void *p;
794 if ((p = GetProcAddress(DLLHANDLE, "WSAGetServiceClassInfoA")) == NULL) {
795 FATAL("cannot find entry WSAGetServiceClassInfoA (%d)\n", GetLastError());
796 abort();
798 fp = p;
800 return (*fp)(a0, a1, a2, a3);
803 INT WINAPI
804 WSAGetServiceClassInfoW(LPGUID a0, LPGUID a1, LPDWORD a2, LPWSASERVICECLASSINFOW a3)
806 static INT (WINAPI *fp)(LPGUID a0, LPGUID a1, LPDWORD a2, LPWSASERVICECLASSINFOW a3);
808 #ifdef DEBUG_STUB
809 idnLogPrintf(idn_log_level_trace, "stub WSAGetServiceClassInfoW() called\n");
810 #endif
811 if (fp == NULL) {
812 void *p;
813 if ((p = GetProcAddress(DLLHANDLE, "WSAGetServiceClassInfoW")) == NULL) {
814 FATAL("cannot find entry WSAGetServiceClassInfoW (%d)\n", GetLastError());
815 abort();
817 fp = p;
819 return (*fp)(a0, a1, a2, a3);
822 INT WINAPI
823 WSAGetServiceClassNameByClassIdA(LPGUID a0, LPSTR a1, LPDWORD a2)
825 static INT (WINAPI *fp)(LPGUID a0, LPSTR a1, LPDWORD a2);
827 #ifdef DEBUG_STUB
828 idnLogPrintf(idn_log_level_trace, "stub WSAGetServiceClassNameByClassIdA() called\n");
829 #endif
830 if (fp == NULL) {
831 void *p;
832 if ((p = GetProcAddress(DLLHANDLE, "WSAGetServiceClassNameByClassIdA")) == NULL) {
833 FATAL("cannot find entry WSAGetServiceClassNameByClassIdA (%d)\n", GetLastError());
834 abort();
836 fp = p;
838 return (*fp)(a0, a1, a2);
841 INT WINAPI
842 WSAGetServiceClassNameByClassIdW(LPGUID a0, LPWSTR a1, LPDWORD a2)
844 static INT (WINAPI *fp)(LPGUID a0, LPWSTR a1, LPDWORD a2);
846 #ifdef DEBUG_STUB
847 idnLogPrintf(idn_log_level_trace, "stub WSAGetServiceClassNameByClassIdW() called\n");
848 #endif
849 if (fp == NULL) {
850 void *p;
851 if ((p = GetProcAddress(DLLHANDLE, "WSAGetServiceClassNameByClassIdW")) == NULL) {
852 FATAL("cannot find entry WSAGetServiceClassNameByClassIdW (%d)\n", GetLastError());
853 abort();
855 fp = p;
857 return (*fp)(a0, a1, a2);
860 int WINAPI
861 WSAHtonl(SOCKET a0, unsigned long a1, unsigned long * a2)
863 static int (WINAPI *fp)(SOCKET a0, unsigned long a1, unsigned long * a2);
865 #ifdef DEBUG_STUB
866 idnLogPrintf(idn_log_level_trace, "stub WSAHtonl() called\n");
867 #endif
868 if (fp == NULL) {
869 void *p;
870 if ((p = GetProcAddress(DLLHANDLE, "WSAHtonl")) == NULL) {
871 FATAL("cannot find entry WSAHtonl (%d)\n", GetLastError());
872 abort();
874 fp = p;
876 return (*fp)(a0, a1, a2);
879 int WINAPI
880 WSAHtons(SOCKET a0, unsigned short a1, unsigned short * a2)
882 static int (WINAPI *fp)(SOCKET a0, unsigned short a1, unsigned short * a2);
884 #ifdef DEBUG_STUB
885 idnLogPrintf(idn_log_level_trace, "stub WSAHtons() called\n");
886 #endif
887 if (fp == NULL) {
888 void *p;
889 if ((p = GetProcAddress(DLLHANDLE, "WSAHtons")) == NULL) {
890 FATAL("cannot find entry WSAHtons (%d)\n", GetLastError());
891 abort();
893 fp = p;
895 return (*fp)(a0, a1, a2);
898 INT WINAPI
899 WSAInstallServiceClassA(LPWSASERVICECLASSINFOA a0)
901 static INT (WINAPI *fp)(LPWSASERVICECLASSINFOA a0);
903 #ifdef DEBUG_STUB
904 idnLogPrintf(idn_log_level_trace, "stub WSAInstallServiceClassA() called\n");
905 #endif
906 if (fp == NULL) {
907 void *p;
908 if ((p = GetProcAddress(DLLHANDLE, "WSAInstallServiceClassA")) == NULL) {
909 FATAL("cannot find entry WSAInstallServiceClassA (%d)\n", GetLastError());
910 abort();
912 fp = p;
914 return (*fp)(a0);
917 INT WINAPI
918 WSAInstallServiceClassW(LPWSASERVICECLASSINFOW a0)
920 static INT (WINAPI *fp)(LPWSASERVICECLASSINFOW a0);
922 #ifdef DEBUG_STUB
923 idnLogPrintf(idn_log_level_trace, "stub WSAInstallServiceClassW() called\n");
924 #endif
925 if (fp == NULL) {
926 void *p;
927 if ((p = GetProcAddress(DLLHANDLE, "WSAInstallServiceClassW")) == NULL) {
928 FATAL("cannot find entry WSAInstallServiceClassW (%d)\n", GetLastError());
929 abort();
931 fp = p;
933 return (*fp)(a0);
936 int WINAPI
937 WSAIoctl(SOCKET a0, DWORD a1, LPVOID a2, DWORD a3, LPVOID a4, DWORD a5, LPDWORD a6, LPWSAOVERLAPPED a7, LPWSAOVERLAPPED_COMPLETION_ROUTINE a8)
939 static int (WINAPI *fp)(SOCKET a0, DWORD a1, LPVOID a2, DWORD a3, LPVOID a4, DWORD a5, LPDWORD a6, LPWSAOVERLAPPED a7, LPWSAOVERLAPPED_COMPLETION_ROUTINE a8);
941 #ifdef DEBUG_STUB
942 idnLogPrintf(idn_log_level_trace, "stub WSAIoctl() called\n");
943 #endif
944 if (fp == NULL) {
945 void *p;
946 if ((p = GetProcAddress(DLLHANDLE, "WSAIoctl")) == NULL) {
947 FATAL("cannot find entry WSAIoctl (%d)\n", GetLastError());
948 abort();
950 fp = p;
952 return (*fp)(a0, a1, a2, a3, a4, a5, a6, a7, a8);
955 struct hostent * PASCAL
956 _org_gethostbyaddr(const char* a0, int a1, int a2)
958 static struct hostent * (PASCAL *fp)(const char* a0, int a1, int a2);
960 #ifdef DEBUG_STUB
961 idnLogPrintf(idn_log_level_trace, "stub _org_gethostbyaddr() called\n");
962 #endif
963 if (fp == NULL) {
964 void *p;
965 if ((p = GetProcAddress(DLLHANDLE, "gethostbyaddr")) == NULL) {
966 FATAL("cannot find entry gethostbyaddr (%d)\n", GetLastError());
967 abort();
969 fp = p;
971 return (*fp)(a0, a1, a2);
974 struct hostent * PASCAL
975 _org_gethostbyname(const char* a0)
977 static struct hostent * (PASCAL *fp)(const char* a0);
979 #ifdef DEBUG_STUB
980 idnLogPrintf(idn_log_level_trace, "stub _org_gethostbyname() called\n");
981 #endif
982 if (fp == NULL) {
983 void *p;
984 if ((p = GetProcAddress(DLLHANDLE, "gethostbyname")) == NULL) {
985 FATAL("cannot find entry gethostbyname (%d)\n", GetLastError());
986 abort();
988 fp = p;
990 return (*fp)(a0);
993 struct protoent * PASCAL
994 getprotobyname(const char* a0)
996 static struct protoent * (PASCAL *fp)(const char* a0);
998 #ifdef DEBUG_STUB
999 idnLogPrintf(idn_log_level_trace, "stub getprotobyname() called\n");
1000 #endif
1001 if (fp == NULL) {
1002 void *p;
1003 if ((p = GetProcAddress(DLLHANDLE, "getprotobyname")) == NULL) {
1004 FATAL("cannot find entry getprotobyname (%d)\n", GetLastError());
1005 abort();
1007 fp = p;
1009 return (*fp)(a0);
1012 struct protoent * PASCAL
1013 getprotobynumber(int a0)
1015 static struct protoent * (PASCAL *fp)(int a0);
1017 #ifdef DEBUG_STUB
1018 idnLogPrintf(idn_log_level_trace, "stub getprotobynumber() called\n");
1019 #endif
1020 if (fp == NULL) {
1021 void *p;
1022 if ((p = GetProcAddress(DLLHANDLE, "getprotobynumber")) == NULL) {
1023 FATAL("cannot find entry getprotobynumber (%d)\n", GetLastError());
1024 abort();
1026 fp = p;
1028 return (*fp)(a0);
1031 struct servent * PASCAL
1032 getservbyname(const char* a0, const char* a1)
1034 static struct servent * (PASCAL *fp)(const char* a0, const char* a1);
1036 #ifdef DEBUG_STUB
1037 idnLogPrintf(idn_log_level_trace, "stub getservbyname() called\n");
1038 #endif
1039 if (fp == NULL) {
1040 void *p;
1041 if ((p = GetProcAddress(DLLHANDLE, "getservbyname")) == NULL) {
1042 FATAL("cannot find entry getservbyname (%d)\n", GetLastError());
1043 abort();
1045 fp = p;
1047 return (*fp)(a0, a1);
1050 struct servent * PASCAL
1051 getservbyport(int a0, const char* a1)
1053 static struct servent * (PASCAL *fp)(int a0, const char* a1);
1055 #ifdef DEBUG_STUB
1056 idnLogPrintf(idn_log_level_trace, "stub getservbyport() called\n");
1057 #endif
1058 if (fp == NULL) {
1059 void *p;
1060 if ((p = GetProcAddress(DLLHANDLE, "getservbyport")) == NULL) {
1061 FATAL("cannot find entry getservbyport (%d)\n", GetLastError());
1062 abort();
1064 fp = p;
1066 return (*fp)(a0, a1);
1069 int PASCAL
1070 _org_gethostname(char* a0, int a1)
1072 static int (PASCAL *fp)(char* a0, int a1);
1074 #ifdef DEBUG_STUB
1075 idnLogPrintf(idn_log_level_trace, "stub _org_gethostname() called\n");
1076 #endif
1077 if (fp == NULL) {
1078 void *p;
1079 if ((p = GetProcAddress(DLLHANDLE, "gethostname")) == NULL) {
1080 FATAL("cannot find entry gethostname (%d)\n", GetLastError());
1081 abort();
1083 fp = p;
1085 return (*fp)(a0, a1);
1088 SOCKET WINAPI
1089 WSAJoinLeaf(SOCKET a0, const struct sockaddr * a1, int a2, LPWSABUF a3, LPWSABUF a4, LPQOS a5, LPQOS a6, DWORD a7)
1091 static SOCKET (WINAPI *fp)(SOCKET a0, const struct sockaddr * a1, int a2, LPWSABUF a3, LPWSABUF a4, LPQOS a5, LPQOS a6, DWORD a7);
1093 #ifdef DEBUG_STUB
1094 idnLogPrintf(idn_log_level_trace, "stub WSAJoinLeaf() called\n");
1095 #endif
1096 if (fp == NULL) {
1097 void *p;
1098 if ((p = GetProcAddress(DLLHANDLE, "WSAJoinLeaf")) == NULL) {
1099 FATAL("cannot find entry WSAJoinLeaf (%d)\n", GetLastError());
1100 abort();
1102 fp = p;
1104 return (*fp)(a0, a1, a2, a3, a4, a5, a6, a7);
1107 INT WINAPI
1108 _org_WSALookupServiceBeginA(LPWSAQUERYSETA a0, DWORD a1, LPHANDLE a2)
1110 static INT (WINAPI *fp)(LPWSAQUERYSETA a0, DWORD a1, LPHANDLE a2);
1112 #ifdef DEBUG_STUB
1113 idnLogPrintf(idn_log_level_trace, "stub _org_WSALookupServiceBeginA() called\n");
1114 #endif
1115 if (fp == NULL) {
1116 void *p;
1117 if ((p = GetProcAddress(DLLHANDLE, "WSALookupServiceBeginA")) == NULL) {
1118 FATAL("cannot find entry WSALookupServiceBeginA (%d)\n", GetLastError());
1119 abort();
1121 fp = p;
1123 return (*fp)(a0, a1, a2);
1126 INT WINAPI
1127 _org_WSALookupServiceBeginW(LPWSAQUERYSETW a0, DWORD a1, LPHANDLE a2)
1129 static INT (WINAPI *fp)(LPWSAQUERYSETW a0, DWORD a1, LPHANDLE a2);
1131 #ifdef DEBUG_STUB
1132 idnLogPrintf(idn_log_level_trace, "stub _org_WSALookupServiceBeginW() called\n");
1133 #endif
1134 if (fp == NULL) {
1135 void *p;
1136 if ((p = GetProcAddress(DLLHANDLE, "WSALookupServiceBeginW")) == NULL) {
1137 FATAL("cannot find entry WSALookupServiceBeginW (%d)\n", GetLastError());
1138 abort();
1140 fp = p;
1142 return (*fp)(a0, a1, a2);
1145 INT WINAPI
1146 _org_WSALookupServiceEnd(HANDLE a0)
1148 static INT (WINAPI *fp)(HANDLE a0);
1150 #ifdef DEBUG_STUB
1151 idnLogPrintf(idn_log_level_trace, "stub _org_WSALookupServiceEnd() called\n");
1152 #endif
1153 if (fp == NULL) {
1154 void *p;
1155 if ((p = GetProcAddress(DLLHANDLE, "WSALookupServiceEnd")) == NULL) {
1156 FATAL("cannot find entry WSALookupServiceEnd (%d)\n", GetLastError());
1157 abort();
1159 fp = p;
1161 return (*fp)(a0);
1164 INT WINAPI
1165 _org_WSALookupServiceNextA(HANDLE a0, DWORD a1, LPDWORD a2, LPWSAQUERYSETA a3)
1167 static INT (WINAPI *fp)(HANDLE a0, DWORD a1, LPDWORD a2, LPWSAQUERYSETA a3);
1169 #ifdef DEBUG_STUB
1170 idnLogPrintf(idn_log_level_trace, "stub _org_WSALookupServiceNextA() called\n");
1171 #endif
1172 if (fp == NULL) {
1173 void *p;
1174 if ((p = GetProcAddress(DLLHANDLE, "WSALookupServiceNextA")) == NULL) {
1175 FATAL("cannot find entry WSALookupServiceNextA (%d)\n", GetLastError());
1176 abort();
1178 fp = p;
1180 return (*fp)(a0, a1, a2, a3);
1183 INT WINAPI
1184 _org_WSALookupServiceNextW(HANDLE a0, DWORD a1, LPDWORD a2, LPWSAQUERYSETW a3)
1186 static INT (WINAPI *fp)(HANDLE a0, DWORD a1, LPDWORD a2, LPWSAQUERYSETW a3);
1188 #ifdef DEBUG_STUB
1189 idnLogPrintf(idn_log_level_trace, "stub _org_WSALookupServiceNextW() called\n");
1190 #endif
1191 if (fp == NULL) {
1192 void *p;
1193 if ((p = GetProcAddress(DLLHANDLE, "WSALookupServiceNextW")) == NULL) {
1194 FATAL("cannot find entry WSALookupServiceNextW (%d)\n", GetLastError());
1195 abort();
1197 fp = p;
1199 return (*fp)(a0, a1, a2, a3);
1202 int WINAPI
1203 WSANtohl(SOCKET a0, unsigned long a1, unsigned long * a2)
1205 static int (WINAPI *fp)(SOCKET a0, unsigned long a1, unsigned long * a2);
1207 #ifdef DEBUG_STUB
1208 idnLogPrintf(idn_log_level_trace, "stub WSANtohl() called\n");
1209 #endif
1210 if (fp == NULL) {
1211 void *p;
1212 if ((p = GetProcAddress(DLLHANDLE, "WSANtohl")) == NULL) {
1213 FATAL("cannot find entry WSANtohl (%d)\n", GetLastError());
1214 abort();
1216 fp = p;
1218 return (*fp)(a0, a1, a2);
1221 int WINAPI
1222 WSANtohs(SOCKET a0, unsigned short a1, unsigned short * a2)
1224 static int (WINAPI *fp)(SOCKET a0, unsigned short a1, unsigned short * a2);
1226 #ifdef DEBUG_STUB
1227 idnLogPrintf(idn_log_level_trace, "stub WSANtohs() called\n");
1228 #endif
1229 if (fp == NULL) {
1230 void *p;
1231 if ((p = GetProcAddress(DLLHANDLE, "WSANtohs")) == NULL) {
1232 FATAL("cannot find entry WSANtohs (%d)\n", GetLastError());
1233 abort();
1235 fp = p;
1237 return (*fp)(a0, a1, a2);
1240 int WSAAPI
1241 WSAProviderConfigChange(LPHANDLE a0, LPWSAOVERLAPPED a1, LPWSAOVERLAPPED_COMPLETION_ROUTINE a2)
1243 static int (WSAAPI *fp)(LPHANDLE a0, LPWSAOVERLAPPED a1, LPWSAOVERLAPPED_COMPLETION_ROUTINE a2);
1245 #ifdef DEBUG_STUB
1246 idnLogPrintf(idn_log_level_trace, "stub WSAProviderConfigChange() called\n");
1247 #endif
1248 if (fp == NULL) {
1249 void *p;
1250 if ((p = GetProcAddress(DLLHANDLE, "WSAProviderConfigChange")) == NULL) {
1251 FATAL("cannot find entry WSAProviderConfigChange (%d)\n", GetLastError());
1252 abort();
1254 fp = p;
1256 return (*fp)(a0, a1, a2);
1259 int WINAPI
1260 WSARecv(SOCKET a0, LPWSABUF a1, DWORD a2, LPDWORD a3, LPDWORD a4, LPWSAOVERLAPPED a5, LPWSAOVERLAPPED_COMPLETION_ROUTINE a6)
1262 static int (WINAPI *fp)(SOCKET a0, LPWSABUF a1, DWORD a2, LPDWORD a3, LPDWORD a4, LPWSAOVERLAPPED a5, LPWSAOVERLAPPED_COMPLETION_ROUTINE a6);
1264 #ifdef DEBUG_STUB
1265 idnLogPrintf(idn_log_level_trace, "stub WSARecv() called\n");
1266 #endif
1267 if (fp == NULL) {
1268 void *p;
1269 if ((p = GetProcAddress(DLLHANDLE, "WSARecv")) == NULL) {
1270 FATAL("cannot find entry WSARecv (%d)\n", GetLastError());
1271 abort();
1273 fp = p;
1275 return (*fp)(a0, a1, a2, a3, a4, a5, a6);
1278 int WINAPI
1279 WSARecvDisconnect(SOCKET a0, LPWSABUF a1)
1281 static int (WINAPI *fp)(SOCKET a0, LPWSABUF a1);
1283 #ifdef DEBUG_STUB
1284 idnLogPrintf(idn_log_level_trace, "stub WSARecvDisconnect() called\n");
1285 #endif
1286 if (fp == NULL) {
1287 void *p;
1288 if ((p = GetProcAddress(DLLHANDLE, "WSARecvDisconnect")) == NULL) {
1289 FATAL("cannot find entry WSARecvDisconnect (%d)\n", GetLastError());
1290 abort();
1292 fp = p;
1294 return (*fp)(a0, a1);
1297 int WINAPI
1298 WSARecvFrom(SOCKET a0, LPWSABUF a1, DWORD a2, LPDWORD a3, LPDWORD a4, struct sockaddr * a5, LPINT a6, LPWSAOVERLAPPED a7, LPWSAOVERLAPPED_COMPLETION_ROUTINE a8)
1300 static int (WINAPI *fp)(SOCKET a0, LPWSABUF a1, DWORD a2, LPDWORD a3, LPDWORD a4, struct sockaddr * a5, LPINT a6, LPWSAOVERLAPPED a7, LPWSAOVERLAPPED_COMPLETION_ROUTINE a8);
1302 #ifdef DEBUG_STUB
1303 idnLogPrintf(idn_log_level_trace, "stub WSARecvFrom() called\n");
1304 #endif
1305 if (fp == NULL) {
1306 void *p;
1307 if ((p = GetProcAddress(DLLHANDLE, "WSARecvFrom")) == NULL) {
1308 FATAL("cannot find entry WSARecvFrom (%d)\n", GetLastError());
1309 abort();
1311 fp = p;
1313 return (*fp)(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1316 INT WINAPI
1317 WSARemoveServiceClass(LPGUID a0)
1319 static INT (WINAPI *fp)(LPGUID a0);
1321 #ifdef DEBUG_STUB
1322 idnLogPrintf(idn_log_level_trace, "stub WSARemoveServiceClass() called\n");
1323 #endif
1324 if (fp == NULL) {
1325 void *p;
1326 if ((p = GetProcAddress(DLLHANDLE, "WSARemoveServiceClass")) == NULL) {
1327 FATAL("cannot find entry WSARemoveServiceClass (%d)\n", GetLastError());
1328 abort();
1330 fp = p;
1332 return (*fp)(a0);
1335 BOOL WINAPI
1336 WSAResetEvent(WSAEVENT a0)
1338 static BOOL (WINAPI *fp)(WSAEVENT a0);
1340 #ifdef DEBUG_STUB
1341 idnLogPrintf(idn_log_level_trace, "stub WSAResetEvent() called\n");
1342 #endif
1343 if (fp == NULL) {
1344 void *p;
1345 if ((p = GetProcAddress(DLLHANDLE, "WSAResetEvent")) == NULL) {
1346 FATAL("cannot find entry WSAResetEvent (%d)\n", GetLastError());
1347 abort();
1349 fp = p;
1351 return (*fp)(a0);
1354 int WINAPI
1355 WSASend(SOCKET a0, LPWSABUF a1, DWORD a2, LPDWORD a3, DWORD a4, LPWSAOVERLAPPED a5, LPWSAOVERLAPPED_COMPLETION_ROUTINE a6)
1357 static int (WINAPI *fp)(SOCKET a0, LPWSABUF a1, DWORD a2, LPDWORD a3, DWORD a4, LPWSAOVERLAPPED a5, LPWSAOVERLAPPED_COMPLETION_ROUTINE a6);
1359 #ifdef DEBUG_STUB
1360 idnLogPrintf(idn_log_level_trace, "stub WSASend() called\n");
1361 #endif
1362 if (fp == NULL) {
1363 void *p;
1364 if ((p = GetProcAddress(DLLHANDLE, "WSASend")) == NULL) {
1365 FATAL("cannot find entry WSASend (%d)\n", GetLastError());
1366 abort();
1368 fp = p;
1370 return (*fp)(a0, a1, a2, a3, a4, a5, a6);
1373 int WINAPI
1374 WSASendDisconnect(SOCKET a0, LPWSABUF a1)
1376 static int (WINAPI *fp)(SOCKET a0, LPWSABUF a1);
1378 #ifdef DEBUG_STUB
1379 idnLogPrintf(idn_log_level_trace, "stub WSASendDisconnect() called\n");
1380 #endif
1381 if (fp == NULL) {
1382 void *p;
1383 if ((p = GetProcAddress(DLLHANDLE, "WSASendDisconnect")) == NULL) {
1384 FATAL("cannot find entry WSASendDisconnect (%d)\n", GetLastError());
1385 abort();
1387 fp = p;
1389 return (*fp)(a0, a1);
1392 int WINAPI
1393 WSASendTo(SOCKET a0, LPWSABUF a1, DWORD a2, LPDWORD a3, DWORD a4, const struct sockaddr * a5, int a6, LPWSAOVERLAPPED a7, LPWSAOVERLAPPED_COMPLETION_ROUTINE a8)
1395 static int (WINAPI *fp)(SOCKET a0, LPWSABUF a1, DWORD a2, LPDWORD a3, DWORD a4, const struct sockaddr * a5, int a6, LPWSAOVERLAPPED a7, LPWSAOVERLAPPED_COMPLETION_ROUTINE a8);
1397 #ifdef DEBUG_STUB
1398 idnLogPrintf(idn_log_level_trace, "stub WSASendTo() called\n");
1399 #endif
1400 if (fp == NULL) {
1401 void *p;
1402 if ((p = GetProcAddress(DLLHANDLE, "WSASendTo")) == NULL) {
1403 FATAL("cannot find entry WSASendTo (%d)\n", GetLastError());
1404 abort();
1406 fp = p;
1408 return (*fp)(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1411 BOOL WINAPI
1412 WSASetEvent(WSAEVENT a0)
1414 static BOOL (WINAPI *fp)(WSAEVENT a0);
1416 #ifdef DEBUG_STUB
1417 idnLogPrintf(idn_log_level_trace, "stub WSASetEvent() called\n");
1418 #endif
1419 if (fp == NULL) {
1420 void *p;
1421 if ((p = GetProcAddress(DLLHANDLE, "WSASetEvent")) == NULL) {
1422 FATAL("cannot find entry WSASetEvent (%d)\n", GetLastError());
1423 abort();
1425 fp = p;
1427 return (*fp)(a0);
1430 INT WSAAPI
1431 WSASetServiceA(LPWSAQUERYSETA a0, WSAESETSERVICEOP a1, DWORD a2)
1433 static INT (WSAAPI *fp)(LPWSAQUERYSETA a0, WSAESETSERVICEOP a1, DWORD a2);
1435 #ifdef DEBUG_STUB
1436 idnLogPrintf(idn_log_level_trace, "stub WSASetServiceA() called\n");
1437 #endif
1438 if (fp == NULL) {
1439 void *p;
1440 if ((p = GetProcAddress(DLLHANDLE, "WSASetServiceA")) == NULL) {
1441 FATAL("cannot find entry WSASetServiceA (%d)\n", GetLastError());
1442 abort();
1444 fp = p;
1446 return (*fp)(a0, a1, a2);
1449 INT WINAPI
1450 WSASetServiceW(LPWSAQUERYSETW a0, WSAESETSERVICEOP a1, DWORD a2)
1452 static INT (WINAPI *fp)(LPWSAQUERYSETW a0, WSAESETSERVICEOP a1, DWORD a2);
1454 #ifdef DEBUG_STUB
1455 idnLogPrintf(idn_log_level_trace, "stub WSASetServiceW() called\n");
1456 #endif
1457 if (fp == NULL) {
1458 void *p;
1459 if ((p = GetProcAddress(DLLHANDLE, "WSASetServiceW")) == NULL) {
1460 FATAL("cannot find entry WSASetServiceW (%d)\n", GetLastError());
1461 abort();
1463 fp = p;
1465 return (*fp)(a0, a1, a2);
1468 SOCKET WINAPI
1469 WSASocketA(int a0, int a1, int a2, LPWSAPROTOCOL_INFOA a3, GROUP a4, DWORD a5)
1471 static SOCKET (WINAPI *fp)(int a0, int a1, int a2, LPWSAPROTOCOL_INFOA a3, GROUP a4, DWORD a5);
1473 #ifdef DEBUG_STUB
1474 idnLogPrintf(idn_log_level_trace, "stub WSASocketA() called\n");
1475 #endif
1476 if (fp == NULL) {
1477 void *p;
1478 if ((p = GetProcAddress(DLLHANDLE, "WSASocketA")) == NULL) {
1479 FATAL("cannot find entry WSASocketA (%d)\n", GetLastError());
1480 abort();
1482 fp = p;
1484 return (*fp)(a0, a1, a2, a3, a4, a5);
1487 SOCKET WINAPI
1488 WSASocketW(int a0, int a1, int a2, LPWSAPROTOCOL_INFOW a3, GROUP a4, DWORD a5)
1490 static SOCKET (WINAPI *fp)(int a0, int a1, int a2, LPWSAPROTOCOL_INFOW a3, GROUP a4, DWORD a5);
1492 #ifdef DEBUG_STUB
1493 idnLogPrintf(idn_log_level_trace, "stub WSASocketW() called\n");
1494 #endif
1495 if (fp == NULL) {
1496 void *p;
1497 if ((p = GetProcAddress(DLLHANDLE, "WSASocketW")) == NULL) {
1498 FATAL("cannot find entry WSASocketW (%d)\n", GetLastError());
1499 abort();
1501 fp = p;
1503 return (*fp)(a0, a1, a2, a3, a4, a5);
1506 INT WINAPI
1507 WSAStringToAddressA(LPSTR a0, INT a1, LPWSAPROTOCOL_INFOA a2, LPSOCKADDR a3, LPINT a4)
1509 static INT (WINAPI *fp)(LPSTR a0, INT a1, LPWSAPROTOCOL_INFOA a2, LPSOCKADDR a3, LPINT a4);
1511 #ifdef DEBUG_STUB
1512 idnLogPrintf(idn_log_level_trace, "stub WSAStringToAddressA() called\n");
1513 #endif
1514 if (fp == NULL) {
1515 void *p;
1516 if ((p = GetProcAddress(DLLHANDLE, "WSAStringToAddressA")) == NULL) {
1517 FATAL("cannot find entry WSAStringToAddressA (%d)\n", GetLastError());
1518 abort();
1520 fp = p;
1522 return (*fp)(a0, a1, a2, a3, a4);
1525 INT WINAPI
1526 WSAStringToAddressW(LPWSTR a0, INT a1, LPWSAPROTOCOL_INFOW a2, LPSOCKADDR a3, LPINT a4)
1528 static INT (WINAPI *fp)(LPWSTR a0, INT a1, LPWSAPROTOCOL_INFOW a2, LPSOCKADDR a3, LPINT a4);
1530 #ifdef DEBUG_STUB
1531 idnLogPrintf(idn_log_level_trace, "stub WSAStringToAddressW() called\n");
1532 #endif
1533 if (fp == NULL) {
1534 void *p;
1535 if ((p = GetProcAddress(DLLHANDLE, "WSAStringToAddressW")) == NULL) {
1536 FATAL("cannot find entry WSAStringToAddressW (%d)\n", GetLastError());
1537 abort();
1539 fp = p;
1541 return (*fp)(a0, a1, a2, a3, a4);
1544 DWORD WINAPI
1545 WSAWaitForMultipleEvents(DWORD a0, const WSAEVENT * a1, BOOL a2, DWORD a3, BOOL a4)
1547 static DWORD (WINAPI *fp)(DWORD a0, const WSAEVENT * a1, BOOL a2, DWORD a3, BOOL a4);
1549 #ifdef DEBUG_STUB
1550 idnLogPrintf(idn_log_level_trace, "stub WSAWaitForMultipleEvents() called\n");
1551 #endif
1552 if (fp == NULL) {
1553 void *p;
1554 if ((p = GetProcAddress(DLLHANDLE, "WSAWaitForMultipleEvents")) == NULL) {
1555 FATAL("cannot find entry WSAWaitForMultipleEvents (%d)\n", GetLastError());
1556 abort();
1558 fp = p;
1560 return (*fp)(a0, a1, a2, a3, a4);
1563 int WINAPI
1564 WSCDeinstallProvider(LPGUID a0, LPINT a1)
1566 static int (WINAPI *fp)(LPGUID a0, LPINT a1);
1568 #ifdef DEBUG_STUB
1569 idnLogPrintf(idn_log_level_trace, "stub WSCDeinstallProvider() called\n");
1570 #endif
1571 if (fp == NULL) {
1572 void *p;
1573 if ((p = GetProcAddress(DLLHANDLE, "WSCDeinstallProvider")) == NULL) {
1574 FATAL("cannot find entry WSCDeinstallProvider (%d)\n", GetLastError());
1575 abort();
1577 fp = p;
1579 return (*fp)(a0, a1);
1582 int WINAPI
1583 WSCEnableNSProvider(LPGUID a0, BOOL a1)
1585 static int (WINAPI *fp)(LPGUID a0, BOOL a1);
1587 #ifdef DEBUG_STUB
1588 idnLogPrintf(idn_log_level_trace, "stub WSCEnableNSProvider() called\n");
1589 #endif
1590 if (fp == NULL) {
1591 void *p;
1592 if ((p = GetProcAddress(DLLHANDLE, "WSCEnableNSProvider")) == NULL) {
1593 FATAL("cannot find entry WSCEnableNSProvider (%d)\n", GetLastError());
1594 abort();
1596 fp = p;
1598 return (*fp)(a0, a1);
1601 int WINAPI
1602 WSCEnumProtocols(LPINT a0, LPWSAPROTOCOL_INFOW a1, LPDWORD a2, LPINT a3)
1604 static int (WINAPI *fp)(LPINT a0, LPWSAPROTOCOL_INFOW a1, LPDWORD a2, LPINT a3);
1606 #ifdef DEBUG_STUB
1607 idnLogPrintf(idn_log_level_trace, "stub WSCEnumProtocols() called\n");
1608 #endif
1609 if (fp == NULL) {
1610 void *p;
1611 if ((p = GetProcAddress(DLLHANDLE, "WSCEnumProtocols")) == NULL) {
1612 FATAL("cannot find entry WSCEnumProtocols (%d)\n", GetLastError());
1613 abort();
1615 fp = p;
1617 return (*fp)(a0, a1, a2, a3);
1620 int WINAPI
1621 WSCGetProviderPath(LPGUID a0, LPWSTR a1, LPINT a2, LPINT a3)
1623 static int (WINAPI *fp)(LPGUID a0, LPWSTR a1, LPINT a2, LPINT a3);
1625 #ifdef DEBUG_STUB
1626 idnLogPrintf(idn_log_level_trace, "stub WSCGetProviderPath() called\n");
1627 #endif
1628 if (fp == NULL) {
1629 void *p;
1630 if ((p = GetProcAddress(DLLHANDLE, "WSCGetProviderPath")) == NULL) {
1631 FATAL("cannot find entry WSCGetProviderPath (%d)\n", GetLastError());
1632 abort();
1634 fp = p;
1636 return (*fp)(a0, a1, a2, a3);
1639 int WINAPI
1640 WSCInstallNameSpace(LPWSTR a0, LPWSTR a1, DWORD a2, DWORD a3, LPGUID a4)
1642 static int (WINAPI *fp)(LPWSTR a0, LPWSTR a1, DWORD a2, DWORD a3, LPGUID a4);
1644 #ifdef DEBUG_STUB
1645 idnLogPrintf(idn_log_level_trace, "stub WSCInstallNameSpace() called\n");
1646 #endif
1647 if (fp == NULL) {
1648 void *p;
1649 if ((p = GetProcAddress(DLLHANDLE, "WSCInstallNameSpace")) == NULL) {
1650 FATAL("cannot find entry WSCInstallNameSpace (%d)\n", GetLastError());
1651 abort();
1653 fp = p;
1655 return (*fp)(a0, a1, a2, a3, a4);
1658 int WINAPI
1659 WSCInstallProvider(const LPGUID a0, const LPWSTR a1, const LPWSAPROTOCOL_INFOW a2, DWORD a3, LPINT a4)
1661 static int (WINAPI *fp)(const LPGUID a0, const LPWSTR a1, const LPWSAPROTOCOL_INFOW a2, DWORD a3, LPINT a4);
1663 #ifdef DEBUG_STUB
1664 idnLogPrintf(idn_log_level_trace, "stub WSCInstallProvider() called\n");
1665 #endif
1666 if (fp == NULL) {
1667 void *p;
1668 if ((p = GetProcAddress(DLLHANDLE, "WSCInstallProvider")) == NULL) {
1669 FATAL("cannot find entry WSCInstallProvider (%d)\n", GetLastError());
1670 abort();
1672 fp = p;
1674 return (*fp)(a0, a1, a2, a3, a4);
1677 int WINAPI
1678 WSCUnInstallNameSpace(LPGUID a0)
1680 static int (WINAPI *fp)(LPGUID a0);
1682 #ifdef DEBUG_STUB
1683 idnLogPrintf(idn_log_level_trace, "stub WSCUnInstallNameSpace() called\n");
1684 #endif
1685 if (fp == NULL) {
1686 void *p;
1687 if ((p = GetProcAddress(DLLHANDLE, "WSCUnInstallNameSpace")) == NULL) {
1688 FATAL("cannot find entry WSCUnInstallNameSpace (%d)\n", GetLastError());
1689 abort();
1691 fp = p;
1693 return (*fp)(a0);
1696 int PASCAL
1697 WSAAsyncSelect(SOCKET a0, HWND a1, u_int a2, long a3)
1699 static int (PASCAL *fp)(SOCKET a0, HWND a1, u_int a2, long a3);
1701 #ifdef DEBUG_STUB
1702 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncSelect() called\n");
1703 #endif
1704 if (fp == NULL) {
1705 void *p;
1706 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncSelect")) == NULL) {
1707 FATAL("cannot find entry WSAAsyncSelect (%d)\n", GetLastError());
1708 abort();
1710 fp = p;
1712 return (*fp)(a0, a1, a2, a3);
1715 HANDLE PASCAL
1716 _org_WSAAsyncGetHostByAddr(HWND a0, u_int a1, const char* a2, int a3, int a4, char* a5, int a6)
1718 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, const char* a2, int a3, int a4, char* a5, int a6);
1720 #ifdef DEBUG_STUB
1721 idnLogPrintf(idn_log_level_trace, "stub _org_WSAAsyncGetHostByAddr() called\n");
1722 #endif
1723 if (fp == NULL) {
1724 void *p;
1725 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetHostByAddr")) == NULL) {
1726 FATAL("cannot find entry WSAAsyncGetHostByAddr (%d)\n", GetLastError());
1727 abort();
1729 fp = p;
1731 return (*fp)(a0, a1, a2, a3, a4, a5, a6);
1734 HANDLE PASCAL
1735 _org_WSAAsyncGetHostByName(HWND a0, u_int a1, const char* a2, char* a3, int a4)
1737 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, const char* a2, char* a3, int a4);
1739 #ifdef DEBUG_STUB
1740 idnLogPrintf(idn_log_level_trace, "stub _org_WSAAsyncGetHostByName() called\n");
1741 #endif
1742 if (fp == NULL) {
1743 void *p;
1744 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetHostByName")) == NULL) {
1745 FATAL("cannot find entry WSAAsyncGetHostByName (%d)\n", GetLastError());
1746 abort();
1748 fp = p;
1750 return (*fp)(a0, a1, a2, a3, a4);
1753 HANDLE PASCAL
1754 WSAAsyncGetProtoByNumber(HWND a0, u_int a1, int a2, char* a3, int a4)
1756 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, int a2, char* a3, int a4);
1758 #ifdef DEBUG_STUB
1759 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncGetProtoByNumber() called\n");
1760 #endif
1761 if (fp == NULL) {
1762 void *p;
1763 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetProtoByNumber")) == NULL) {
1764 FATAL("cannot find entry WSAAsyncGetProtoByNumber (%d)\n", GetLastError());
1765 abort();
1767 fp = p;
1769 return (*fp)(a0, a1, a2, a3, a4);
1772 HANDLE PASCAL
1773 WSAAsyncGetProtoByName(HWND a0, u_int a1, const char* a2, char* a3, int a4)
1775 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, const char* a2, char* a3, int a4);
1777 #ifdef DEBUG_STUB
1778 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncGetProtoByName() called\n");
1779 #endif
1780 if (fp == NULL) {
1781 void *p;
1782 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetProtoByName")) == NULL) {
1783 FATAL("cannot find entry WSAAsyncGetProtoByName (%d)\n", GetLastError());
1784 abort();
1786 fp = p;
1788 return (*fp)(a0, a1, a2, a3, a4);
1791 HANDLE PASCAL
1792 WSAAsyncGetServByPort(HWND a0, u_int a1, int a2, const char* a3, char* a4, int a5)
1794 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, int a2, const char* a3, char* a4, int a5);
1796 #ifdef DEBUG_STUB
1797 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncGetServByPort() called\n");
1798 #endif
1799 if (fp == NULL) {
1800 void *p;
1801 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetServByPort")) == NULL) {
1802 FATAL("cannot find entry WSAAsyncGetServByPort (%d)\n", GetLastError());
1803 abort();
1805 fp = p;
1807 return (*fp)(a0, a1, a2, a3, a4, a5);
1810 HANDLE PASCAL
1811 WSAAsyncGetServByName(HWND a0, u_int a1, const char* a2, const char* a3, char* a4, int a5)
1813 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, const char* a2, const char* a3, char* a4, int a5);
1815 #ifdef DEBUG_STUB
1816 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncGetServByName() called\n");
1817 #endif
1818 if (fp == NULL) {
1819 void *p;
1820 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetServByName")) == NULL) {
1821 FATAL("cannot find entry WSAAsyncGetServByName (%d)\n", GetLastError());
1822 abort();
1824 fp = p;
1826 return (*fp)(a0, a1, a2, a3, a4, a5);
1829 int PASCAL
1830 WSACancelAsyncRequest(HANDLE a0)
1832 static int (PASCAL *fp)(HANDLE a0);
1834 #ifdef DEBUG_STUB
1835 idnLogPrintf(idn_log_level_trace, "stub WSACancelAsyncRequest() called\n");
1836 #endif
1837 if (fp == NULL) {
1838 void *p;
1839 if ((p = GetProcAddress(DLLHANDLE, "WSACancelAsyncRequest")) == NULL) {
1840 FATAL("cannot find entry WSACancelAsyncRequest (%d)\n", GetLastError());
1841 abort();
1843 fp = p;
1845 return (*fp)(a0);
1848 FARPROC PASCAL
1849 WSASetBlockingHook(FARPROC a0)
1851 static FARPROC (PASCAL *fp)(FARPROC a0);
1853 #ifdef DEBUG_STUB
1854 idnLogPrintf(idn_log_level_trace, "stub WSASetBlockingHook() called\n");
1855 #endif
1856 if (fp == NULL) {
1857 void *p;
1858 if ((p = GetProcAddress(DLLHANDLE, "WSASetBlockingHook")) == NULL) {
1859 FATAL("cannot find entry WSASetBlockingHook (%d)\n", GetLastError());
1860 abort();
1862 fp = p;
1864 return (*fp)(a0);
1867 int PASCAL
1868 WSAUnhookBlockingHook(void)
1870 static int (PASCAL *fp)(void);
1872 #ifdef DEBUG_STUB
1873 idnLogPrintf(idn_log_level_trace, "stub WSAUnhookBlockingHook() called\n");
1874 #endif
1875 if (fp == NULL) {
1876 void *p;
1877 if ((p = GetProcAddress(DLLHANDLE, "WSAUnhookBlockingHook")) == NULL) {
1878 FATAL("cannot find entry WSAUnhookBlockingHook (%d)\n", GetLastError());
1879 abort();
1881 fp = p;
1883 return (*fp)();
1886 int PASCAL
1887 WSAGetLastError(void)
1889 static int (PASCAL *fp)(void);
1891 #ifdef DEBUG_STUB
1892 idnLogPrintf(idn_log_level_trace, "stub WSAGetLastError() called\n");
1893 #endif
1894 if (fp == NULL) {
1895 void *p;
1896 if ((p = GetProcAddress(DLLHANDLE, "WSAGetLastError")) == NULL) {
1897 FATAL("cannot find entry WSAGetLastError (%d)\n", GetLastError());
1898 abort();
1900 fp = p;
1902 return (*fp)();
1905 void PASCAL
1906 WSASetLastError(int a0)
1908 static void (PASCAL *fp)(int a0);
1910 #ifdef DEBUG_STUB
1911 idnLogPrintf(idn_log_level_trace, "stub WSASetLastError() called\n");
1912 #endif
1913 if (fp == NULL) {
1914 void *p;
1915 if ((p = GetProcAddress(DLLHANDLE, "WSASetLastError")) == NULL) {
1916 FATAL("cannot find entry WSASetLastError (%d)\n", GetLastError());
1917 abort();
1919 fp = p;
1921 (*fp)(a0);
1924 int PASCAL
1925 WSACancelBlockingCall(void)
1927 static int (PASCAL *fp)(void);
1929 #ifdef DEBUG_STUB
1930 idnLogPrintf(idn_log_level_trace, "stub WSACancelBlockingCall() called\n");
1931 #endif
1932 if (fp == NULL) {
1933 void *p;
1934 if ((p = GetProcAddress(DLLHANDLE, "WSACancelBlockingCall")) == NULL) {
1935 FATAL("cannot find entry WSACancelBlockingCall (%d)\n", GetLastError());
1936 abort();
1938 fp = p;
1940 return (*fp)();
1943 BOOL PASCAL
1944 WSAIsBlocking(void)
1946 static BOOL (PASCAL *fp)(void);
1948 #ifdef DEBUG_STUB
1949 idnLogPrintf(idn_log_level_trace, "stub WSAIsBlocking() called\n");
1950 #endif
1951 if (fp == NULL) {
1952 void *p;
1953 if ((p = GetProcAddress(DLLHANDLE, "WSAIsBlocking")) == NULL) {
1954 FATAL("cannot find entry WSAIsBlocking (%d)\n", GetLastError());
1955 abort();
1957 fp = p;
1959 return (*fp)();
1962 int PASCAL
1963 WSAStartup(WORD a0, LPWSADATA a1)
1965 static int (PASCAL *fp)(WORD a0, LPWSADATA a1);
1967 #ifdef DEBUG_STUB
1968 idnLogPrintf(idn_log_level_trace, "stub WSAStartup() called\n");
1969 #endif
1970 if (fp == NULL) {
1971 void *p;
1972 if ((p = GetProcAddress(DLLHANDLE, "WSAStartup")) == NULL) {
1973 FATAL("cannot find entry WSAStartup (%d)\n", GetLastError());
1974 abort();
1976 fp = p;
1978 return (*fp)(a0, a1);
1981 int PASCAL
1982 WSACleanup(void)
1984 static int (PASCAL *fp)(void);
1986 #ifdef DEBUG_STUB
1987 idnLogPrintf(idn_log_level_trace, "stub WSACleanup() called\n");
1988 #endif
1989 if (fp == NULL) {
1990 void *p;
1991 if ((p = GetProcAddress(DLLHANDLE, "WSACleanup")) == NULL) {
1992 FATAL("cannot find entry WSACleanup (%d)\n", GetLastError());
1993 abort();
1995 fp = p;
1997 return (*fp)();
2000 int PASCAL
2001 __WSAFDIsSet(SOCKET a0, fd_set* a1)
2003 static int (PASCAL *fp)(SOCKET a0, fd_set* a1);
2005 #ifdef DEBUG_STUB
2006 idnLogPrintf(idn_log_level_trace, "stub __WSAFDIsSet() called\n");
2007 #endif
2008 if (fp == NULL) {
2009 void *p;
2010 if ((p = GetProcAddress(DLLHANDLE, "__WSAFDIsSet")) == NULL) {
2011 FATAL("cannot find entry __WSAFDIsSet (%d)\n", GetLastError());
2012 abort();
2014 fp = p;
2016 return (*fp)(a0, a1);
2019 int PASCAL
2020 WEP(void)
2022 static int (PASCAL *fp)(void);
2024 #ifdef DEBUG_STUB
2025 idnLogPrintf(idn_log_level_trace, "stub WEP() called\n");
2026 #endif
2027 if (fp == NULL) {
2028 void *p;
2029 if ((p = GetProcAddress(DLLHANDLE, "WEP")) == NULL) {
2030 FATAL("cannot find entry WEP (%d)\n", GetLastError());
2031 abort();
2033 fp = p;
2035 return (*fp)();
2038 int PASCAL
2039 WSCWriteNameSpaceOrder(int a0, int a1)
2041 static int (PASCAL *fp)(int a0, int a1);
2043 #ifdef DEBUG_STUB
2044 idnLogPrintf(idn_log_level_trace, "stub WSCWriteNameSpaceOrder() called\n");
2045 #endif
2046 if (fp == NULL) {
2047 void *p;
2048 if ((p = GetProcAddress(DLLHANDLE, "WSCWriteNameSpaceOrder")) == NULL) {
2049 FATAL("cannot find entry WSCWriteNameSpaceOrder (%d)\n", GetLastError());
2050 abort();
2052 fp = p;
2054 return (*fp)(a0, a1);
2057 int PASCAL
2058 WSCWriteProviderOrder(LPDWORD a0, DWORD a1)
2060 static int (PASCAL *fp)(LPDWORD a0, DWORD a1);
2062 #ifdef DEBUG_STUB
2063 idnLogPrintf(idn_log_level_trace, "stub WSCWriteProviderOrder() called\n");
2064 #endif
2065 if (fp == NULL) {
2066 void *p;
2067 if ((p = GetProcAddress(DLLHANDLE, "WSCWriteProviderOrder")) == NULL) {
2068 FATAL("cannot find entry WSCWriteProviderOrder (%d)\n", GetLastError());
2069 abort();
2071 fp = p;
2073 return (*fp)(a0, a1);
2076 int PASCAL
2077 WSANSPIoctl(HANDLE a0, DWORD a1, LPVOID a2, DWORD a3, LPVOID a4, DWORD a5, LPDWORD a6, LPVOID a7)
2079 static int (PASCAL *fp)(HANDLE a0, DWORD a1, LPVOID a2, DWORD a3, LPVOID a4, DWORD a5, LPDWORD a6, LPVOID a7);
2081 #ifdef DEBUG_STUB
2082 idnLogPrintf(idn_log_level_trace, "stub WSANSPIoctl() called\n");
2083 #endif
2084 if (fp == NULL) {
2085 void *p;
2086 if ((p = GetProcAddress(DLLHANDLE, "WSANSPIoctl")) == NULL) {
2087 FATAL("cannot find entry WSANSPIoctl (%d)\n", GetLastError());
2088 abort();
2090 fp = p;
2092 return (*fp)(a0, a1, a2, a3, a4, a5, a6, a7);
2095 int PASCAL
2096 WSCUpdateProvider(LPGUID a0, const WCHAR FAR* a1, const LPVOID a2, DWORD a3, LPINT a4)
2098 static int (PASCAL *fp)(LPGUID a0, const WCHAR FAR* a1, const LPVOID a2, DWORD a3, LPINT a4);
2100 #ifdef DEBUG_STUB
2101 idnLogPrintf(idn_log_level_trace, "stub WSCUpdateProvider() called\n");
2102 #endif
2103 if (fp == NULL) {
2104 void *p;
2105 if ((p = GetProcAddress(DLLHANDLE, "WSCUpdateProvider")) == NULL) {
2106 FATAL("cannot find entry WSCUpdateProvider (%d)\n", GetLastError());
2107 abort();
2109 fp = p;
2111 return (*fp)(a0, a1, a2, a3, a4);
2114 int PASCAL
2115 _org_getaddrinfo(const char* a0, const char* a1, LPVOID a2, LPVOID a3)
2117 static int (PASCAL *fp)(const char* a0, const char* a1, LPVOID a2, LPVOID a3);
2119 #ifdef DEBUG_STUB
2120 idnLogPrintf(idn_log_level_trace, "stub _org_getaddrinfo() called\n");
2121 #endif
2122 if (fp == NULL) {
2123 void *p;
2124 if ((p = GetProcAddress(DLLHANDLE, "getaddrinfo")) == NULL) {
2125 FATAL("cannot find entry getaddrinfo (%d)\n", GetLastError());
2126 abort();
2128 fp = p;
2130 return (*fp)(a0, a1, a2, a3);
2133 void PASCAL
2134 _org_freeaddrinfo(LPVOID a0)
2136 static void (PASCAL *fp)(LPVOID a0);
2138 #ifdef DEBUG_STUB
2139 idnLogPrintf(idn_log_level_trace, "stub _org_freeaddrinfo() called\n");
2140 #endif
2141 if (fp == NULL) {
2142 void *p;
2143 if ((p = GetProcAddress(DLLHANDLE, "freeaddrinfo")) == NULL) {
2144 FATAL("cannot find entry freeaddrinfo (%d)\n", GetLastError());
2145 abort();
2147 fp = p;
2149 (*fp)(a0);
2152 int PASCAL
2153 _org_getnameinfo(LPVOID a0, DWORD a1, char* a2, DWORD a3, char* a4, DWORD a5, int a6)
2155 static int (PASCAL *fp)(LPVOID a0, DWORD a1, char* a2, DWORD a3, char* a4, DWORD a5, int a6);
2157 #ifdef DEBUG_STUB
2158 idnLogPrintf(idn_log_level_trace, "stub _org_getnameinfo() called\n");
2159 #endif
2160 if (fp == NULL) {
2161 void *p;
2162 if ((p = GetProcAddress(DLLHANDLE, "getnameinfo")) == NULL) {
2163 FATAL("cannot find entry getnameinfo (%d)\n", GetLastError());
2164 abort();
2166 fp = p;
2168 return (*fp)(a0, a1, a2, a3, a4, a5, a6);