Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenstubs.c
Go to the documentation of this file.
00001 /* $Id: stubs.c 53180 2011-08-11 15:07:19Z akhaldi $ 00002 * 00003 * COPYRIGHT: See COPYING in the top level directory 00004 * PROJECT: ReactOS WinSock DLL 00005 * FILE: stubs.c 00006 * PURPOSE: Stub functions 00007 * PROGRAMMERS: Ge van Geldorp (ge@gse.nl) 00008 * REVISIONS: 00009 */ 00010 00011 #include "precomp.h" 00012 00013 typedef DWORD (* LPFN_NSPAPI)(VOID); 00014 typedef struct _NS_ROUTINE { 00015 DWORD dwFunctionCount; 00016 LPFN_NSPAPI *alpfnFunctions; 00017 DWORD dwNameSpace; 00018 DWORD dwPriority; 00019 } NS_ROUTINE, *PNS_ROUTINE, * FAR LPNS_ROUTINE; 00020 00021 /* 00022 * @unimplemented 00023 */ 00024 BOOL 00025 WINAPI 00026 AcceptEx(SOCKET ListenSocket, 00027 SOCKET AcceptSocket, 00028 PVOID OutputBuffer, 00029 DWORD ReceiveDataLength, 00030 DWORD LocalAddressLength, 00031 DWORD RemoteAddressLength, 00032 LPDWORD BytesReceived, 00033 LPOVERLAPPED Overlapped) 00034 { 00035 OutputDebugStringW(L"w32sock AcceptEx stub called\n"); 00036 00037 return FALSE; 00038 } 00039 00040 00041 /* 00042 * @unimplemented 00043 */ 00044 INT 00045 WINAPI 00046 EnumProtocolsA(LPINT ProtocolCount, 00047 LPVOID ProtocolBuffer, 00048 LPDWORD BufferLength) 00049 { 00050 OutputDebugStringW(L"w32sock EnumProtocolsA stub called\n"); 00051 00052 return SOCKET_ERROR; 00053 } 00054 00055 00056 /* 00057 * @unimplemented 00058 */ 00059 INT 00060 WINAPI 00061 EnumProtocolsW(LPINT ProtocolCount, 00062 LPVOID ProtocolBuffer, 00063 LPDWORD BufferLength) 00064 { 00065 OutputDebugStringW(L"w32sock EnumProtocolsW stub called\n"); 00066 00067 return SOCKET_ERROR; 00068 } 00069 00070 00071 /* 00072 * @unimplemented 00073 */ 00074 VOID 00075 WINAPI 00076 GetAcceptExSockaddrs(PVOID OutputBuffer, 00077 DWORD ReceiveDataLength, 00078 DWORD LocalAddressLength, 00079 DWORD RemoteAddressLength, 00080 LPSOCKADDR* LocalSockaddr, 00081 LPINT LocalSockaddrLength, 00082 LPSOCKADDR* RemoteSockaddr, 00083 LPINT RemoteSockaddrLength) 00084 { 00085 OutputDebugStringW(L"w32sock GetAcceptExSockaddrs stub called\n"); 00086 } 00087 00088 00089 /* 00090 * @unimplemented 00091 */ 00092 INT 00093 WINAPI 00094 GetAddressByNameA(DWORD NameSpace, 00095 LPGUID ServiceType, 00096 LPSTR ServiceName, 00097 LPINT Protocols, 00098 DWORD Resolution, 00099 LPSERVICE_ASYNC_INFO ServiceAsyncInfo, 00100 LPVOID CsaddrBuffer, 00101 LPDWORD BufferLength, 00102 LPSTR AliasBuffer, 00103 LPDWORD AliasBufferLength) 00104 { 00105 OutputDebugStringW(L"w32sock GetAddressByNameA stub called\n"); 00106 00107 return SOCKET_ERROR; 00108 } 00109 00110 00111 /* 00112 * @unimplemented 00113 */ 00114 INT 00115 WINAPI 00116 GetAddressByNameW(DWORD NameSpace, 00117 LPGUID ServiceType, 00118 LPWSTR ServiceName, 00119 LPINT Protocols, 00120 DWORD Resolution, 00121 LPSERVICE_ASYNC_INFO ServiceAsyncInfo, 00122 LPVOID CsaddrBuffer, 00123 LPDWORD BufferLength, 00124 LPWSTR AliasBuffer, 00125 LPDWORD AliasBufferLength) 00126 { 00127 OutputDebugStringW(L"w32sock GetAddressByNameW stub called\n"); 00128 00129 return SOCKET_ERROR; 00130 } 00131 00132 00133 /* 00134 * @unimplemented 00135 */ 00136 INT 00137 WINAPI 00138 GetServiceA(DWORD NameSpace, 00139 LPGUID Guid, 00140 LPSTR ServiceName, 00141 DWORD Properties, 00142 LPVOID Buffer, 00143 LPDWORD BufferSize, 00144 LPSERVICE_ASYNC_INFO ServiceAsyncInfo) 00145 { 00146 OutputDebugStringW(L"w32sock GetServiceA stub called\n"); 00147 00148 return SOCKET_ERROR; 00149 } 00150 00151 00152 /* 00153 * @unimplemented 00154 */ 00155 INT 00156 WINAPI 00157 GetServiceW(DWORD NameSpace, 00158 LPGUID Guid, 00159 LPWSTR ServiceName, 00160 DWORD Properties, 00161 LPVOID Buffer, 00162 LPDWORD BufferSize, 00163 LPSERVICE_ASYNC_INFO ServiceAsyncInfo) 00164 { 00165 OutputDebugStringW(L"w32sock GetServiceW stub called\n"); 00166 00167 return SOCKET_ERROR; 00168 } 00169 00170 00171 /* 00172 * @unimplemented 00173 */ 00174 INT 00175 WINAPI 00176 GetTypeByNameA(LPSTR ServiceName, 00177 LPGUID ServiceType) 00178 { 00179 OutputDebugStringW(L"w32sock GetTypeByNameA stub called\n"); 00180 00181 return SOCKET_ERROR; 00182 } 00183 00184 00185 /* 00186 * @unimplemented 00187 */ 00188 INT 00189 WINAPI 00190 GetTypeByNameW(LPWSTR ServiceName, 00191 LPGUID ServiceType) 00192 { 00193 OutputDebugStringW(L"w32sock GetTypeByNameW stub called\n"); 00194 00195 return SOCKET_ERROR; 00196 } 00197 00198 00199 /* 00200 * @unimplemented 00201 */ 00202 INT 00203 WINAPI 00204 MigrateWinsockConfiguration(DWORD Unknown1, 00205 DWORD Unknown2, 00206 DWORD Unknown3) 00207 { 00208 OutputDebugStringW(L"w32sock MigrateWinsockConfiguration stub called\n"); 00209 00210 return SOCKET_ERROR; 00211 } 00212 00213 00214 /* 00215 * @unimplemented 00216 */ 00217 INT 00218 WINAPI 00219 SetServiceA(DWORD NameSpace, 00220 DWORD Operation, 00221 DWORD Flags, 00222 LPSERVICE_INFOA ServiceInfo, 00223 LPSERVICE_ASYNC_INFO ServiceAsyncInfo, 00224 LPDWORD dwStatusFlags) 00225 { 00226 OutputDebugStringW(L"w32sock SetServiceA stub called\n"); 00227 00228 return SOCKET_ERROR; 00229 } 00230 00231 00232 /* 00233 * @unimplemented 00234 */ 00235 INT 00236 WINAPI 00237 SetServiceW(DWORD NameSpace, 00238 DWORD Operation, 00239 DWORD Flags, 00240 LPSERVICE_INFOW ServiceInfo, 00241 LPSERVICE_ASYNC_INFO ServiceAsyncInfo, 00242 LPDWORD dwStatusFlags) 00243 { 00244 OutputDebugStringW(L"w32sock SetServiceW stub called\n"); 00245 00246 return SOCKET_ERROR; 00247 } 00248 00249 00250 /* 00251 * @unimplemented 00252 */ 00253 int 00254 WINAPI 00255 WSARecvEx(SOCKET Sock, 00256 char *Buf, 00257 int Len, 00258 int *Flags) 00259 { 00260 OutputDebugStringW(L"w32sock WSARecvEx stub called\n"); 00261 00262 return SOCKET_ERROR; 00263 } 00264 00265 00266 /* 00267 * @unimplemented 00268 */ 00269 int 00270 WINAPI 00271 dn_expand(unsigned char *MessagePtr, 00272 unsigned char *EndofMesOrig, 00273 unsigned char *CompDomNam, 00274 unsigned char *ExpandDomNam, 00275 int Length) 00276 { 00277 OutputDebugStringW(L"w32sock dn_expand stub called\n"); 00278 00279 return SOCKET_ERROR; 00280 } 00281 00282 00283 /* 00284 * @unimplemented 00285 */ 00286 struct netent * 00287 WINAPI 00288 getnetbyname(const char *name) 00289 { 00290 OutputDebugStringW(L"w32sock getnetbyname stub called\n"); 00291 00292 return NULL; 00293 } 00294 00295 00296 /* 00297 * @unimplemented 00298 */ 00299 UINT 00300 WINAPI 00301 inet_network(const char *cp) 00302 { 00303 OutputDebugStringW(L"w32sock inet_network stub called\n"); 00304 00305 return INADDR_NONE; 00306 } 00307 00308 00309 /* 00310 * @unimplemented 00311 */ 00312 SOCKET 00313 WINAPI 00314 rcmd(char **AHost, 00315 USHORT InPort, 00316 char *LocUser, 00317 char *RemUser, 00318 char *Cmd, 00319 int *Fd2p) 00320 { 00321 OutputDebugStringW(L"w32sock rcmd stub called\n"); 00322 00323 return INVALID_SOCKET; 00324 } 00325 00326 00327 /* 00328 * @unimplemented 00329 */ 00330 SOCKET 00331 WINAPI 00332 rexec(char **AHost, 00333 int InPort, 00334 char *User, 00335 char *Passwd, 00336 char *Cmd, 00337 int *Fd2p) 00338 { 00339 OutputDebugStringW(L"w32sock rexec stub called\n"); 00340 00341 return INVALID_SOCKET; 00342 } 00343 00344 00345 /* 00346 * @unimplemented 00347 */ 00348 SOCKET 00349 WINAPI 00350 rresvport(int *port) 00351 { 00352 OutputDebugStringW(L"w32sock rresvport stub called\n"); 00353 00354 return INVALID_SOCKET; 00355 } 00356 00357 00358 /* 00359 * @unimplemented 00360 */ 00361 void 00362 WINAPI 00363 s_perror(const char *str) 00364 { 00365 OutputDebugStringW(L"w32sock s_perror stub called\n"); 00366 } 00367 00368 00369 /* 00370 * @unimplemented 00371 */ 00372 int 00373 WINAPI 00374 sethostname(char *Name, int NameLen) 00375 { 00376 OutputDebugStringW(L"w32sock sethostname stub called\n"); 00377 00378 return SOCKET_ERROR; 00379 } 00380 00381 00382 /* 00383 * @unimplemented 00384 */ 00385 BOOL 00386 WINAPI 00387 DllMain(HINSTANCE InstDLL, 00388 DWORD Reason, 00389 LPVOID Reserved) 00390 { 00391 return TRUE; 00392 } 00393 00394 00395 /* 00396 * @unimplemented 00397 */ 00398 INT 00399 WINAPI 00400 GetNameByTypeA(LPGUID lpServiceType,LPSTR lpServiceName,DWORD dwNameLength) 00401 { 00402 OutputDebugStringW(L"w32sock GetNameByTypeA stub called\n"); 00403 return TRUE; 00404 } 00405 00406 00407 /* 00408 * @unimplemented 00409 */ 00410 INT 00411 WINAPI 00412 GetNameByTypeW(LPGUID lpServiceType,LPWSTR lpServiceName,DWORD dwNameLength) 00413 { 00414 OutputDebugStringW(L"w32sock GetNameByTypeW stub called\n"); 00415 return TRUE; 00416 } 00417 00418 00419 /* 00420 * @unimplemented 00421 */ 00422 INT 00423 WINAPI 00424 NSPStartup( 00425 LPGUID lpProviderId, 00426 LPNSP_ROUTINE lpnspRoutines 00427 ) 00428 { 00429 return TRUE; 00430 } 00431 00432 00433 /* 00434 * @unimplemented 00435 */ 00436 int 00437 WINAPI 00438 WSPStartup( 00439 IN WORD wVersionRequested, 00440 OUT LPWSPDATA lpWSPData, 00441 IN LPWSAPROTOCOL_INFOW lpProtocolInfo, 00442 IN WSPUPCALLTABLE UpcallTable, 00443 OUT LPWSPPROC_TABLE lpProcTable 00444 ) 00445 { 00446 return TRUE; 00447 } 00448 00449 00450 /* 00451 * @unimplemented 00452 */ 00453 INT 00454 WINAPI 00455 NPLoadNameSpaces( 00456 IN OUT LPDWORD lpdwVersion, 00457 IN OUT LPNS_ROUTINE nsrBuffer, 00458 IN OUT LPDWORD lpdwBufferLength 00459 ) 00460 { 00461 OutputDebugStringW(L"mswsock NPLoadNameSpaces stub called\n"); 00462 00463 *lpdwVersion = 1; 00464 00465 return TRUE; 00466 } 00467 00468 00469 /* 00470 * @unimplemented 00471 */ 00472 VOID 00473 WINAPI 00474 StartWsdpService() 00475 { 00476 OutputDebugStringW(L"mswsock StartWsdpService stub called\n"); 00477 } 00478 00479 00480 /* 00481 * @unimplemented 00482 */ 00483 VOID 00484 WINAPI 00485 StopWsdpService() 00486 { 00487 OutputDebugStringW(L"mswsock StopWsdpService stub called\n"); 00488 } 00489 00490 00491 /* 00492 * @unimplemented 00493 */ 00494 DWORD 00495 WINAPI 00496 SvchostPushServiceGlobals(DWORD Value) 00497 { 00498 OutputDebugStringW(L"mswsock SvchostPushServiceGlobals stub called\n"); 00499 00500 return 0; 00501 } 00502 00503 00504 /* 00505 * @unimplemented 00506 */ 00507 VOID 00508 WINAPI 00509 ServiceMain(DWORD Unknown1, DWORD Unknown2) 00510 { 00511 OutputDebugStringW(L"mswsock ServiceMain stub called\n"); 00512 } Generated on Sun May 27 2012 04:21:45 for ReactOS by
1.7.6.1
|