* added _DISABLE_TIDENTS macro to disable any ANSI/UNICODE ambiguous elements from...
[reactos.git] / reactos / lib / wsock32 / stubs.c
1 /* $Id: stubs.c,v 1.3 2003/08/07 04:03:24 royce Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS WinSock DLL
5 * FILE: stubs.c
6 * PURPOSE: Stub functions
7 * PROGRAMMERS: Ge van Geldorp (ge@gse.nl)
8 * REVISIONS:
9 */
10
11 #include <windows.h>
12 #include <winsock2.h>
13
14 /*
15 * @unimplemented
16 */
17 BOOL
18 STDCALL
19 AcceptEx(SOCKET ListenSocket,
20 SOCKET AcceptSocket,
21 PVOID OutputBuffer,
22 DWORD ReceiveDataLength,
23 DWORD LocalAddressLength,
24 DWORD RemoteAddressLength,
25 LPDWORD BytesReceived,
26 LPOVERLAPPED Overlapped)
27 {
28 OutputDebugStringW(L"w32sock AcceptEx stub called\n");
29
30 return FALSE;
31 }
32
33
34 /*
35 * @unimplemented
36 */
37 INT
38 STDCALL
39 EnumProtocolsA(LPINT ProtocolCount,
40 LPVOID ProtocolBuffer,
41 LPDWORD BufferLength)
42 {
43 OutputDebugStringW(L"w32sock EnumProtocolsA stub called\n");
44
45 return SOCKET_ERROR;
46 }
47
48
49 /*
50 * @unimplemented
51 */
52 INT
53 STDCALL
54 EnumProtocolsW(LPINT ProtocolCount,
55 LPVOID ProtocolBuffer,
56 LPDWORD BufferLength)
57 {
58 OutputDebugStringW(L"w32sock EnumProtocolsW stub called\n");
59
60 return SOCKET_ERROR;
61 }
62
63
64 /*
65 * @unimplemented
66 */
67 VOID
68 STDCALL
69 GetAcceptExSockaddrs(PVOID OutputBuffer,
70 DWORD ReceiveDataLength,
71 DWORD LocalAddressLength,
72 DWORD RemoteAddressLength,
73 LPSOCKADDR* LocalSockaddr,
74 LPINT LocalSockaddrLength,
75 LPSOCKADDR* RemoteSockaddr,
76 LPINT RemoteSockaddrLength)
77 {
78 OutputDebugStringW(L"w32sock GetAcceptExSockaddrs stub called\n");
79 }
80
81
82 /*
83 * @unimplemented
84 */
85 INT
86 STDCALL
87 GetAddressByNameA(DWORD NameSpace,
88 LPGUID ServiceType,
89 LPSTR ServiceName,
90 LPINT Protocols,
91 DWORD Resolution,
92 LPVOID /* really LPSERVICE_ASYNC_INFO */ ServiceAsyncInfo,
93 LPVOID CsaddrBuffer,
94 LPDWORD BufferLength,
95 LPSTR AliasBuffer,
96 LPDWORD AliasBufferLength)
97 {
98 OutputDebugStringW(L"w32sock GetAddressByNameA stub called\n");
99
100 return SOCKET_ERROR;
101 }
102
103
104 /*
105 * @unimplemented
106 */
107 INT
108 STDCALL
109 GetAddressByNameW(DWORD NameSpace,
110 LPGUID ServiceType,
111 LPWSTR ServiceName,
112 LPINT Protocols,
113 DWORD Resolution,
114 LPVOID /* really LPSERVICE_ASYNC_INFO */ ServiceAsyncInfo,
115 LPVOID CsaddrBuffer,
116 LPDWORD BufferLength,
117 LPWSTR AliasBuffer,
118 LPDWORD AliasBufferLength)
119 {
120 OutputDebugStringW(L"w32sock GetAddressByNameW stub called\n");
121
122 return SOCKET_ERROR;
123 }
124
125
126 /*
127 * @unimplemented
128 */
129 INT
130 STDCALL
131 GetNameByTypeA(LPGUID ServiceType,
132 LPSTR ServiceName,
133 DWORD NameLength)
134 {
135 OutputDebugStringW(L"w32sock GetNameByTypeA stub called\n");
136
137 return SOCKET_ERROR;
138 }
139
140
141 /*
142 * @unimplemented
143 */
144 INT
145 STDCALL
146 GetNameByTypeW(LPGUID ServiceType,
147 LPWSTR ServiceName,
148 DWORD NameLength)
149 {
150 OutputDebugStringW(L"w32sock GetNameByTypeW stub called\n");
151
152 return SOCKET_ERROR;
153 }
154
155
156 /*
157 * @unimplemented
158 */
159 INT
160 STDCALL
161 GetServiceA(DWORD NameSpace,
162 LPGUID Guid,
163 LPSTR ServiceName,
164 DWORD Properties,
165 LPVOID Buffer,
166 LPDWORD BufferSize,
167 LPVOID /* Really LPSERVICE_ASYNC_INFO */ ServiceAsyncInfo)
168 {
169 OutputDebugStringW(L"w32sock GetServiceA stub called\n");
170
171 return SOCKET_ERROR;
172 }
173
174
175 /*
176 * @unimplemented
177 */
178 INT
179 STDCALL
180 GetServiceW(DWORD NameSpace,
181 LPGUID Guid,
182 LPWSTR ServiceName,
183 DWORD Properties,
184 LPVOID Buffer,
185 LPDWORD BufferSize,
186 LPVOID /* Really LPSERVICE_ASYNC_INFO */ ServiceAsyncInfo)
187 {
188 OutputDebugStringW(L"w32sock GetServiceW stub called\n");
189
190 return SOCKET_ERROR;
191 }
192
193
194 /*
195 * @unimplemented
196 */
197 INT
198 STDCALL
199 GetTypeByNameA(LPSTR ServiceName,
200 LPGUID ServiceType)
201 {
202 OutputDebugStringW(L"w32sock GetTypeByNameA stub called\n");
203
204 return SOCKET_ERROR;
205 }
206
207
208 /*
209 * @unimplemented
210 */
211 INT
212 STDCALL
213 GetTypeByNameW(LPWSTR ServiceName,
214 LPGUID ServiceType)
215 {
216 OutputDebugStringW(L"w32sock GetTypeByNameW stub called\n");
217
218 return SOCKET_ERROR;
219 }
220
221
222 /*
223 * @unimplemented
224 */
225 INT
226 STDCALL
227 SetServiceA(DWORD NameSpace,
228 DWORD Operation,
229 DWORD Flags,
230 LPVOID /* Really LPSERVICE_INFO */ ServiceInfo,
231 LPVOID /* Really LPSERVICE_ASYNC_INFOA */ ServiceAsyncInfo,
232 LPDWORD dwStatusFlags)
233 {
234 OutputDebugStringW(L"w32sock SetServiceA stub called\n");
235
236 return SOCKET_ERROR;
237 }
238
239
240 /*
241 * @unimplemented
242 */
243 INT
244 STDCALL
245 SetServiceW(DWORD NameSpace,
246 DWORD Operation,
247 DWORD Flags,
248 LPVOID /* Really LPSERVICE_INFO */ ServiceInfo,
249 LPVOID /* Really LPSERVICE_ASYNC_INFOW */ ServiceAsyncInfo,
250 LPDWORD dwStatusFlags)
251 {
252 OutputDebugStringW(L"w32sock SetServiceW stub called\n");
253
254 return SOCKET_ERROR;
255 }
256
257
258 /*
259 * @unimplemented
260 */
261 BOOL
262 STDCALL
263 TransmitFile(SOCKET Socket,
264 HANDLE File,
265 DWORD NumberOfBytesToWrite,
266 DWORD NumberOfBytesPerSend,
267 LPOVERLAPPED Overlapped,
268 LPVOID /* really LPTRANSMIT_FILE_BUFFERS */ TransmitBuffers,
269 DWORD Flags)
270 {
271 OutputDebugStringW(L"w32sock TransmitFile stub called\n");
272
273 return FALSE;
274 }
275
276
277 /*
278 * @unimplemented
279 */
280 HANDLE
281 STDCALL
282 WSAAsyncGetHostByAddr(HWND Wnd,
283 unsigned int Msg,
284 const char *Addr,
285 int Len,
286 int Type,
287 char *Buf,
288 int BufLen)
289 {
290 OutputDebugStringW(L"w32sock WSAAsyncGetHostByAddr stub called\n");
291
292 return NULL;
293 }
294
295
296 /*
297 * @unimplemented
298 */
299 HANDLE
300 STDCALL
301 WSAAsyncGetHostByName(HWND Wnd,
302 unsigned int Msg,
303 const char *Name,
304 char *Buf,
305 int BufLen)
306 {
307 OutputDebugStringW(L"w32sock WSAAsyncGetHostByName stub called\n");
308
309 return NULL;
310 }
311
312
313 /*
314 * @unimplemented
315 */
316 HANDLE
317 STDCALL
318 WSAAsyncGetProtoByName(HWND Wnd,
319 unsigned int Msg,
320 const char *Name,
321 char *Buf,
322 int Buflen)
323 {
324 OutputDebugStringW(L"w32sock WSAAsyncGetProtoByName stub called\n");
325
326 return NULL;
327 }
328
329
330 /*
331 * @unimplemented
332 */
333 HANDLE
334 STDCALL
335 WSAAsyncGetProtoByNumber(HWND Wnd,
336 unsigned int Msg,
337 int Number,
338 char *Buf,
339 int BufLen)
340 {
341 OutputDebugStringW(L"w32sock WSAAsyncGetProtoByNumber stub called\n");
342
343 return NULL;
344 }
345
346
347 /*
348 * @unimplemented
349 */
350 HANDLE
351 STDCALL
352 WSAAsyncGetServByName(HWND Wnd,
353 unsigned int Msg,
354 const char *Name,
355 const char *Proto,
356 char *Buf,
357 int BufLen)
358 {
359 OutputDebugStringW(L"w32sock WSAAsyncGetServByName stub called\n");
360
361 return NULL;
362 }
363
364
365 /*
366 * @unimplemented
367 */
368 HANDLE
369 STDCALL
370 WSAAsyncGetServByPort(HWND Wnd,
371 unsigned int Msg,
372 int Port,
373 const char *Proto,
374 char *Buf,
375 int BufLen)
376 {
377 OutputDebugStringW(L"w32sock WSAAsyncGetServByPort stub called\n");
378
379 return NULL;
380 }
381
382
383 /*
384 * @unimplemented
385 */
386 INT
387 STDCALL
388 WSAAsyncSelect(SOCKET Sock,
389 HWND Wnd,
390 UINT Msg,
391 LONG Event)
392 {
393 OutputDebugStringW(L"w32sock WSAAsyncSelect stub called\n");
394
395 return SOCKET_ERROR;
396 }
397
398
399 /*
400 * @unimplemented
401 */
402 int
403 STDCALL
404 WSACancelAsyncRequest(HANDLE AsyncTaskHandle)
405 {
406 OutputDebugStringW(L"w32sock WSACancelAsyncRequest stub called\n");
407
408 return SOCKET_ERROR;
409 }
410
411
412 /*
413 * @unimplemented
414 */
415 int
416 STDCALL
417 WSACancelBlockingCall()
418 {
419 OutputDebugStringW(L"w32sock WSACancelBlockingCall stub called\n");
420
421 return SOCKET_ERROR;
422 }
423
424
425 /*
426 * @unimplemented
427 */
428 int
429 STDCALL
430 WSACleanup()
431 {
432 OutputDebugStringW(L"w32sock WSACleanup stub called\n");
433
434 return SOCKET_ERROR;
435 }
436
437
438 /*
439 * @unimplemented
440 */
441 int
442 STDCALL
443 WSAGetLastError(void)
444 {
445 OutputDebugStringW(L"w32sock WSAGetLastError stub called\n");
446
447 return WSANOTINITIALISED;
448 }
449
450
451 /*
452 * @unimplemented
453 */
454 BOOL
455 STDCALL
456 WSAIsBlocking(VOID)
457 {
458 OutputDebugStringW(L"w32sock WSAIsBlocking stub called\n");
459
460 return FALSE;
461 }
462
463
464 /*
465 * @unimplemented
466 */
467 int
468 STDCALL
469 WSARecvEx(SOCKET Sock,
470 char *Buf,
471 int Len,
472 int *Flags)
473 {
474 OutputDebugStringW(L"w32sock WSARecvEx stub called\n");
475
476 return SOCKET_ERROR;
477 }
478
479
480 /*
481 * @unimplemented
482 */
483 FARPROC
484 STDCALL
485 WSASetBlockingHook(FARPROC BlockFunc)
486 {
487 OutputDebugStringW(L"w32sock WSASetBlockingHook stub called\n");
488
489 return NULL;
490 }
491
492
493 /*
494 * @unimplemented
495 */
496 void
497 STDCALL WSASetLastError(int Error)
498 {
499 OutputDebugStringW(L"w32sock WSASetLastError stub called\n");
500 }
501
502
503 /*
504 * @unimplemented
505 */
506 int
507 STDCALL
508 WSAStartup(WORD VersionRequested,
509 LPWSADATA WSAData)
510 {
511 OutputDebugStringW(L"w32sock WSAStartup stub called\n");
512
513 return WSASYSNOTREADY;
514 }
515
516
517 /*
518 * @unimplemented
519 */
520 int
521 STDCALL
522 WSAUnhookBlockingHook(void)
523 {
524 OutputDebugStringW(L"w32sock WSAUnhookBlockingHook stub called\n");
525
526 return SOCKET_ERROR;
527 }
528
529
530 /*
531 * @unimplemented
532 */
533 int
534 STDCALL
535 WSApSetPostRoutine(LPVOID /* really LPWPUPOSTMESSAGE */ PostRoutine)
536 {
537 OutputDebugStringW(L"w32sock WSApSetPostRoutine stub called\n");
538
539 return SOCKET_ERROR;
540 }
541
542
543 /*
544 * @unimplemented
545 */
546 int
547 STDCALL
548 __WSAFDIsSet(SOCKET Sock,
549 fd_set *Set)
550 {
551 OutputDebugStringW(L"w32sock __WSAFDIsSet stub called\n");
552
553 return 0;
554 }
555
556
557 /*
558 * @unimplemented
559 */
560 SOCKET
561 STDCALL
562 accept(SOCKET Sock,
563 struct sockaddr *Addr,
564 int *AddrLen)
565 {
566 OutputDebugStringW(L"w32sock accept stub called\n");
567
568 return INVALID_SOCKET;
569 }
570
571
572 /*
573 * @unimplemented
574 */
575 INT
576 STDCALL
577 bind(SOCKET Sock,
578 CONST LPSOCKADDR Name,
579 INT NameLen)
580 {
581 OutputDebugStringW(L"w32sock bind stub called\n");
582
583 return SOCKET_ERROR;
584 }
585
586
587 /*
588 * @unimplemented
589 */
590 int
591 STDCALL
592 closesocket(SOCKET Sock)
593 {
594 OutputDebugStringW(L"w32sock closesocket stub called\n");
595
596 return SOCKET_ERROR;
597 }
598
599
600 /*
601 * @unimplemented
602 */
603 INT
604 STDCALL
605 connect(SOCKET Sock,
606 CONST LPSOCKADDR Name,
607 INT NameLen)
608 {
609 OutputDebugStringW(L"w32sock connect stub called\n");
610
611 return SOCKET_ERROR;
612 }
613
614
615 /*
616 * @unimplemented
617 */
618 int
619 STDCALL
620 dn_expand(unsigned char *MessagePtr,
621 unsigned char *EndofMesOrig,
622 unsigned char *CompDomNam,
623 unsigned char *ExpandDomNam,
624 int Length)
625 {
626 OutputDebugStringW(L"w32sock dn_expand stub called\n");
627
628 return SOCKET_ERROR;
629 }
630
631
632 /*
633 * @unimplemented
634 */
635 LPHOSTENT
636 STDCALL
637 gethostbyaddr(CONST CHAR *Addr,
638 INT Len,
639 INT Type)
640 {
641 OutputDebugStringW(L"w32sock gethostbyaddr stub called\n");
642
643 return NULL;
644 }
645
646
647 /*
648 * @unimplemented
649 */
650 struct hostent *
651 STDCALL
652 gethostbyname(const char *Name)
653 {
654 OutputDebugStringW(L"w32sock gethostbyname stub called\n");
655
656 return NULL;
657 }
658
659
660 /*
661 * @unimplemented
662 */
663 int
664 STDCALL
665 gethostname(char *Name,
666 int NameLen)
667 {
668 OutputDebugStringW(L"w32sock gethostname stub called\n");
669
670 return SOCKET_ERROR;
671 }
672
673
674 /*
675 * @unimplemented
676 */
677 struct netent *
678 STDCALL
679 getnetbyname(char *Name)
680 {
681 OutputDebugStringW(L"w32sock getnetbyname stub called\n");
682
683 return NULL;
684 }
685
686
687 /*
688 * @unimplemented
689 */
690 int
691 STDCALL
692 getpeername(SOCKET Sock,
693 struct sockaddr *Name,
694 int *NameLen)
695 {
696 OutputDebugStringW(L"w32sock getpeername stub called\n");
697
698 return SOCKET_ERROR;
699 }
700
701
702 /*
703 * @unimplemented
704 */
705 LPPROTOENT
706 STDCALL
707 getprotobyname(CONST CHAR *Name)
708 {
709 OutputDebugStringW(L"w32sock getprotobyname stub called\n");
710
711 return NULL;
712 }
713
714
715 /*
716 * @unimplemented
717 */
718 LPPROTOENT
719 STDCALL
720 getprotobynumber(INT Number)
721 {
722 OutputDebugStringW(L"w32sock getprotobynumber stub called\n");
723
724 return NULL;
725 }
726
727
728 /*
729 * @unimplemented
730 */
731 struct servent *
732 STDCALL
733 getservbyname(const char *Name,
734 const char *Proto)
735 {
736 OutputDebugStringW(L"w32sock getservbyname stub called\n");
737
738 return NULL;
739 }
740
741
742 /*
743 * @unimplemented
744 */
745 struct servent *
746 STDCALL
747 getservbyport(int Port,
748 const char *Proto)
749 {
750 OutputDebugStringW(L"w32sock getservbyport stub called\n");
751
752 return NULL;
753 }
754
755
756 /*
757 * @unimplemented
758 */
759 int
760 STDCALL
761 getsockname(SOCKET Sock,
762 struct sockaddr *Name,
763 int *NameLen)
764 {
765 OutputDebugStringW(L"w32sock getsockname stub called\n");
766
767 return SOCKET_ERROR;
768 }
769
770
771 /*
772 * @unimplemented
773 */
774 int
775 STDCALL
776 getsockopt(SOCKET Sock,
777 int Level,
778 int OptName,
779 char *OptVal,
780 int *OptLen)
781 {
782 OutputDebugStringW(L"w32sock getsockopt stub called\n");
783
784 return SOCKET_ERROR;
785 }
786
787
788 /*
789 * @unimplemented
790 */
791 ULONG
792 STDCALL
793 htonl(ULONG HostLong)
794 {
795 return (((HostLong << 24) & 0xff000000) |
796 ((HostLong << 8) & 0x00ff0000) |
797 ((HostLong >> 8) & 0x0000ff00) |
798 ((HostLong >> 24) & 0x000000ff));
799 }
800
801
802 /*
803 * @unimplemented
804 */
805 USHORT
806 STDCALL
807 htons(USHORT HostShort)
808 {
809 return (((HostShort << 8) & 0xff00) |
810 ((HostShort >> 8) & 0x00ff));
811 }
812
813
814 /*
815 * @unimplemented
816 */
817 ULONG
818 STDCALL
819 inet_addr(CONST CHAR *cp)
820 {
821 OutputDebugStringW(L"w32sock inet_addr stub called\n");
822
823 return INADDR_NONE;
824 }
825
826
827 /*
828 * @unimplemented
829 */
830 unsigned long
831 STDCALL
832 inet_network(const char *cp)
833 {
834 OutputDebugStringW(L"w32sock inet_network stub called\n");
835
836 return INADDR_NONE;
837 }
838
839
840 /*
841 * @unimplemented
842 */
843 char *
844 STDCALL
845 inet_ntoa(struct in_addr in)
846 {
847 OutputDebugStringW(L"w32sock inet_ntoa stub called\n");
848
849 return NULL;
850 }
851
852
853 /*
854 * @unimplemented
855 */
856 INT
857 STDCALL
858 ioctlsocket(SOCKET Sock,
859 LONG Cmd,
860 ULONG *Argp)
861 {
862 OutputDebugStringW(L"w32sock ioctlsocket stub called\n");
863
864 return SOCKET_ERROR;
865 }
866
867
868 /*
869 * @unimplemented
870 */
871 int
872 STDCALL
873 listen(SOCKET Sock,
874 int BackLog)
875 {
876 OutputDebugStringW(L"w32sock listen stub called\n");
877
878 return SOCKET_ERROR;
879 }
880
881
882 /*
883 * @implemented
884 */
885 ULONG
886 STDCALL
887 ntohl(ULONG NetLong)
888 {
889 return (((NetLong << 24) & 0xff000000) |
890 ((NetLong << 8) & 0x00ff0000) |
891 ((NetLong >> 8) & 0x0000ff00) |
892 ((NetLong >> 24) & 0x000000ff));
893 }
894
895
896 /*
897 * @implemented
898 */
899 USHORT
900 STDCALL
901 ntohs(USHORT NetShort)
902 {
903 return (((NetShort << 8) & 0xff00) |
904 ((NetShort >> 8) & 0x00ff));
905 }
906
907
908 /*
909 * @unimplemented
910 */
911 SOCKET
912 STDCALL
913 rcmd(char **AHost,
914 USHORT InPort,
915 char *LocUser,
916 char *RemUser,
917 char *Cmd,
918 int *Fd2p)
919 {
920 OutputDebugStringW(L"w32sock rcmd stub called\n");
921
922 return INVALID_SOCKET;
923 }
924
925
926 /*
927 * @unimplemented
928 */
929 int
930 STDCALL
931 recv(SOCKET Sock,
932 char *Buf,
933 int Len,
934 int Flags)
935 {
936 OutputDebugStringW(L"w32sock recv stub called\n");
937
938 return SOCKET_ERROR;
939 }
940
941
942 /*
943 * @unimplemented
944 */
945 int
946 STDCALL
947 recvfrom(SOCKET Sock,
948 char *Buf,
949 int Len,
950 int Flags,
951 struct sockaddr *From,
952 int *FromLen)
953 {
954 OutputDebugStringW(L"w32sock recvfrom stub called\n");
955
956 return SOCKET_ERROR;
957 }
958
959
960 /*
961 * @unimplemented
962 */
963 SOCKET
964 STDCALL
965 rexec(char **AHost,
966 int InPort,
967 char *User,
968 char *Passwd,
969 char *Cmd,
970 int *Fd2p)
971 {
972 OutputDebugStringW(L"w32sock rexec stub called\n");
973
974 return INVALID_SOCKET;
975 }
976
977
978 /*
979 * @unimplemented
980 */
981 SOCKET
982 STDCALL
983 rresvport(int *port)
984 {
985 OutputDebugStringW(L"w32sock rresvport stub called\n");
986
987 return INVALID_SOCKET;
988 }
989
990
991 /*
992 * @unimplemented
993 */
994 void
995 STDCALL
996 s_perror(const char *str)
997 {
998 OutputDebugStringW(L"w32sock s_perror stub called\n");
999 }
1000
1001
1002 /*
1003 * @unimplemented
1004 */
1005 INT
1006 STDCALL
1007 select(INT NumFds,
1008 LPFD_SET ReadFds,
1009 LPFD_SET WriteFds,
1010 LPFD_SET ExceptFds,
1011 CONST LPTIMEVAL TimeOut)
1012 {
1013 OutputDebugStringW(L"w32sock select stub called\n");
1014
1015 return SOCKET_ERROR;
1016 }
1017
1018
1019 /*
1020 * @unimplemented
1021 */
1022 int
1023 STDCALL
1024 send(SOCKET Sock,
1025 const char *Buf,
1026 int Len,
1027 int Flags)
1028 {
1029 OutputDebugStringW(L"w32sock send stub called\n");
1030
1031 return SOCKET_ERROR;
1032 }
1033
1034
1035 /*
1036 * @unimplemented
1037 */
1038 INT
1039 STDCALL
1040 sendto(SOCKET Sock,
1041 CONST CHAR *Buf,
1042 INT Len,
1043 INT Flags,
1044 CONST LPSOCKADDR To,
1045 INT ToLen)
1046 {
1047 OutputDebugStringW(L"w32sock sendto stub called\n");
1048
1049 return SOCKET_ERROR;
1050 }
1051
1052
1053 /*
1054 * @unimplemented
1055 */
1056 int
1057 STDCALL
1058 sethostname(char *Name, int NameLen)
1059 {
1060 OutputDebugStringW(L"w32sock sethostname stub called\n");
1061
1062 return SOCKET_ERROR;
1063 }
1064
1065
1066 /*
1067 * @unimplemented
1068 */
1069 int
1070 STDCALL
1071 setsockopt(SOCKET Sock,
1072 int Level,
1073 int OptName,
1074 const char *OptVal,
1075 int OptLen)
1076 {
1077 OutputDebugStringW(L"w32sock setsockopt stub called\n");
1078
1079 return SOCKET_ERROR;
1080 }
1081
1082
1083 /*
1084 * @unimplemented
1085 */
1086 int
1087 STDCALL
1088 shutdown(SOCKET Sock,
1089 int How)
1090 {
1091 OutputDebugStringW(L"w32sock shutdown stub called\n");
1092
1093 return SOCKET_ERROR;
1094 }
1095
1096
1097 /*
1098 * @unimplemented
1099 */
1100 SOCKET
1101 STDCALL
1102 socket(int AF,
1103 int Type,
1104 int Protocol)
1105 {
1106 OutputDebugStringW(L"w32sock socket stub called\n");
1107
1108 return INVALID_SOCKET;
1109 }
1110
1111
1112 /*
1113 * @unimplemented
1114 */
1115 BOOL
1116 STDCALL
1117 DllMain(HINSTANCE InstDLL,
1118 DWORD Reason,
1119 LPVOID Reserved)
1120 {
1121 return TRUE;
1122 }