etc/services - sync with NetBSD-8
[minix.git] / external / bsd / bind / dist / contrib / idn / idnkit-1.0-src / wsock / wsock11 / dllstub.c
blobca75110edb3e8fe83757ca7d3095d8fd3df5035f
1 /* $NetBSD: dllstub.c,v 1.4 2014/12/10 04:37:56 christos Exp $ */
3 /* Id: dllstub.c,v 1.1 2003/06/04 00:27:45 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 unsigned long PASCAL
177 inet_addr(const char* a0)
179 static unsigned long (PASCAL *fp)(const char* a0);
181 #ifdef DEBUG_STUB
182 idnLogPrintf(idn_log_level_trace, "stub inet_addr() called\n");
183 #endif
184 if (fp == NULL) {
185 void *p;
186 if ((p = GetProcAddress(DLLHANDLE, "inet_addr")) == NULL) {
187 FATAL("cannot find entry inet_addr (%d)\n", GetLastError());
188 abort();
190 fp = p;
192 return (*fp)(a0);
195 char * PASCAL
196 inet_ntoa(struct in_addr a0)
198 static char * (PASCAL *fp)(struct in_addr a0);
200 #ifdef DEBUG_STUB
201 idnLogPrintf(idn_log_level_trace, "stub inet_ntoa() called\n");
202 #endif
203 if (fp == NULL) {
204 void *p;
205 if ((p = GetProcAddress(DLLHANDLE, "inet_ntoa")) == NULL) {
206 FATAL("cannot find entry inet_ntoa (%d)\n", GetLastError());
207 abort();
209 fp = p;
211 return (*fp)(a0);
214 int PASCAL
215 ioctlsocket(SOCKET a0, long a1, u_long * a2)
217 static int (PASCAL *fp)(SOCKET a0, long a1, u_long * a2);
219 #ifdef DEBUG_STUB
220 idnLogPrintf(idn_log_level_trace, "stub ioctlsocket() called\n");
221 #endif
222 if (fp == NULL) {
223 void *p;
224 if ((p = GetProcAddress(DLLHANDLE, "ioctlsocket")) == NULL) {
225 FATAL("cannot find entry ioctlsocket (%d)\n", GetLastError());
226 abort();
228 fp = p;
230 return (*fp)(a0, a1, a2);
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 MigrateWinsockConfiguration(int a0, int a1, int a2)
445 static int (PASCAL *fp)(int a0, int a1, int a2);
447 #ifdef DEBUG_STUB
448 idnLogPrintf(idn_log_level_trace, "stub MigrateWinsockConfiguration() called\n");
449 #endif
450 if (fp == NULL) {
451 void *p;
452 if ((p = GetProcAddress(DLLHANDLE, "MigrateWinsockConfiguration")) == NULL) {
453 FATAL("cannot find entry MigrateWinsockConfiguration (%d)\n", GetLastError());
454 abort();
456 fp = p;
458 return (*fp)(a0, a1, a2);
461 struct hostent * PASCAL
462 _org_gethostbyaddr(const char* a0, int a1, int a2)
464 static struct hostent * (PASCAL *fp)(const char* a0, int a1, int a2);
466 #ifdef DEBUG_STUB
467 idnLogPrintf(idn_log_level_trace, "stub _org_gethostbyaddr() called\n");
468 #endif
469 if (fp == NULL) {
470 void *p;
471 if ((p = GetProcAddress(DLLHANDLE, "gethostbyaddr")) == NULL) {
472 FATAL("cannot find entry gethostbyaddr (%d)\n", GetLastError());
473 abort();
475 fp = p;
477 return (*fp)(a0, a1, a2);
480 struct hostent * PASCAL
481 _org_gethostbyname(const char* a0)
483 static struct hostent * (PASCAL *fp)(const char* a0);
485 #ifdef DEBUG_STUB
486 idnLogPrintf(idn_log_level_trace, "stub _org_gethostbyname() called\n");
487 #endif
488 if (fp == NULL) {
489 void *p;
490 if ((p = GetProcAddress(DLLHANDLE, "gethostbyname")) == NULL) {
491 FATAL("cannot find entry gethostbyname (%d)\n", GetLastError());
492 abort();
494 fp = p;
496 return (*fp)(a0);
499 struct protoent * PASCAL
500 getprotobyname(const char* a0)
502 static struct protoent * (PASCAL *fp)(const char* a0);
504 #ifdef DEBUG_STUB
505 idnLogPrintf(idn_log_level_trace, "stub getprotobyname() called\n");
506 #endif
507 if (fp == NULL) {
508 void *p;
509 if ((p = GetProcAddress(DLLHANDLE, "getprotobyname")) == NULL) {
510 FATAL("cannot find entry getprotobyname (%d)\n", GetLastError());
511 abort();
513 fp = p;
515 return (*fp)(a0);
518 struct protoent * PASCAL
519 getprotobynumber(int a0)
521 static struct protoent * (PASCAL *fp)(int a0);
523 #ifdef DEBUG_STUB
524 idnLogPrintf(idn_log_level_trace, "stub getprotobynumber() called\n");
525 #endif
526 if (fp == NULL) {
527 void *p;
528 if ((p = GetProcAddress(DLLHANDLE, "getprotobynumber")) == NULL) {
529 FATAL("cannot find entry getprotobynumber (%d)\n", GetLastError());
530 abort();
532 fp = p;
534 return (*fp)(a0);
537 struct servent * PASCAL
538 getservbyname(const char* a0, const char* a1)
540 static struct servent * (PASCAL *fp)(const char* a0, const char* a1);
542 #ifdef DEBUG_STUB
543 idnLogPrintf(idn_log_level_trace, "stub getservbyname() called\n");
544 #endif
545 if (fp == NULL) {
546 void *p;
547 if ((p = GetProcAddress(DLLHANDLE, "getservbyname")) == NULL) {
548 FATAL("cannot find entry getservbyname (%d)\n", GetLastError());
549 abort();
551 fp = p;
553 return (*fp)(a0, a1);
556 struct servent * PASCAL
557 getservbyport(int a0, const char* a1)
559 static struct servent * (PASCAL *fp)(int a0, const char* a1);
561 #ifdef DEBUG_STUB
562 idnLogPrintf(idn_log_level_trace, "stub getservbyport() called\n");
563 #endif
564 if (fp == NULL) {
565 void *p;
566 if ((p = GetProcAddress(DLLHANDLE, "getservbyport")) == NULL) {
567 FATAL("cannot find entry getservbyport (%d)\n", GetLastError());
568 abort();
570 fp = p;
572 return (*fp)(a0, a1);
575 int PASCAL
576 _org_gethostname(char* a0, int a1)
578 static int (PASCAL *fp)(char* a0, int a1);
580 #ifdef DEBUG_STUB
581 idnLogPrintf(idn_log_level_trace, "stub _org_gethostname() called\n");
582 #endif
583 if (fp == NULL) {
584 void *p;
585 if ((p = GetProcAddress(DLLHANDLE, "gethostname")) == NULL) {
586 FATAL("cannot find entry gethostname (%d)\n", GetLastError());
587 abort();
589 fp = p;
591 return (*fp)(a0, a1);
594 int PASCAL
595 WSAAsyncSelect(SOCKET a0, HWND a1, u_int a2, long a3)
597 static int (PASCAL *fp)(SOCKET a0, HWND a1, u_int a2, long a3);
599 #ifdef DEBUG_STUB
600 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncSelect() called\n");
601 #endif
602 if (fp == NULL) {
603 void *p;
604 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncSelect")) == NULL) {
605 FATAL("cannot find entry WSAAsyncSelect (%d)\n", GetLastError());
606 abort();
608 fp = p;
610 return (*fp)(a0, a1, a2, a3);
613 HANDLE PASCAL
614 _org_WSAAsyncGetHostByAddr(HWND a0, u_int a1, const char* a2, int a3, int a4, char* a5, int a6)
616 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, const char* a2, int a3, int a4, char* a5, int a6);
618 #ifdef DEBUG_STUB
619 idnLogPrintf(idn_log_level_trace, "stub _org_WSAAsyncGetHostByAddr() called\n");
620 #endif
621 if (fp == NULL) {
622 void *p;
623 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetHostByAddr")) == NULL) {
624 FATAL("cannot find entry WSAAsyncGetHostByAddr (%d)\n", GetLastError());
625 abort();
627 fp = p;
629 return (*fp)(a0, a1, a2, a3, a4, a5, a6);
632 HANDLE PASCAL
633 _org_WSAAsyncGetHostByName(HWND a0, u_int a1, const char* a2, char* a3, int a4)
635 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, const char* a2, char* a3, int a4);
637 #ifdef DEBUG_STUB
638 idnLogPrintf(idn_log_level_trace, "stub _org_WSAAsyncGetHostByName() called\n");
639 #endif
640 if (fp == NULL) {
641 void *p;
642 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetHostByName")) == NULL) {
643 FATAL("cannot find entry WSAAsyncGetHostByName (%d)\n", GetLastError());
644 abort();
646 fp = p;
648 return (*fp)(a0, a1, a2, a3, a4);
651 HANDLE PASCAL
652 WSAAsyncGetProtoByNumber(HWND a0, u_int a1, int a2, char* a3, int a4)
654 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, int a2, char* a3, int a4);
656 #ifdef DEBUG_STUB
657 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncGetProtoByNumber() called\n");
658 #endif
659 if (fp == NULL) {
660 void *p;
661 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetProtoByNumber")) == NULL) {
662 FATAL("cannot find entry WSAAsyncGetProtoByNumber (%d)\n", GetLastError());
663 abort();
665 fp = p;
667 return (*fp)(a0, a1, a2, a3, a4);
670 HANDLE PASCAL
671 WSAAsyncGetProtoByName(HWND a0, u_int a1, const char* a2, char* a3, int a4)
673 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, const char* a2, char* a3, int a4);
675 #ifdef DEBUG_STUB
676 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncGetProtoByName() called\n");
677 #endif
678 if (fp == NULL) {
679 void *p;
680 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetProtoByName")) == NULL) {
681 FATAL("cannot find entry WSAAsyncGetProtoByName (%d)\n", GetLastError());
682 abort();
684 fp = p;
686 return (*fp)(a0, a1, a2, a3, a4);
689 HANDLE PASCAL
690 WSAAsyncGetServByPort(HWND a0, u_int a1, int a2, const char* a3, char* a4, int a5)
692 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, int a2, const char* a3, char* a4, int a5);
694 #ifdef DEBUG_STUB
695 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncGetServByPort() called\n");
696 #endif
697 if (fp == NULL) {
698 void *p;
699 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetServByPort")) == NULL) {
700 FATAL("cannot find entry WSAAsyncGetServByPort (%d)\n", GetLastError());
701 abort();
703 fp = p;
705 return (*fp)(a0, a1, a2, a3, a4, a5);
708 HANDLE PASCAL
709 WSAAsyncGetServByName(HWND a0, u_int a1, const char* a2, const char* a3, char* a4, int a5)
711 static HANDLE (PASCAL *fp)(HWND a0, u_int a1, const char* a2, const char* a3, char* a4, int a5);
713 #ifdef DEBUG_STUB
714 idnLogPrintf(idn_log_level_trace, "stub WSAAsyncGetServByName() called\n");
715 #endif
716 if (fp == NULL) {
717 void *p;
718 if ((p = GetProcAddress(DLLHANDLE, "WSAAsyncGetServByName")) == NULL) {
719 FATAL("cannot find entry WSAAsyncGetServByName (%d)\n", GetLastError());
720 abort();
722 fp = p;
724 return (*fp)(a0, a1, a2, a3, a4, a5);
727 int PASCAL
728 WSACancelAsyncRequest(HANDLE a0)
730 static int (PASCAL *fp)(HANDLE a0);
732 #ifdef DEBUG_STUB
733 idnLogPrintf(idn_log_level_trace, "stub WSACancelAsyncRequest() called\n");
734 #endif
735 if (fp == NULL) {
736 void *p;
737 if ((p = GetProcAddress(DLLHANDLE, "WSACancelAsyncRequest")) == NULL) {
738 FATAL("cannot find entry WSACancelAsyncRequest (%d)\n", GetLastError());
739 abort();
741 fp = p;
743 return (*fp)(a0);
746 FARPROC PASCAL
747 WSASetBlockingHook(FARPROC a0)
749 static FARPROC (PASCAL *fp)(FARPROC a0);
751 #ifdef DEBUG_STUB
752 idnLogPrintf(idn_log_level_trace, "stub WSASetBlockingHook() called\n");
753 #endif
754 if (fp == NULL) {
755 void *p;
756 if ((p = GetProcAddress(DLLHANDLE, "WSASetBlockingHook")) == NULL) {
757 FATAL("cannot find entry WSASetBlockingHook (%d)\n", GetLastError());
758 abort();
760 fp = p;
762 return (*fp)(a0);
765 int PASCAL
766 WSAUnhookBlockingHook(void)
768 static int (PASCAL *fp)(void);
770 #ifdef DEBUG_STUB
771 idnLogPrintf(idn_log_level_trace, "stub WSAUnhookBlockingHook() called\n");
772 #endif
773 if (fp == NULL) {
774 void *p;
775 if ((p = GetProcAddress(DLLHANDLE, "WSAUnhookBlockingHook")) == NULL) {
776 FATAL("cannot find entry WSAUnhookBlockingHook (%d)\n", GetLastError());
777 abort();
779 fp = p;
781 return (*fp)();
784 int PASCAL
785 WSAGetLastError(void)
787 static int (PASCAL *fp)(void);
789 #ifdef DEBUG_STUB
790 idnLogPrintf(idn_log_level_trace, "stub WSAGetLastError() called\n");
791 #endif
792 if (fp == NULL) {
793 void *p;
794 if ((p = GetProcAddress(DLLHANDLE, "WSAGetLastError")) == NULL) {
795 FATAL("cannot find entry WSAGetLastError (%d)\n", GetLastError());
796 abort();
798 fp = p;
800 return (*fp)();
803 void PASCAL
804 WSASetLastError(int a0)
806 static void (PASCAL *fp)(int a0);
808 #ifdef DEBUG_STUB
809 idnLogPrintf(idn_log_level_trace, "stub WSASetLastError() called\n");
810 #endif
811 if (fp == NULL) {
812 void *p;
813 if ((p = GetProcAddress(DLLHANDLE, "WSASetLastError")) == NULL) {
814 FATAL("cannot find entry WSASetLastError (%d)\n", GetLastError());
815 abort();
817 fp = p;
819 (*fp)(a0);
822 int PASCAL
823 WSACancelBlockingCall(void)
825 static int (PASCAL *fp)(void);
827 #ifdef DEBUG_STUB
828 idnLogPrintf(idn_log_level_trace, "stub WSACancelBlockingCall() called\n");
829 #endif
830 if (fp == NULL) {
831 void *p;
832 if ((p = GetProcAddress(DLLHANDLE, "WSACancelBlockingCall")) == NULL) {
833 FATAL("cannot find entry WSACancelBlockingCall (%d)\n", GetLastError());
834 abort();
836 fp = p;
838 return (*fp)();
841 BOOL PASCAL
842 WSAIsBlocking(void)
844 static BOOL (PASCAL *fp)(void);
846 #ifdef DEBUG_STUB
847 idnLogPrintf(idn_log_level_trace, "stub WSAIsBlocking() called\n");
848 #endif
849 if (fp == NULL) {
850 void *p;
851 if ((p = GetProcAddress(DLLHANDLE, "WSAIsBlocking")) == NULL) {
852 FATAL("cannot find entry WSAIsBlocking (%d)\n", GetLastError());
853 abort();
855 fp = p;
857 return (*fp)();
860 int PASCAL
861 WSAStartup(WORD a0, LPWSADATA a1)
863 static int (PASCAL *fp)(WORD a0, LPWSADATA a1);
865 #ifdef DEBUG_STUB
866 idnLogPrintf(idn_log_level_trace, "stub WSAStartup() called\n");
867 #endif
868 if (fp == NULL) {
869 void *p;
870 if ((p = GetProcAddress(DLLHANDLE, "WSAStartup")) == NULL) {
871 FATAL("cannot find entry WSAStartup (%d)\n", GetLastError());
872 abort();
874 fp = p;
876 return (*fp)(a0, a1);
879 int PASCAL
880 WSACleanup(void)
882 static int (PASCAL *fp)(void);
884 #ifdef DEBUG_STUB
885 idnLogPrintf(idn_log_level_trace, "stub WSACleanup() called\n");
886 #endif
887 if (fp == NULL) {
888 void *p;
889 if ((p = GetProcAddress(DLLHANDLE, "WSACleanup")) == NULL) {
890 FATAL("cannot find entry WSACleanup (%d)\n", GetLastError());
891 abort();
893 fp = p;
895 return (*fp)();
898 int PASCAL
899 __WSAFDIsSet(SOCKET a0, fd_set* a1)
901 static int (PASCAL *fp)(SOCKET a0, fd_set* a1);
903 #ifdef DEBUG_STUB
904 idnLogPrintf(idn_log_level_trace, "stub __WSAFDIsSet() called\n");
905 #endif
906 if (fp == NULL) {
907 void *p;
908 if ((p = GetProcAddress(DLLHANDLE, "__WSAFDIsSet")) == NULL) {
909 FATAL("cannot find entry __WSAFDIsSet (%d)\n", GetLastError());
910 abort();
912 fp = p;
914 return (*fp)(a0, a1);
917 int PASCAL
918 WEP(void)
920 static int (PASCAL *fp)(void);
922 #ifdef DEBUG_STUB
923 idnLogPrintf(idn_log_level_trace, "stub WEP() called\n");
924 #endif
925 if (fp == NULL) {
926 void *p;
927 if ((p = GetProcAddress(DLLHANDLE, "WEP")) == NULL) {
928 FATAL("cannot find entry WEP (%d)\n", GetLastError());
929 abort();
931 fp = p;
933 return (*fp)();
936 int PASCAL
937 WSApSetPostRoutine(int a0)
939 static int (PASCAL *fp)(int a0);
941 #ifdef DEBUG_STUB
942 idnLogPrintf(idn_log_level_trace, "stub WSApSetPostRoutine() called\n");
943 #endif
944 if (fp == NULL) {
945 void *p;
946 if ((p = GetProcAddress(DLLHANDLE, "WSApSetPostRoutine")) == NULL) {
947 FATAL("cannot find entry WSApSetPostRoutine (%d)\n", GetLastError());
948 abort();
950 fp = p;
952 return (*fp)(a0);
955 int PASCAL
956 WsControl(int a0, int a1, int a2, int a3, int a4, int a5)
958 static int (PASCAL *fp)(int a0, int a1, int a2, int a3, int a4, int a5);
960 #ifdef DEBUG_STUB
961 idnLogPrintf(idn_log_level_trace, "stub WsControl() called\n");
962 #endif
963 if (fp == NULL) {
964 void *p;
965 if ((p = GetProcAddress(DLLHANDLE, "WsControl")) == NULL) {
966 FATAL("cannot find entry WsControl (%d)\n", GetLastError());
967 abort();
969 fp = p;
971 return (*fp)(a0, a1, a2, a3, a4, a5);
974 int PASCAL
975 closesockinfo(int a0)
977 static int (PASCAL *fp)(int a0);
979 #ifdef DEBUG_STUB
980 idnLogPrintf(idn_log_level_trace, "stub closesockinfo() called\n");
981 #endif
982 if (fp == NULL) {
983 void *p;
984 if ((p = GetProcAddress(DLLHANDLE, "closesockinfo")) == NULL) {
985 FATAL("cannot find entry closesockinfo (%d)\n", GetLastError());
986 abort();
988 fp = p;
990 return (*fp)(a0);
993 int PASCAL
994 Arecv(int a0, int a1, int a2, int a3)
996 static int (PASCAL *fp)(int a0, int a1, int a2, int a3);
998 #ifdef DEBUG_STUB
999 idnLogPrintf(idn_log_level_trace, "stub Arecv() called\n");
1000 #endif
1001 if (fp == NULL) {
1002 void *p;
1003 if ((p = GetProcAddress(DLLHANDLE, "Arecv")) == NULL) {
1004 FATAL("cannot find entry Arecv (%d)\n", GetLastError());
1005 abort();
1007 fp = p;
1009 return (*fp)(a0, a1, a2, a3);
1012 int PASCAL
1013 Asend(int a0, int a1, int a2, int a3)
1015 static int (PASCAL *fp)(int a0, int a1, int a2, int a3);
1017 #ifdef DEBUG_STUB
1018 idnLogPrintf(idn_log_level_trace, "stub Asend() called\n");
1019 #endif
1020 if (fp == NULL) {
1021 void *p;
1022 if ((p = GetProcAddress(DLLHANDLE, "Asend")) == NULL) {
1023 FATAL("cannot find entry Asend (%d)\n", GetLastError());
1024 abort();
1026 fp = p;
1028 return (*fp)(a0, a1, a2, a3);
1031 int PASCAL
1032 WSHEnumProtocols(void)
1034 static int (PASCAL *fp)(void);
1036 #ifdef DEBUG_STUB
1037 idnLogPrintf(idn_log_level_trace, "stub WSHEnumProtocols() called\n");
1038 #endif
1039 if (fp == NULL) {
1040 void *p;
1041 if ((p = GetProcAddress(DLLHANDLE, "WSHEnumProtocols")) == NULL) {
1042 FATAL("cannot find entry WSHEnumProtocols (%d)\n", GetLastError());
1043 abort();
1045 fp = p;
1047 return (*fp)();
1050 int PASCAL
1051 inet_network(int a0)
1053 static int (PASCAL *fp)(int a0);
1055 #ifdef DEBUG_STUB
1056 idnLogPrintf(idn_log_level_trace, "stub inet_network() called\n");
1057 #endif
1058 if (fp == NULL) {
1059 void *p;
1060 if ((p = GetProcAddress(DLLHANDLE, "inet_network")) == NULL) {
1061 FATAL("cannot find entry inet_network (%d)\n", GetLastError());
1062 abort();
1064 fp = p;
1066 return (*fp)(a0);
1069 int PASCAL
1070 getnetbyname(int a0)
1072 static int (PASCAL *fp)(int a0);
1074 #ifdef DEBUG_STUB
1075 idnLogPrintf(idn_log_level_trace, "stub getnetbyname() called\n");
1076 #endif
1077 if (fp == NULL) {
1078 void *p;
1079 if ((p = GetProcAddress(DLLHANDLE, "getnetbyname")) == NULL) {
1080 FATAL("cannot find entry getnetbyname (%d)\n", GetLastError());
1081 abort();
1083 fp = p;
1085 return (*fp)(a0);
1088 int PASCAL
1089 rcmd(int a0, int a1, int a2, int a3, int a4, int a5)
1091 static int (PASCAL *fp)(int a0, int a1, int a2, int a3, int a4, int a5);
1093 #ifdef DEBUG_STUB
1094 idnLogPrintf(idn_log_level_trace, "stub rcmd() called\n");
1095 #endif
1096 if (fp == NULL) {
1097 void *p;
1098 if ((p = GetProcAddress(DLLHANDLE, "rcmd")) == NULL) {
1099 FATAL("cannot find entry rcmd (%d)\n", GetLastError());
1100 abort();
1102 fp = p;
1104 return (*fp)(a0, a1, a2, a3, a4, a5);
1107 int PASCAL
1108 rexec(int a0, int a1, int a2, int a3, int a4, int a5)
1110 static int (PASCAL *fp)(int a0, int a1, int a2, int a3, int a4, int a5);
1112 #ifdef DEBUG_STUB
1113 idnLogPrintf(idn_log_level_trace, "stub rexec() called\n");
1114 #endif
1115 if (fp == NULL) {
1116 void *p;
1117 if ((p = GetProcAddress(DLLHANDLE, "rexec")) == NULL) {
1118 FATAL("cannot find entry rexec (%d)\n", GetLastError());
1119 abort();
1121 fp = p;
1123 return (*fp)(a0, a1, a2, a3, a4, a5);
1126 int PASCAL
1127 rresvport(int a0)
1129 static int (PASCAL *fp)(int a0);
1131 #ifdef DEBUG_STUB
1132 idnLogPrintf(idn_log_level_trace, "stub rresvport() called\n");
1133 #endif
1134 if (fp == NULL) {
1135 void *p;
1136 if ((p = GetProcAddress(DLLHANDLE, "rresvport")) == NULL) {
1137 FATAL("cannot find entry rresvport (%d)\n", GetLastError());
1138 abort();
1140 fp = p;
1142 return (*fp)(a0);
1145 int PASCAL
1146 sethostname(int a0, int a1)
1148 static int (PASCAL *fp)(int a0, int a1);
1150 #ifdef DEBUG_STUB
1151 idnLogPrintf(idn_log_level_trace, "stub sethostname() called\n");
1152 #endif
1153 if (fp == NULL) {
1154 void *p;
1155 if ((p = GetProcAddress(DLLHANDLE, "sethostname")) == NULL) {
1156 FATAL("cannot find entry sethostname (%d)\n", GetLastError());
1157 abort();
1159 fp = p;
1161 return (*fp)(a0, a1);
1164 int PASCAL
1165 dn_expand(int a0, int a1, int a2, int a3, int a4)
1167 static int (PASCAL *fp)(int a0, int a1, int a2, int a3, int a4);
1169 #ifdef DEBUG_STUB
1170 idnLogPrintf(idn_log_level_trace, "stub dn_expand() called\n");
1171 #endif
1172 if (fp == NULL) {
1173 void *p;
1174 if ((p = GetProcAddress(DLLHANDLE, "dn_expand")) == NULL) {
1175 FATAL("cannot find entry dn_expand (%d)\n", GetLastError());
1176 abort();
1178 fp = p;
1180 return (*fp)(a0, a1, a2, a3, a4);
1183 int PASCAL
1184 WSARecvEx(SOCKET a0, char* a1, int a2, int* a3)
1186 static int (PASCAL *fp)(SOCKET a0, char* a1, int a2, int* a3);
1188 #ifdef DEBUG_STUB
1189 idnLogPrintf(idn_log_level_trace, "stub WSARecvEx() called\n");
1190 #endif
1191 if (fp == NULL) {
1192 void *p;
1193 if ((p = GetProcAddress(DLLHANDLE, "WSARecvEx")) == NULL) {
1194 FATAL("cannot find entry WSARecvEx (%d)\n", GetLastError());
1195 abort();
1197 fp = p;
1199 return (*fp)(a0, a1, a2, a3);
1202 int PASCAL
1203 s_perror(int a0, int a1)
1205 static int (PASCAL *fp)(int a0, int a1);
1207 #ifdef DEBUG_STUB
1208 idnLogPrintf(idn_log_level_trace, "stub s_perror() called\n");
1209 #endif
1210 if (fp == NULL) {
1211 void *p;
1212 if ((p = GetProcAddress(DLLHANDLE, "s_perror")) == NULL) {
1213 FATAL("cannot find entry s_perror (%d)\n", GetLastError());
1214 abort();
1216 fp = p;
1218 return (*fp)(a0, a1);
1221 INT PASCAL
1222 GetAddressByNameA(DWORD a0, LPGUID a1, LPSTR a2, LPINT a3, DWORD a4, LPSERVICE_ASYNC_INFO a5, LPVOID a6, LPDWORD a7, LPSTR a8, LPDWORD a9)
1224 static INT (PASCAL *fp)(DWORD a0, LPGUID a1, LPSTR a2, LPINT a3, DWORD a4, LPSERVICE_ASYNC_INFO a5, LPVOID a6, LPDWORD a7, LPSTR a8, LPDWORD a9);
1226 #ifdef DEBUG_STUB
1227 idnLogPrintf(idn_log_level_trace, "stub GetAddressByNameA() called\n");
1228 #endif
1229 if (fp == NULL) {
1230 void *p;
1231 if ((p = GetProcAddress(DLLHANDLE, "GetAddressByNameA")) == NULL) {
1232 FATAL("cannot find entry GetAddressByNameA (%d)\n", GetLastError());
1233 abort();
1235 fp = p;
1237 return (*fp)(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
1240 INT PASCAL
1241 GetAddressByNameW(DWORD a0, LPGUID a1, LPWSTR a2, LPINT a3, DWORD a4, LPSERVICE_ASYNC_INFO a5, LPVOID a6, LPDWORD a7, LPWSTR a8, LPDWORD a9)
1243 static INT (PASCAL *fp)(DWORD a0, LPGUID a1, LPWSTR a2, LPINT a3, DWORD a4, LPSERVICE_ASYNC_INFO a5, LPVOID a6, LPDWORD a7, LPWSTR a8, LPDWORD a9);
1245 #ifdef DEBUG_STUB
1246 idnLogPrintf(idn_log_level_trace, "stub GetAddressByNameW() called\n");
1247 #endif
1248 if (fp == NULL) {
1249 void *p;
1250 if ((p = GetProcAddress(DLLHANDLE, "GetAddressByNameW")) == NULL) {
1251 FATAL("cannot find entry GetAddressByNameW (%d)\n", GetLastError());
1252 abort();
1254 fp = p;
1256 return (*fp)(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
1259 INT PASCAL
1260 EnumProtocolsA(LPINT a0, LPVOID a1, LPDWORD a2)
1262 static INT (PASCAL *fp)(LPINT a0, LPVOID a1, LPDWORD a2);
1264 #ifdef DEBUG_STUB
1265 idnLogPrintf(idn_log_level_trace, "stub EnumProtocolsA() called\n");
1266 #endif
1267 if (fp == NULL) {
1268 void *p;
1269 if ((p = GetProcAddress(DLLHANDLE, "EnumProtocolsA")) == NULL) {
1270 FATAL("cannot find entry EnumProtocolsA (%d)\n", GetLastError());
1271 abort();
1273 fp = p;
1275 return (*fp)(a0, a1, a2);
1278 INT PASCAL
1279 EnumProtocolsW(LPINT a0, LPVOID a1, LPDWORD a2)
1281 static INT (PASCAL *fp)(LPINT a0, LPVOID a1, LPDWORD a2);
1283 #ifdef DEBUG_STUB
1284 idnLogPrintf(idn_log_level_trace, "stub EnumProtocolsW() called\n");
1285 #endif
1286 if (fp == NULL) {
1287 void *p;
1288 if ((p = GetProcAddress(DLLHANDLE, "EnumProtocolsW")) == NULL) {
1289 FATAL("cannot find entry EnumProtocolsW (%d)\n", GetLastError());
1290 abort();
1292 fp = p;
1294 return (*fp)(a0, a1, a2);
1297 INT PASCAL
1298 GetTypeByNameA(LPSTR a0, LPGUID a1)
1300 static INT (PASCAL *fp)(LPSTR a0, LPGUID a1);
1302 #ifdef DEBUG_STUB
1303 idnLogPrintf(idn_log_level_trace, "stub GetTypeByNameA() called\n");
1304 #endif
1305 if (fp == NULL) {
1306 void *p;
1307 if ((p = GetProcAddress(DLLHANDLE, "GetTypeByNameA")) == NULL) {
1308 FATAL("cannot find entry GetTypeByNameA (%d)\n", GetLastError());
1309 abort();
1311 fp = p;
1313 return (*fp)(a0, a1);
1316 INT PASCAL
1317 GetTypeByNameW(LPWSTR a0, LPGUID a1)
1319 static INT (PASCAL *fp)(LPWSTR a0, LPGUID a1);
1321 #ifdef DEBUG_STUB
1322 idnLogPrintf(idn_log_level_trace, "stub GetTypeByNameW() called\n");
1323 #endif
1324 if (fp == NULL) {
1325 void *p;
1326 if ((p = GetProcAddress(DLLHANDLE, "GetTypeByNameW")) == NULL) {
1327 FATAL("cannot find entry GetTypeByNameW (%d)\n", GetLastError());
1328 abort();
1330 fp = p;
1332 return (*fp)(a0, a1);
1335 INT PASCAL
1336 GetNameByTypeA(LPGUID a0, LPSTR a1, DWORD a2)
1338 static INT (PASCAL *fp)(LPGUID a0, LPSTR a1, DWORD a2);
1340 #ifdef DEBUG_STUB
1341 idnLogPrintf(idn_log_level_trace, "stub GetNameByTypeA() called\n");
1342 #endif
1343 if (fp == NULL) {
1344 void *p;
1345 if ((p = GetProcAddress(DLLHANDLE, "GetNameByTypeA")) == NULL) {
1346 FATAL("cannot find entry GetNameByTypeA (%d)\n", GetLastError());
1347 abort();
1349 fp = p;
1351 return (*fp)(a0, a1, a2);
1354 INT PASCAL
1355 GetNameByTypeW(LPGUID a0, LPWSTR a1, DWORD a2)
1357 static INT (PASCAL *fp)(LPGUID a0, LPWSTR a1, DWORD a2);
1359 #ifdef DEBUG_STUB
1360 idnLogPrintf(idn_log_level_trace, "stub GetNameByTypeW() called\n");
1361 #endif
1362 if (fp == NULL) {
1363 void *p;
1364 if ((p = GetProcAddress(DLLHANDLE, "GetNameByTypeW")) == NULL) {
1365 FATAL("cannot find entry GetNameByTypeW (%d)\n", GetLastError());
1366 abort();
1368 fp = p;
1370 return (*fp)(a0, a1, a2);
1373 INT PASCAL
1374 SetServiceA(DWORD a0, DWORD a1, DWORD a2, LPSERVICE_INFOA a3, LPSERVICE_ASYNC_INFO a4, LPDWORD a5)
1376 static INT (PASCAL *fp)(DWORD a0, DWORD a1, DWORD a2, LPSERVICE_INFOA a3, LPSERVICE_ASYNC_INFO a4, LPDWORD a5);
1378 #ifdef DEBUG_STUB
1379 idnLogPrintf(idn_log_level_trace, "stub SetServiceA() called\n");
1380 #endif
1381 if (fp == NULL) {
1382 void *p;
1383 if ((p = GetProcAddress(DLLHANDLE, "SetServiceA")) == NULL) {
1384 FATAL("cannot find entry SetServiceA (%d)\n", GetLastError());
1385 abort();
1387 fp = p;
1389 return (*fp)(a0, a1, a2, a3, a4, a5);
1392 INT PASCAL
1393 SetServiceW(DWORD a0, DWORD a1, DWORD a2, LPSERVICE_INFOW a3, LPSERVICE_ASYNC_INFO a4, LPDWORD a5)
1395 static INT (PASCAL *fp)(DWORD a0, DWORD a1, DWORD a2, LPSERVICE_INFOW a3, LPSERVICE_ASYNC_INFO a4, LPDWORD a5);
1397 #ifdef DEBUG_STUB
1398 idnLogPrintf(idn_log_level_trace, "stub SetServiceW() called\n");
1399 #endif
1400 if (fp == NULL) {
1401 void *p;
1402 if ((p = GetProcAddress(DLLHANDLE, "SetServiceW")) == NULL) {
1403 FATAL("cannot find entry SetServiceW (%d)\n", GetLastError());
1404 abort();
1406 fp = p;
1408 return (*fp)(a0, a1, a2, a3, a4, a5);
1411 INT PASCAL
1412 GetServiceA(DWORD a0, LPGUID a1, LPSTR a2, DWORD a3, LPVOID a4, LPDWORD a5, LPSERVICE_ASYNC_INFO a6)
1414 static INT (PASCAL *fp)(DWORD a0, LPGUID a1, LPSTR a2, DWORD a3, LPVOID a4, LPDWORD a5, LPSERVICE_ASYNC_INFO a6);
1416 #ifdef DEBUG_STUB
1417 idnLogPrintf(idn_log_level_trace, "stub GetServiceA() called\n");
1418 #endif
1419 if (fp == NULL) {
1420 void *p;
1421 if ((p = GetProcAddress(DLLHANDLE, "GetServiceA")) == NULL) {
1422 FATAL("cannot find entry GetServiceA (%d)\n", GetLastError());
1423 abort();
1425 fp = p;
1427 return (*fp)(a0, a1, a2, a3, a4, a5, a6);
1430 INT PASCAL
1431 GetServiceW(DWORD a0, LPGUID a1, LPWSTR a2, DWORD a3, LPVOID a4, LPDWORD a5, LPSERVICE_ASYNC_INFO a6)
1433 static INT (PASCAL *fp)(DWORD a0, LPGUID a1, LPWSTR a2, DWORD a3, LPVOID a4, LPDWORD a5, LPSERVICE_ASYNC_INFO a6);
1435 #ifdef DEBUG_STUB
1436 idnLogPrintf(idn_log_level_trace, "stub GetServiceW() called\n");
1437 #endif
1438 if (fp == NULL) {
1439 void *p;
1440 if ((p = GetProcAddress(DLLHANDLE, "GetServiceW")) == NULL) {
1441 FATAL("cannot find entry GetServiceW (%d)\n", GetLastError());
1442 abort();
1444 fp = p;
1446 return (*fp)(a0, a1, a2, a3, a4, a5, a6);
1449 int PASCAL
1450 NPLoadNameSpaces(int a0, int a1, int a2)
1452 static int (PASCAL *fp)(int a0, int a1, int a2);
1454 #ifdef DEBUG_STUB
1455 idnLogPrintf(idn_log_level_trace, "stub NPLoadNameSpaces() called\n");
1456 #endif
1457 if (fp == NULL) {
1458 void *p;
1459 if ((p = GetProcAddress(DLLHANDLE, "NPLoadNameSpaces")) == NULL) {
1460 FATAL("cannot find entry NPLoadNameSpaces (%d)\n", GetLastError());
1461 abort();
1463 fp = p;
1465 return (*fp)(a0, a1, a2);
1468 int PASCAL
1469 NSPStartup(int a0, int a1)
1471 static int (PASCAL *fp)(int a0, int a1);
1473 #ifdef DEBUG_STUB
1474 idnLogPrintf(idn_log_level_trace, "stub NSPStartup() called\n");
1475 #endif
1476 if (fp == NULL) {
1477 void *p;
1478 if ((p = GetProcAddress(DLLHANDLE, "NSPStartup")) == NULL) {
1479 FATAL("cannot find entry NSPStartup (%d)\n", GetLastError());
1480 abort();
1482 fp = p;
1484 return (*fp)(a0, a1);
1487 BOOL PASCAL
1488 TransmitFile(SOCKET a0, HANDLE a1, DWORD a2, DWORD a3, LPOVERLAPPED a4, LPTRANSMIT_FILE_BUFFERS a5, DWORD a6)
1490 static BOOL (PASCAL *fp)(SOCKET a0, HANDLE a1, DWORD a2, DWORD a3, LPOVERLAPPED a4, LPTRANSMIT_FILE_BUFFERS a5, DWORD a6);
1492 #ifdef DEBUG_STUB
1493 idnLogPrintf(idn_log_level_trace, "stub TransmitFile() called\n");
1494 #endif
1495 if (fp == NULL) {
1496 void *p;
1497 if ((p = GetProcAddress(DLLHANDLE, "TransmitFile")) == NULL) {
1498 FATAL("cannot find entry TransmitFile (%d)\n", GetLastError());
1499 abort();
1501 fp = p;
1503 return (*fp)(a0, a1, a2, a3, a4, a5, a6);
1506 BOOL PASCAL
1507 AcceptEx(SOCKET a0, SOCKET a1, PVOID a2, DWORD a3, DWORD a4, DWORD a5, LPDWORD a6, LPOVERLAPPED a7)
1509 static BOOL (PASCAL *fp)(SOCKET a0, SOCKET a1, PVOID a2, DWORD a3, DWORD a4, DWORD a5, LPDWORD a6, LPOVERLAPPED a7);
1511 #ifdef DEBUG_STUB
1512 idnLogPrintf(idn_log_level_trace, "stub AcceptEx() called\n");
1513 #endif
1514 if (fp == NULL) {
1515 void *p;
1516 if ((p = GetProcAddress(DLLHANDLE, "AcceptEx")) == NULL) {
1517 FATAL("cannot find entry AcceptEx (%d)\n", GetLastError());
1518 abort();
1520 fp = p;
1522 return (*fp)(a0, a1, a2, a3, a4, a5, a6, a7);
1525 VOID PASCAL
1526 GetAcceptExSockaddrs(PVOID a0, DWORD a1, DWORD a2, DWORD a3, struct sockaddr** a4, LPINT a5, struct sockaddr** a6, LPINT a7)
1528 static VOID (PASCAL *fp)(PVOID a0, DWORD a1, DWORD a2, DWORD a3, struct sockaddr** a4, LPINT a5, struct sockaddr** a6, LPINT a7);
1530 #ifdef DEBUG_STUB
1531 idnLogPrintf(idn_log_level_trace, "stub GetAcceptExSockaddrs() called\n");
1532 #endif
1533 if (fp == NULL) {
1534 void *p;
1535 if ((p = GetProcAddress(DLLHANDLE, "GetAcceptExSockaddrs")) == NULL) {
1536 FATAL("cannot find entry GetAcceptExSockaddrs (%d)\n", GetLastError());
1537 abort();
1539 fp = p;
1541 (*fp)(a0, a1, a2, a3, a4, a5, a6, a7);