3 /* Id: dllstub.c,v 1.1.1.1 2003/06/04 00:27:51 marka Exp */
6 accept(SOCKET a0
, struct sockaddr
* a1
, int* a2
)
8 static SOCKET (PASCAL
*fp
)(SOCKET a0
, struct sockaddr
* a1
, int* a2
);
11 idnLogPrintf(idn_log_level_trace
, "stub accept() called\n");
15 if ((p
= GetProcAddress(DLLHANDLE
, "accept")) == NULL
) {
16 FATAL("cannot find entry accept (%d)\n", GetLastError());
21 return (*fp
)(a0
, a1
, a2
);
25 bind(SOCKET a0
, const struct sockaddr
* a1
, int a2
)
27 static int (PASCAL
*fp
)(SOCKET a0
, const struct sockaddr
* a1
, int a2
);
30 idnLogPrintf(idn_log_level_trace
, "stub bind() called\n");
34 if ((p
= GetProcAddress(DLLHANDLE
, "bind")) == NULL
) {
35 FATAL("cannot find entry bind (%d)\n", GetLastError());
40 return (*fp
)(a0
, a1
, a2
);
44 closesocket(SOCKET a0
)
46 static int (PASCAL
*fp
)(SOCKET a0
);
49 idnLogPrintf(idn_log_level_trace
, "stub closesocket() called\n");
53 if ((p
= GetProcAddress(DLLHANDLE
, "closesocket")) == NULL
) {
54 FATAL("cannot find entry closesocket (%d)\n", GetLastError());
63 connect(SOCKET a0
, const struct sockaddr
* a1
, int a2
)
65 static int (PASCAL
*fp
)(SOCKET a0
, const struct sockaddr
* a1
, int a2
);
68 idnLogPrintf(idn_log_level_trace
, "stub connect() called\n");
72 if ((p
= GetProcAddress(DLLHANDLE
, "connect")) == NULL
) {
73 FATAL("cannot find entry connect (%d)\n", GetLastError());
78 return (*fp
)(a0
, a1
, a2
);
82 getpeername(SOCKET a0
, struct sockaddr
* a1
, int* a2
)
84 static int (PASCAL
*fp
)(SOCKET a0
, struct sockaddr
* a1
, int* a2
);
87 idnLogPrintf(idn_log_level_trace
, "stub getpeername() called\n");
91 if ((p
= GetProcAddress(DLLHANDLE
, "getpeername")) == NULL
) {
92 FATAL("cannot find entry getpeername (%d)\n", GetLastError());
97 return (*fp
)(a0
, a1
, a2
);
101 getsockname(SOCKET a0
, struct sockaddr
* a1
, int* a2
)
103 static int (PASCAL
*fp
)(SOCKET a0
, struct sockaddr
* a1
, int* a2
);
106 idnLogPrintf(idn_log_level_trace
, "stub getsockname() called\n");
110 if ((p
= GetProcAddress(DLLHANDLE
, "getsockname")) == NULL
) {
111 FATAL("cannot find entry getsockname (%d)\n", GetLastError());
116 return (*fp
)(a0
, a1
, a2
);
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
);
125 idnLogPrintf(idn_log_level_trace
, "stub getsockopt() called\n");
129 if ((p
= GetProcAddress(DLLHANDLE
, "getsockopt")) == NULL
) {
130 FATAL("cannot find entry getsockopt (%d)\n", GetLastError());
135 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
141 static u_long (PASCAL
*fp
)(u_long a0
);
144 idnLogPrintf(idn_log_level_trace
, "stub htonl() called\n");
148 if ((p
= GetProcAddress(DLLHANDLE
, "htonl")) == NULL
) {
149 FATAL("cannot find entry htonl (%d)\n", GetLastError());
160 static u_short (PASCAL
*fp
)(u_short a0
);
163 idnLogPrintf(idn_log_level_trace
, "stub htons() called\n");
167 if ((p
= GetProcAddress(DLLHANDLE
, "htons")) == NULL
) {
168 FATAL("cannot find entry htons (%d)\n", GetLastError());
177 ioctlsocket(SOCKET a0
, long a1
, u_long
* a2
)
179 static int (PASCAL
*fp
)(SOCKET a0
, long a1
, u_long
* a2
);
182 idnLogPrintf(idn_log_level_trace
, "stub ioctlsocket() called\n");
186 if ((p
= GetProcAddress(DLLHANDLE
, "ioctlsocket")) == NULL
) {
187 FATAL("cannot find entry ioctlsocket (%d)\n", GetLastError());
192 return (*fp
)(a0
, a1
, a2
);
196 inet_addr(const char* a0
)
198 static unsigned long (PASCAL
*fp
)(const char* a0
);
201 idnLogPrintf(idn_log_level_trace
, "stub inet_addr() called\n");
205 if ((p
= GetProcAddress(DLLHANDLE
, "inet_addr")) == NULL
) {
206 FATAL("cannot find entry inet_addr (%d)\n", GetLastError());
215 inet_ntoa(struct in_addr a0
)
217 static char * (PASCAL
*fp
)(struct in_addr a0
);
220 idnLogPrintf(idn_log_level_trace
, "stub inet_ntoa() called\n");
224 if ((p
= GetProcAddress(DLLHANDLE
, "inet_ntoa")) == NULL
) {
225 FATAL("cannot find entry inet_ntoa (%d)\n", GetLastError());
234 listen(SOCKET a0
, int a1
)
236 static int (PASCAL
*fp
)(SOCKET a0
, int a1
);
239 idnLogPrintf(idn_log_level_trace
, "stub listen() called\n");
243 if ((p
= GetProcAddress(DLLHANDLE
, "listen")) == NULL
) {
244 FATAL("cannot find entry listen (%d)\n", GetLastError());
249 return (*fp
)(a0
, a1
);
255 static u_long (PASCAL
*fp
)(u_long a0
);
258 idnLogPrintf(idn_log_level_trace
, "stub ntohl() called\n");
262 if ((p
= GetProcAddress(DLLHANDLE
, "ntohl")) == NULL
) {
263 FATAL("cannot find entry ntohl (%d)\n", GetLastError());
274 static u_short (PASCAL
*fp
)(u_short a0
);
277 idnLogPrintf(idn_log_level_trace
, "stub ntohs() called\n");
281 if ((p
= GetProcAddress(DLLHANDLE
, "ntohs")) == NULL
) {
282 FATAL("cannot find entry ntohs (%d)\n", GetLastError());
291 recv(SOCKET a0
, char* a1
, int a2
, int a3
)
293 static int (PASCAL
*fp
)(SOCKET a0
, char* a1
, int a2
, int a3
);
296 idnLogPrintf(idn_log_level_trace
, "stub recv() called\n");
300 if ((p
= GetProcAddress(DLLHANDLE
, "recv")) == NULL
) {
301 FATAL("cannot find entry recv (%d)\n", GetLastError());
306 return (*fp
)(a0
, a1
, a2
, a3
);
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
);
315 idnLogPrintf(idn_log_level_trace
, "stub recvfrom() called\n");
319 if ((p
= GetProcAddress(DLLHANDLE
, "recvfrom")) == NULL
) {
320 FATAL("cannot find entry recvfrom (%d)\n", GetLastError());
325 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
);
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
);
334 idnLogPrintf(idn_log_level_trace
, "stub select() called\n");
338 if ((p
= GetProcAddress(DLLHANDLE
, "select")) == NULL
) {
339 FATAL("cannot find entry select (%d)\n", GetLastError());
344 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
353 idnLogPrintf(idn_log_level_trace
, "stub send() called\n");
357 if ((p
= GetProcAddress(DLLHANDLE
, "send")) == NULL
) {
358 FATAL("cannot find entry send (%d)\n", GetLastError());
363 return (*fp
)(a0
, a1
, a2
, a3
);
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
);
372 idnLogPrintf(idn_log_level_trace
, "stub sendto() called\n");
376 if ((p
= GetProcAddress(DLLHANDLE
, "sendto")) == NULL
) {
377 FATAL("cannot find entry sendto (%d)\n", GetLastError());
382 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
);
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
);
391 idnLogPrintf(idn_log_level_trace
, "stub setsockopt() called\n");
395 if ((p
= GetProcAddress(DLLHANDLE
, "setsockopt")) == NULL
) {
396 FATAL("cannot find entry setsockopt (%d)\n", GetLastError());
401 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
405 shutdown(SOCKET a0
, int a1
)
407 static int (PASCAL
*fp
)(SOCKET a0
, int a1
);
410 idnLogPrintf(idn_log_level_trace
, "stub shutdown() called\n");
414 if ((p
= GetProcAddress(DLLHANDLE
, "shutdown")) == NULL
) {
415 FATAL("cannot find entry shutdown (%d)\n", GetLastError());
420 return (*fp
)(a0
, a1
);
424 socket(int a0
, int a1
, int a2
)
426 static SOCKET (PASCAL
*fp
)(int a0
, int a1
, int a2
);
429 idnLogPrintf(idn_log_level_trace
, "stub socket() called\n");
433 if ((p
= GetProcAddress(DLLHANDLE
, "socket")) == NULL
) {
434 FATAL("cannot find entry socket (%d)\n", GetLastError());
439 return (*fp
)(a0
, a1
, a2
);
443 WSApSetPostRoutine(int a0
)
445 static int (PASCAL
*fp
)(int a0
);
448 idnLogPrintf(idn_log_level_trace
, "stub WSApSetPostRoutine() called\n");
452 if ((p
= GetProcAddress(DLLHANDLE
, "WSApSetPostRoutine")) == NULL
) {
453 FATAL("cannot find entry WSApSetPostRoutine (%d)\n", GetLastError());
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
);
467 idnLogPrintf(idn_log_level_trace
, "stub WPUCompleteOverlappedRequest() called\n");
471 if ((p
= GetProcAddress(DLLHANDLE
, "WPUCompleteOverlappedRequest")) == NULL
) {
472 FATAL("cannot find entry WPUCompleteOverlappedRequest (%d)\n", GetLastError());
477 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
486 idnLogPrintf(idn_log_level_trace
, "stub WSAAccept() called\n");
490 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAccept")) == NULL
) {
491 FATAL("cannot find entry WSAAccept (%d)\n", GetLastError());
496 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
505 idnLogPrintf(idn_log_level_trace
, "stub WSAAddressToStringA() called\n");
509 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAddressToStringA")) == NULL
) {
510 FATAL("cannot find entry WSAAddressToStringA (%d)\n", GetLastError());
515 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
524 idnLogPrintf(idn_log_level_trace
, "stub WSAAddressToStringW() called\n");
528 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAddressToStringW")) == NULL
) {
529 FATAL("cannot find entry WSAAddressToStringW (%d)\n", GetLastError());
534 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
538 WSACloseEvent(WSAEVENT a0
)
540 static BOOL (WINAPI
*fp
)(WSAEVENT a0
);
543 idnLogPrintf(idn_log_level_trace
, "stub WSACloseEvent() called\n");
547 if ((p
= GetProcAddress(DLLHANDLE
, "WSACloseEvent")) == NULL
) {
548 FATAL("cannot find entry WSACloseEvent (%d)\n", GetLastError());
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
);
562 idnLogPrintf(idn_log_level_trace
, "stub WSAConnect() called\n");
566 if ((p
= GetProcAddress(DLLHANDLE
, "WSAConnect")) == NULL
) {
567 FATAL("cannot find entry WSAConnect (%d)\n", GetLastError());
572 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
, a6
);
578 static WSAEVENT (WINAPI
*fp
)(void);
581 idnLogPrintf(idn_log_level_trace
, "stub WSACreateEvent() called\n");
585 if ((p
= GetProcAddress(DLLHANDLE
, "WSACreateEvent")) == NULL
) {
586 FATAL("cannot find entry WSACreateEvent (%d)\n", GetLastError());
595 WSADuplicateSocketA(SOCKET a0
, DWORD a1
, LPWSAPROTOCOL_INFOA a2
)
597 static int (WINAPI
*fp
)(SOCKET a0
, DWORD a1
, LPWSAPROTOCOL_INFOA a2
);
600 idnLogPrintf(idn_log_level_trace
, "stub WSADuplicateSocketA() called\n");
604 if ((p
= GetProcAddress(DLLHANDLE
, "WSADuplicateSocketA")) == NULL
) {
605 FATAL("cannot find entry WSADuplicateSocketA (%d)\n", GetLastError());
610 return (*fp
)(a0
, a1
, a2
);
614 WSADuplicateSocketW(SOCKET a0
, DWORD a1
, LPWSAPROTOCOL_INFOW a2
)
616 static int (WINAPI
*fp
)(SOCKET a0
, DWORD a1
, LPWSAPROTOCOL_INFOW a2
);
619 idnLogPrintf(idn_log_level_trace
, "stub WSADuplicateSocketW() called\n");
623 if ((p
= GetProcAddress(DLLHANDLE
, "WSADuplicateSocketW")) == NULL
) {
624 FATAL("cannot find entry WSADuplicateSocketW (%d)\n", GetLastError());
629 return (*fp
)(a0
, a1
, a2
);
633 WSAEnumNameSpaceProvidersA(LPDWORD a0
, LPWSANAMESPACE_INFOA a1
)
635 static INT (WINAPI
*fp
)(LPDWORD a0
, LPWSANAMESPACE_INFOA a1
);
638 idnLogPrintf(idn_log_level_trace
, "stub WSAEnumNameSpaceProvidersA() called\n");
642 if ((p
= GetProcAddress(DLLHANDLE
, "WSAEnumNameSpaceProvidersA")) == NULL
) {
643 FATAL("cannot find entry WSAEnumNameSpaceProvidersA (%d)\n", GetLastError());
648 return (*fp
)(a0
, a1
);
652 WSAEnumNameSpaceProvidersW(LPDWORD a0
, LPWSANAMESPACE_INFOW a1
)
654 static INT (WINAPI
*fp
)(LPDWORD a0
, LPWSANAMESPACE_INFOW a1
);
657 idnLogPrintf(idn_log_level_trace
, "stub WSAEnumNameSpaceProvidersW() called\n");
661 if ((p
= GetProcAddress(DLLHANDLE
, "WSAEnumNameSpaceProvidersW")) == NULL
) {
662 FATAL("cannot find entry WSAEnumNameSpaceProvidersW (%d)\n", GetLastError());
667 return (*fp
)(a0
, a1
);
671 WSAEnumNetworkEvents(SOCKET a0
, WSAEVENT a1
, LPWSANETWORKEVENTS a2
)
673 static int (WINAPI
*fp
)(SOCKET a0
, WSAEVENT a1
, LPWSANETWORKEVENTS a2
);
676 idnLogPrintf(idn_log_level_trace
, "stub WSAEnumNetworkEvents() called\n");
680 if ((p
= GetProcAddress(DLLHANDLE
, "WSAEnumNetworkEvents")) == NULL
) {
681 FATAL("cannot find entry WSAEnumNetworkEvents (%d)\n", GetLastError());
686 return (*fp
)(a0
, a1
, a2
);
690 WSAEnumProtocolsA(LPINT a0
, LPWSAPROTOCOL_INFOA a1
, LPDWORD a2
)
692 static int (WINAPI
*fp
)(LPINT a0
, LPWSAPROTOCOL_INFOA a1
, LPDWORD a2
);
695 idnLogPrintf(idn_log_level_trace
, "stub WSAEnumProtocolsA() called\n");
699 if ((p
= GetProcAddress(DLLHANDLE
, "WSAEnumProtocolsA")) == NULL
) {
700 FATAL("cannot find entry WSAEnumProtocolsA (%d)\n", GetLastError());
705 return (*fp
)(a0
, a1
, a2
);
709 WSAEnumProtocolsW(LPINT a0
, LPWSAPROTOCOL_INFOW a1
, LPDWORD a2
)
711 static int (WINAPI
*fp
)(LPINT a0
, LPWSAPROTOCOL_INFOW a1
, LPDWORD a2
);
714 idnLogPrintf(idn_log_level_trace
, "stub WSAEnumProtocolsW() called\n");
718 if ((p
= GetProcAddress(DLLHANDLE
, "WSAEnumProtocolsW")) == NULL
) {
719 FATAL("cannot find entry WSAEnumProtocolsW (%d)\n", GetLastError());
724 return (*fp
)(a0
, a1
, a2
);
728 WSAEventSelect(SOCKET a0
, WSAEVENT a1
, long a2
)
730 static int (WINAPI
*fp
)(SOCKET a0
, WSAEVENT a1
, long a2
);
733 idnLogPrintf(idn_log_level_trace
, "stub WSAEventSelect() called\n");
737 if ((p
= GetProcAddress(DLLHANDLE
, "WSAEventSelect")) == NULL
) {
738 FATAL("cannot find entry WSAEventSelect (%d)\n", GetLastError());
743 return (*fp
)(a0
, a1
, a2
);
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
);
752 idnLogPrintf(idn_log_level_trace
, "stub WSAGetOverlappedResult() called\n");
756 if ((p
= GetProcAddress(DLLHANDLE
, "WSAGetOverlappedResult")) == NULL
) {
757 FATAL("cannot find entry WSAGetOverlappedResult (%d)\n", GetLastError());
762 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
766 WSAGetQOSByName(SOCKET a0
, LPWSABUF a1
, LPQOS a2
)
768 static BOOL (WINAPI
*fp
)(SOCKET a0
, LPWSABUF a1
, LPQOS a2
);
771 idnLogPrintf(idn_log_level_trace
, "stub WSAGetQOSByName() called\n");
775 if ((p
= GetProcAddress(DLLHANDLE
, "WSAGetQOSByName")) == NULL
) {
776 FATAL("cannot find entry WSAGetQOSByName (%d)\n", GetLastError());
781 return (*fp
)(a0
, a1
, a2
);
785 WSAGetServiceClassInfoA(LPGUID a0
, LPGUID a1
, LPDWORD a2
, LPWSASERVICECLASSINFOA a3
)
787 static INT (WINAPI
*fp
)(LPGUID a0
, LPGUID a1
, LPDWORD a2
, LPWSASERVICECLASSINFOA a3
);
790 idnLogPrintf(idn_log_level_trace
, "stub WSAGetServiceClassInfoA() called\n");
794 if ((p
= GetProcAddress(DLLHANDLE
, "WSAGetServiceClassInfoA")) == NULL
) {
795 FATAL("cannot find entry WSAGetServiceClassInfoA (%d)\n", GetLastError());
800 return (*fp
)(a0
, a1
, a2
, a3
);
804 WSAGetServiceClassInfoW(LPGUID a0
, LPGUID a1
, LPDWORD a2
, LPWSASERVICECLASSINFOW a3
)
806 static INT (WINAPI
*fp
)(LPGUID a0
, LPGUID a1
, LPDWORD a2
, LPWSASERVICECLASSINFOW a3
);
809 idnLogPrintf(idn_log_level_trace
, "stub WSAGetServiceClassInfoW() called\n");
813 if ((p
= GetProcAddress(DLLHANDLE
, "WSAGetServiceClassInfoW")) == NULL
) {
814 FATAL("cannot find entry WSAGetServiceClassInfoW (%d)\n", GetLastError());
819 return (*fp
)(a0
, a1
, a2
, a3
);
823 WSAGetServiceClassNameByClassIdA(LPGUID a0
, LPSTR a1
, LPDWORD a2
)
825 static INT (WINAPI
*fp
)(LPGUID a0
, LPSTR a1
, LPDWORD a2
);
828 idnLogPrintf(idn_log_level_trace
, "stub WSAGetServiceClassNameByClassIdA() called\n");
832 if ((p
= GetProcAddress(DLLHANDLE
, "WSAGetServiceClassNameByClassIdA")) == NULL
) {
833 FATAL("cannot find entry WSAGetServiceClassNameByClassIdA (%d)\n", GetLastError());
838 return (*fp
)(a0
, a1
, a2
);
842 WSAGetServiceClassNameByClassIdW(LPGUID a0
, LPWSTR a1
, LPDWORD a2
)
844 static INT (WINAPI
*fp
)(LPGUID a0
, LPWSTR a1
, LPDWORD a2
);
847 idnLogPrintf(idn_log_level_trace
, "stub WSAGetServiceClassNameByClassIdW() called\n");
851 if ((p
= GetProcAddress(DLLHANDLE
, "WSAGetServiceClassNameByClassIdW")) == NULL
) {
852 FATAL("cannot find entry WSAGetServiceClassNameByClassIdW (%d)\n", GetLastError());
857 return (*fp
)(a0
, a1
, a2
);
861 WSAHtonl(SOCKET a0
, unsigned long a1
, unsigned long * a2
)
863 static int (WINAPI
*fp
)(SOCKET a0
, unsigned long a1
, unsigned long * a2
);
866 idnLogPrintf(idn_log_level_trace
, "stub WSAHtonl() called\n");
870 if ((p
= GetProcAddress(DLLHANDLE
, "WSAHtonl")) == NULL
) {
871 FATAL("cannot find entry WSAHtonl (%d)\n", GetLastError());
876 return (*fp
)(a0
, a1
, a2
);
880 WSAHtons(SOCKET a0
, unsigned short a1
, unsigned short * a2
)
882 static int (WINAPI
*fp
)(SOCKET a0
, unsigned short a1
, unsigned short * a2
);
885 idnLogPrintf(idn_log_level_trace
, "stub WSAHtons() called\n");
889 if ((p
= GetProcAddress(DLLHANDLE
, "WSAHtons")) == NULL
) {
890 FATAL("cannot find entry WSAHtons (%d)\n", GetLastError());
895 return (*fp
)(a0
, a1
, a2
);
899 WSAInstallServiceClassA(LPWSASERVICECLASSINFOA a0
)
901 static INT (WINAPI
*fp
)(LPWSASERVICECLASSINFOA a0
);
904 idnLogPrintf(idn_log_level_trace
, "stub WSAInstallServiceClassA() called\n");
908 if ((p
= GetProcAddress(DLLHANDLE
, "WSAInstallServiceClassA")) == NULL
) {
909 FATAL("cannot find entry WSAInstallServiceClassA (%d)\n", GetLastError());
918 WSAInstallServiceClassW(LPWSASERVICECLASSINFOW a0
)
920 static INT (WINAPI
*fp
)(LPWSASERVICECLASSINFOW a0
);
923 idnLogPrintf(idn_log_level_trace
, "stub WSAInstallServiceClassW() called\n");
927 if ((p
= GetProcAddress(DLLHANDLE
, "WSAInstallServiceClassW")) == NULL
) {
928 FATAL("cannot find entry WSAInstallServiceClassW (%d)\n", GetLastError());
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
);
942 idnLogPrintf(idn_log_level_trace
, "stub WSAIoctl() called\n");
946 if ((p
= GetProcAddress(DLLHANDLE
, "WSAIoctl")) == NULL
) {
947 FATAL("cannot find entry WSAIoctl (%d)\n", GetLastError());
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
);
961 idnLogPrintf(idn_log_level_trace
, "stub _org_gethostbyaddr() called\n");
965 if ((p
= GetProcAddress(DLLHANDLE
, "gethostbyaddr")) == NULL
) {
966 FATAL("cannot find entry gethostbyaddr (%d)\n", GetLastError());
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
);
980 idnLogPrintf(idn_log_level_trace
, "stub _org_gethostbyname() called\n");
984 if ((p
= GetProcAddress(DLLHANDLE
, "gethostbyname")) == NULL
) {
985 FATAL("cannot find entry gethostbyname (%d)\n", GetLastError());
993 struct protoent
* PASCAL
994 getprotobyname(const char* a0
)
996 static struct protoent
* (PASCAL
*fp
)(const char* a0
);
999 idnLogPrintf(idn_log_level_trace
, "stub getprotobyname() called\n");
1003 if ((p
= GetProcAddress(DLLHANDLE
, "getprotobyname")) == NULL
) {
1004 FATAL("cannot find entry getprotobyname (%d)\n", GetLastError());
1012 struct protoent
* PASCAL
1013 getprotobynumber(int a0
)
1015 static struct protoent
* (PASCAL
*fp
)(int a0
);
1018 idnLogPrintf(idn_log_level_trace
, "stub getprotobynumber() called\n");
1022 if ((p
= GetProcAddress(DLLHANDLE
, "getprotobynumber")) == NULL
) {
1023 FATAL("cannot find entry getprotobynumber (%d)\n", GetLastError());
1031 struct servent
* PASCAL
1032 getservbyname(const char* a0
, const char* a1
)
1034 static struct servent
* (PASCAL
*fp
)(const char* a0
, const char* a1
);
1037 idnLogPrintf(idn_log_level_trace
, "stub getservbyname() called\n");
1041 if ((p
= GetProcAddress(DLLHANDLE
, "getservbyname")) == NULL
) {
1042 FATAL("cannot find entry getservbyname (%d)\n", GetLastError());
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
);
1056 idnLogPrintf(idn_log_level_trace
, "stub getservbyport() called\n");
1060 if ((p
= GetProcAddress(DLLHANDLE
, "getservbyport")) == NULL
) {
1061 FATAL("cannot find entry getservbyport (%d)\n", GetLastError());
1066 return (*fp
)(a0
, a1
);
1070 _org_gethostname(char* a0
, int a1
)
1072 static int (PASCAL
*fp
)(char* a0
, int a1
);
1075 idnLogPrintf(idn_log_level_trace
, "stub _org_gethostname() called\n");
1079 if ((p
= GetProcAddress(DLLHANDLE
, "gethostname")) == NULL
) {
1080 FATAL("cannot find entry gethostname (%d)\n", GetLastError());
1085 return (*fp
)(a0
, a1
);
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
);
1094 idnLogPrintf(idn_log_level_trace
, "stub WSAJoinLeaf() called\n");
1098 if ((p
= GetProcAddress(DLLHANDLE
, "WSAJoinLeaf")) == NULL
) {
1099 FATAL("cannot find entry WSAJoinLeaf (%d)\n", GetLastError());
1104 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
, a6
, a7
);
1108 _org_WSALookupServiceBeginA(LPWSAQUERYSETA a0
, DWORD a1
, LPHANDLE a2
)
1110 static INT (WINAPI
*fp
)(LPWSAQUERYSETA a0
, DWORD a1
, LPHANDLE a2
);
1113 idnLogPrintf(idn_log_level_trace
, "stub _org_WSALookupServiceBeginA() called\n");
1117 if ((p
= GetProcAddress(DLLHANDLE
, "WSALookupServiceBeginA")) == NULL
) {
1118 FATAL("cannot find entry WSALookupServiceBeginA (%d)\n", GetLastError());
1123 return (*fp
)(a0
, a1
, a2
);
1127 _org_WSALookupServiceBeginW(LPWSAQUERYSETW a0
, DWORD a1
, LPHANDLE a2
)
1129 static INT (WINAPI
*fp
)(LPWSAQUERYSETW a0
, DWORD a1
, LPHANDLE a2
);
1132 idnLogPrintf(idn_log_level_trace
, "stub _org_WSALookupServiceBeginW() called\n");
1136 if ((p
= GetProcAddress(DLLHANDLE
, "WSALookupServiceBeginW")) == NULL
) {
1137 FATAL("cannot find entry WSALookupServiceBeginW (%d)\n", GetLastError());
1142 return (*fp
)(a0
, a1
, a2
);
1146 _org_WSALookupServiceEnd(HANDLE a0
)
1148 static INT (WINAPI
*fp
)(HANDLE a0
);
1151 idnLogPrintf(idn_log_level_trace
, "stub _org_WSALookupServiceEnd() called\n");
1155 if ((p
= GetProcAddress(DLLHANDLE
, "WSALookupServiceEnd")) == NULL
) {
1156 FATAL("cannot find entry WSALookupServiceEnd (%d)\n", GetLastError());
1165 _org_WSALookupServiceNextA(HANDLE a0
, DWORD a1
, LPDWORD a2
, LPWSAQUERYSETA a3
)
1167 static INT (WINAPI
*fp
)(HANDLE a0
, DWORD a1
, LPDWORD a2
, LPWSAQUERYSETA a3
);
1170 idnLogPrintf(idn_log_level_trace
, "stub _org_WSALookupServiceNextA() called\n");
1174 if ((p
= GetProcAddress(DLLHANDLE
, "WSALookupServiceNextA")) == NULL
) {
1175 FATAL("cannot find entry WSALookupServiceNextA (%d)\n", GetLastError());
1180 return (*fp
)(a0
, a1
, a2
, a3
);
1184 _org_WSALookupServiceNextW(HANDLE a0
, DWORD a1
, LPDWORD a2
, LPWSAQUERYSETW a3
)
1186 static INT (WINAPI
*fp
)(HANDLE a0
, DWORD a1
, LPDWORD a2
, LPWSAQUERYSETW a3
);
1189 idnLogPrintf(idn_log_level_trace
, "stub _org_WSALookupServiceNextW() called\n");
1193 if ((p
= GetProcAddress(DLLHANDLE
, "WSALookupServiceNextW")) == NULL
) {
1194 FATAL("cannot find entry WSALookupServiceNextW (%d)\n", GetLastError());
1199 return (*fp
)(a0
, a1
, a2
, a3
);
1203 WSANtohl(SOCKET a0
, unsigned long a1
, unsigned long * a2
)
1205 static int (WINAPI
*fp
)(SOCKET a0
, unsigned long a1
, unsigned long * a2
);
1208 idnLogPrintf(idn_log_level_trace
, "stub WSANtohl() called\n");
1212 if ((p
= GetProcAddress(DLLHANDLE
, "WSANtohl")) == NULL
) {
1213 FATAL("cannot find entry WSANtohl (%d)\n", GetLastError());
1218 return (*fp
)(a0
, a1
, a2
);
1222 WSANtohs(SOCKET a0
, unsigned short a1
, unsigned short * a2
)
1224 static int (WINAPI
*fp
)(SOCKET a0
, unsigned short a1
, unsigned short * a2
);
1227 idnLogPrintf(idn_log_level_trace
, "stub WSANtohs() called\n");
1231 if ((p
= GetProcAddress(DLLHANDLE
, "WSANtohs")) == NULL
) {
1232 FATAL("cannot find entry WSANtohs (%d)\n", GetLastError());
1237 return (*fp
)(a0
, a1
, a2
);
1241 WSAProviderConfigChange(LPHANDLE a0
, LPWSAOVERLAPPED a1
, LPWSAOVERLAPPED_COMPLETION_ROUTINE a2
)
1243 static int (WSAAPI
*fp
)(LPHANDLE a0
, LPWSAOVERLAPPED a1
, LPWSAOVERLAPPED_COMPLETION_ROUTINE a2
);
1246 idnLogPrintf(idn_log_level_trace
, "stub WSAProviderConfigChange() called\n");
1250 if ((p
= GetProcAddress(DLLHANDLE
, "WSAProviderConfigChange")) == NULL
) {
1251 FATAL("cannot find entry WSAProviderConfigChange (%d)\n", GetLastError());
1256 return (*fp
)(a0
, a1
, a2
);
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
);
1265 idnLogPrintf(idn_log_level_trace
, "stub WSARecv() called\n");
1269 if ((p
= GetProcAddress(DLLHANDLE
, "WSARecv")) == NULL
) {
1270 FATAL("cannot find entry WSARecv (%d)\n", GetLastError());
1275 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
, a6
);
1279 WSARecvDisconnect(SOCKET a0
, LPWSABUF a1
)
1281 static int (WINAPI
*fp
)(SOCKET a0
, LPWSABUF a1
);
1284 idnLogPrintf(idn_log_level_trace
, "stub WSARecvDisconnect() called\n");
1288 if ((p
= GetProcAddress(DLLHANDLE
, "WSARecvDisconnect")) == NULL
) {
1289 FATAL("cannot find entry WSARecvDisconnect (%d)\n", GetLastError());
1294 return (*fp
)(a0
, a1
);
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
);
1303 idnLogPrintf(idn_log_level_trace
, "stub WSARecvFrom() called\n");
1307 if ((p
= GetProcAddress(DLLHANDLE
, "WSARecvFrom")) == NULL
) {
1308 FATAL("cannot find entry WSARecvFrom (%d)\n", GetLastError());
1313 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
, a6
, a7
, a8
);
1317 WSARemoveServiceClass(LPGUID a0
)
1319 static INT (WINAPI
*fp
)(LPGUID a0
);
1322 idnLogPrintf(idn_log_level_trace
, "stub WSARemoveServiceClass() called\n");
1326 if ((p
= GetProcAddress(DLLHANDLE
, "WSARemoveServiceClass")) == NULL
) {
1327 FATAL("cannot find entry WSARemoveServiceClass (%d)\n", GetLastError());
1336 WSAResetEvent(WSAEVENT a0
)
1338 static BOOL (WINAPI
*fp
)(WSAEVENT a0
);
1341 idnLogPrintf(idn_log_level_trace
, "stub WSAResetEvent() called\n");
1345 if ((p
= GetProcAddress(DLLHANDLE
, "WSAResetEvent")) == NULL
) {
1346 FATAL("cannot find entry WSAResetEvent (%d)\n", GetLastError());
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
);
1360 idnLogPrintf(idn_log_level_trace
, "stub WSASend() called\n");
1364 if ((p
= GetProcAddress(DLLHANDLE
, "WSASend")) == NULL
) {
1365 FATAL("cannot find entry WSASend (%d)\n", GetLastError());
1370 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
, a6
);
1374 WSASendDisconnect(SOCKET a0
, LPWSABUF a1
)
1376 static int (WINAPI
*fp
)(SOCKET a0
, LPWSABUF a1
);
1379 idnLogPrintf(idn_log_level_trace
, "stub WSASendDisconnect() called\n");
1383 if ((p
= GetProcAddress(DLLHANDLE
, "WSASendDisconnect")) == NULL
) {
1384 FATAL("cannot find entry WSASendDisconnect (%d)\n", GetLastError());
1389 return (*fp
)(a0
, a1
);
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
);
1398 idnLogPrintf(idn_log_level_trace
, "stub WSASendTo() called\n");
1402 if ((p
= GetProcAddress(DLLHANDLE
, "WSASendTo")) == NULL
) {
1403 FATAL("cannot find entry WSASendTo (%d)\n", GetLastError());
1408 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
, a6
, a7
, a8
);
1412 WSASetEvent(WSAEVENT a0
)
1414 static BOOL (WINAPI
*fp
)(WSAEVENT a0
);
1417 idnLogPrintf(idn_log_level_trace
, "stub WSASetEvent() called\n");
1421 if ((p
= GetProcAddress(DLLHANDLE
, "WSASetEvent")) == NULL
) {
1422 FATAL("cannot find entry WSASetEvent (%d)\n", GetLastError());
1431 WSASetServiceA(LPWSAQUERYSETA a0
, WSAESETSERVICEOP a1
, DWORD a2
)
1433 static INT (WSAAPI
*fp
)(LPWSAQUERYSETA a0
, WSAESETSERVICEOP a1
, DWORD a2
);
1436 idnLogPrintf(idn_log_level_trace
, "stub WSASetServiceA() called\n");
1440 if ((p
= GetProcAddress(DLLHANDLE
, "WSASetServiceA")) == NULL
) {
1441 FATAL("cannot find entry WSASetServiceA (%d)\n", GetLastError());
1446 return (*fp
)(a0
, a1
, a2
);
1450 WSASetServiceW(LPWSAQUERYSETW a0
, WSAESETSERVICEOP a1
, DWORD a2
)
1452 static INT (WINAPI
*fp
)(LPWSAQUERYSETW a0
, WSAESETSERVICEOP a1
, DWORD a2
);
1455 idnLogPrintf(idn_log_level_trace
, "stub WSASetServiceW() called\n");
1459 if ((p
= GetProcAddress(DLLHANDLE
, "WSASetServiceW")) == NULL
) {
1460 FATAL("cannot find entry WSASetServiceW (%d)\n", GetLastError());
1465 return (*fp
)(a0
, a1
, a2
);
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
);
1474 idnLogPrintf(idn_log_level_trace
, "stub WSASocketA() called\n");
1478 if ((p
= GetProcAddress(DLLHANDLE
, "WSASocketA")) == NULL
) {
1479 FATAL("cannot find entry WSASocketA (%d)\n", GetLastError());
1484 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
);
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
);
1493 idnLogPrintf(idn_log_level_trace
, "stub WSASocketW() called\n");
1497 if ((p
= GetProcAddress(DLLHANDLE
, "WSASocketW")) == NULL
) {
1498 FATAL("cannot find entry WSASocketW (%d)\n", GetLastError());
1503 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
);
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
);
1512 idnLogPrintf(idn_log_level_trace
, "stub WSAStringToAddressA() called\n");
1516 if ((p
= GetProcAddress(DLLHANDLE
, "WSAStringToAddressA")) == NULL
) {
1517 FATAL("cannot find entry WSAStringToAddressA (%d)\n", GetLastError());
1522 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
1531 idnLogPrintf(idn_log_level_trace
, "stub WSAStringToAddressW() called\n");
1535 if ((p
= GetProcAddress(DLLHANDLE
, "WSAStringToAddressW")) == NULL
) {
1536 FATAL("cannot find entry WSAStringToAddressW (%d)\n", GetLastError());
1541 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
1550 idnLogPrintf(idn_log_level_trace
, "stub WSAWaitForMultipleEvents() called\n");
1554 if ((p
= GetProcAddress(DLLHANDLE
, "WSAWaitForMultipleEvents")) == NULL
) {
1555 FATAL("cannot find entry WSAWaitForMultipleEvents (%d)\n", GetLastError());
1560 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
1564 WSCDeinstallProvider(LPGUID a0
, LPINT a1
)
1566 static int (WINAPI
*fp
)(LPGUID a0
, LPINT a1
);
1569 idnLogPrintf(idn_log_level_trace
, "stub WSCDeinstallProvider() called\n");
1573 if ((p
= GetProcAddress(DLLHANDLE
, "WSCDeinstallProvider")) == NULL
) {
1574 FATAL("cannot find entry WSCDeinstallProvider (%d)\n", GetLastError());
1579 return (*fp
)(a0
, a1
);
1583 WSCEnableNSProvider(LPGUID a0
, BOOL a1
)
1585 static int (WINAPI
*fp
)(LPGUID a0
, BOOL a1
);
1588 idnLogPrintf(idn_log_level_trace
, "stub WSCEnableNSProvider() called\n");
1592 if ((p
= GetProcAddress(DLLHANDLE
, "WSCEnableNSProvider")) == NULL
) {
1593 FATAL("cannot find entry WSCEnableNSProvider (%d)\n", GetLastError());
1598 return (*fp
)(a0
, a1
);
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
);
1607 idnLogPrintf(idn_log_level_trace
, "stub WSCEnumProtocols() called\n");
1611 if ((p
= GetProcAddress(DLLHANDLE
, "WSCEnumProtocols")) == NULL
) {
1612 FATAL("cannot find entry WSCEnumProtocols (%d)\n", GetLastError());
1617 return (*fp
)(a0
, a1
, a2
, a3
);
1621 WSCGetProviderPath(LPGUID a0
, LPWSTR a1
, LPINT a2
, LPINT a3
)
1623 static int (WINAPI
*fp
)(LPGUID a0
, LPWSTR a1
, LPINT a2
, LPINT a3
);
1626 idnLogPrintf(idn_log_level_trace
, "stub WSCGetProviderPath() called\n");
1630 if ((p
= GetProcAddress(DLLHANDLE
, "WSCGetProviderPath")) == NULL
) {
1631 FATAL("cannot find entry WSCGetProviderPath (%d)\n", GetLastError());
1636 return (*fp
)(a0
, a1
, a2
, a3
);
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
);
1645 idnLogPrintf(idn_log_level_trace
, "stub WSCInstallNameSpace() called\n");
1649 if ((p
= GetProcAddress(DLLHANDLE
, "WSCInstallNameSpace")) == NULL
) {
1650 FATAL("cannot find entry WSCInstallNameSpace (%d)\n", GetLastError());
1655 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
1664 idnLogPrintf(idn_log_level_trace
, "stub WSCInstallProvider() called\n");
1668 if ((p
= GetProcAddress(DLLHANDLE
, "WSCInstallProvider")) == NULL
) {
1669 FATAL("cannot find entry WSCInstallProvider (%d)\n", GetLastError());
1674 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
1678 WSCUnInstallNameSpace(LPGUID a0
)
1680 static int (WINAPI
*fp
)(LPGUID a0
);
1683 idnLogPrintf(idn_log_level_trace
, "stub WSCUnInstallNameSpace() called\n");
1687 if ((p
= GetProcAddress(DLLHANDLE
, "WSCUnInstallNameSpace")) == NULL
) {
1688 FATAL("cannot find entry WSCUnInstallNameSpace (%d)\n", GetLastError());
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
);
1702 idnLogPrintf(idn_log_level_trace
, "stub WSAAsyncSelect() called\n");
1706 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAsyncSelect")) == NULL
) {
1707 FATAL("cannot find entry WSAAsyncSelect (%d)\n", GetLastError());
1712 return (*fp
)(a0
, a1
, a2
, a3
);
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
);
1721 idnLogPrintf(idn_log_level_trace
, "stub _org_WSAAsyncGetHostByAddr() called\n");
1725 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAsyncGetHostByAddr")) == NULL
) {
1726 FATAL("cannot find entry WSAAsyncGetHostByAddr (%d)\n", GetLastError());
1731 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
, a6
);
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
);
1740 idnLogPrintf(idn_log_level_trace
, "stub _org_WSAAsyncGetHostByName() called\n");
1744 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAsyncGetHostByName")) == NULL
) {
1745 FATAL("cannot find entry WSAAsyncGetHostByName (%d)\n", GetLastError());
1750 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
1759 idnLogPrintf(idn_log_level_trace
, "stub WSAAsyncGetProtoByNumber() called\n");
1763 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAsyncGetProtoByNumber")) == NULL
) {
1764 FATAL("cannot find entry WSAAsyncGetProtoByNumber (%d)\n", GetLastError());
1769 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
1778 idnLogPrintf(idn_log_level_trace
, "stub WSAAsyncGetProtoByName() called\n");
1782 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAsyncGetProtoByName")) == NULL
) {
1783 FATAL("cannot find entry WSAAsyncGetProtoByName (%d)\n", GetLastError());
1788 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
1797 idnLogPrintf(idn_log_level_trace
, "stub WSAAsyncGetServByPort() called\n");
1801 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAsyncGetServByPort")) == NULL
) {
1802 FATAL("cannot find entry WSAAsyncGetServByPort (%d)\n", GetLastError());
1807 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
);
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
);
1816 idnLogPrintf(idn_log_level_trace
, "stub WSAAsyncGetServByName() called\n");
1820 if ((p
= GetProcAddress(DLLHANDLE
, "WSAAsyncGetServByName")) == NULL
) {
1821 FATAL("cannot find entry WSAAsyncGetServByName (%d)\n", GetLastError());
1826 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
);
1830 WSACancelAsyncRequest(HANDLE a0
)
1832 static int (PASCAL
*fp
)(HANDLE a0
);
1835 idnLogPrintf(idn_log_level_trace
, "stub WSACancelAsyncRequest() called\n");
1839 if ((p
= GetProcAddress(DLLHANDLE
, "WSACancelAsyncRequest")) == NULL
) {
1840 FATAL("cannot find entry WSACancelAsyncRequest (%d)\n", GetLastError());
1849 WSASetBlockingHook(FARPROC a0
)
1851 static FARPROC (PASCAL
*fp
)(FARPROC a0
);
1854 idnLogPrintf(idn_log_level_trace
, "stub WSASetBlockingHook() called\n");
1858 if ((p
= GetProcAddress(DLLHANDLE
, "WSASetBlockingHook")) == NULL
) {
1859 FATAL("cannot find entry WSASetBlockingHook (%d)\n", GetLastError());
1868 WSAUnhookBlockingHook(void)
1870 static int (PASCAL
*fp
)(void);
1873 idnLogPrintf(idn_log_level_trace
, "stub WSAUnhookBlockingHook() called\n");
1877 if ((p
= GetProcAddress(DLLHANDLE
, "WSAUnhookBlockingHook")) == NULL
) {
1878 FATAL("cannot find entry WSAUnhookBlockingHook (%d)\n", GetLastError());
1887 WSAGetLastError(void)
1889 static int (PASCAL
*fp
)(void);
1892 idnLogPrintf(idn_log_level_trace
, "stub WSAGetLastError() called\n");
1896 if ((p
= GetProcAddress(DLLHANDLE
, "WSAGetLastError")) == NULL
) {
1897 FATAL("cannot find entry WSAGetLastError (%d)\n", GetLastError());
1906 WSASetLastError(int a0
)
1908 static void (PASCAL
*fp
)(int a0
);
1911 idnLogPrintf(idn_log_level_trace
, "stub WSASetLastError() called\n");
1915 if ((p
= GetProcAddress(DLLHANDLE
, "WSASetLastError")) == NULL
) {
1916 FATAL("cannot find entry WSASetLastError (%d)\n", GetLastError());
1925 WSACancelBlockingCall(void)
1927 static int (PASCAL
*fp
)(void);
1930 idnLogPrintf(idn_log_level_trace
, "stub WSACancelBlockingCall() called\n");
1934 if ((p
= GetProcAddress(DLLHANDLE
, "WSACancelBlockingCall")) == NULL
) {
1935 FATAL("cannot find entry WSACancelBlockingCall (%d)\n", GetLastError());
1946 static BOOL (PASCAL
*fp
)(void);
1949 idnLogPrintf(idn_log_level_trace
, "stub WSAIsBlocking() called\n");
1953 if ((p
= GetProcAddress(DLLHANDLE
, "WSAIsBlocking")) == NULL
) {
1954 FATAL("cannot find entry WSAIsBlocking (%d)\n", GetLastError());
1963 WSAStartup(WORD a0
, LPWSADATA a1
)
1965 static int (PASCAL
*fp
)(WORD a0
, LPWSADATA a1
);
1968 idnLogPrintf(idn_log_level_trace
, "stub WSAStartup() called\n");
1972 if ((p
= GetProcAddress(DLLHANDLE
, "WSAStartup")) == NULL
) {
1973 FATAL("cannot find entry WSAStartup (%d)\n", GetLastError());
1978 return (*fp
)(a0
, a1
);
1984 static int (PASCAL
*fp
)(void);
1987 idnLogPrintf(idn_log_level_trace
, "stub WSACleanup() called\n");
1991 if ((p
= GetProcAddress(DLLHANDLE
, "WSACleanup")) == NULL
) {
1992 FATAL("cannot find entry WSACleanup (%d)\n", GetLastError());
2001 __WSAFDIsSet(SOCKET a0
, fd_set
* a1
)
2003 static int (PASCAL
*fp
)(SOCKET a0
, fd_set
* a1
);
2006 idnLogPrintf(idn_log_level_trace
, "stub __WSAFDIsSet() called\n");
2010 if ((p
= GetProcAddress(DLLHANDLE
, "__WSAFDIsSet")) == NULL
) {
2011 FATAL("cannot find entry __WSAFDIsSet (%d)\n", GetLastError());
2016 return (*fp
)(a0
, a1
);
2022 static int (PASCAL
*fp
)(void);
2025 idnLogPrintf(idn_log_level_trace
, "stub WEP() called\n");
2029 if ((p
= GetProcAddress(DLLHANDLE
, "WEP")) == NULL
) {
2030 FATAL("cannot find entry WEP (%d)\n", GetLastError());
2039 WSCWriteNameSpaceOrder(int a0
, int a1
)
2041 static int (PASCAL
*fp
)(int a0
, int a1
);
2044 idnLogPrintf(idn_log_level_trace
, "stub WSCWriteNameSpaceOrder() called\n");
2048 if ((p
= GetProcAddress(DLLHANDLE
, "WSCWriteNameSpaceOrder")) == NULL
) {
2049 FATAL("cannot find entry WSCWriteNameSpaceOrder (%d)\n", GetLastError());
2054 return (*fp
)(a0
, a1
);
2058 WSCWriteProviderOrder(LPDWORD a0
, DWORD a1
)
2060 static int (PASCAL
*fp
)(LPDWORD a0
, DWORD a1
);
2063 idnLogPrintf(idn_log_level_trace
, "stub WSCWriteProviderOrder() called\n");
2067 if ((p
= GetProcAddress(DLLHANDLE
, "WSCWriteProviderOrder")) == NULL
) {
2068 FATAL("cannot find entry WSCWriteProviderOrder (%d)\n", GetLastError());
2073 return (*fp
)(a0
, a1
);
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
);
2082 idnLogPrintf(idn_log_level_trace
, "stub WSANSPIoctl() called\n");
2086 if ((p
= GetProcAddress(DLLHANDLE
, "WSANSPIoctl")) == NULL
) {
2087 FATAL("cannot find entry WSANSPIoctl (%d)\n", GetLastError());
2092 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
, a6
, a7
);
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
);
2101 idnLogPrintf(idn_log_level_trace
, "stub WSCUpdateProvider() called\n");
2105 if ((p
= GetProcAddress(DLLHANDLE
, "WSCUpdateProvider")) == NULL
) {
2106 FATAL("cannot find entry WSCUpdateProvider (%d)\n", GetLastError());
2111 return (*fp
)(a0
, a1
, a2
, a3
, a4
);
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
);
2120 idnLogPrintf(idn_log_level_trace
, "stub _org_getaddrinfo() called\n");
2124 if ((p
= GetProcAddress(DLLHANDLE
, "getaddrinfo")) == NULL
) {
2125 FATAL("cannot find entry getaddrinfo (%d)\n", GetLastError());
2130 return (*fp
)(a0
, a1
, a2
, a3
);
2134 _org_freeaddrinfo(LPVOID a0
)
2136 static void (PASCAL
*fp
)(LPVOID a0
);
2139 idnLogPrintf(idn_log_level_trace
, "stub _org_freeaddrinfo() called\n");
2143 if ((p
= GetProcAddress(DLLHANDLE
, "freeaddrinfo")) == NULL
) {
2144 FATAL("cannot find entry freeaddrinfo (%d)\n", GetLastError());
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
);
2158 idnLogPrintf(idn_log_level_trace
, "stub _org_getnameinfo() called\n");
2162 if ((p
= GetProcAddress(DLLHANDLE
, "getnameinfo")) == NULL
) {
2163 FATAL("cannot find entry getnameinfo (%d)\n", GetLastError());
2168 return (*fp
)(a0
, a1
, a2
, a3
, a4
, a5
, a6
);