ReactOS 0.4.16-dev-197-g92996da
stubs.c File Reference
#include "precomp.h"
#include <ws2spi.h>
#include <nspapi.h>
#include <svc.h>
Include dependency graph for stubs.c:

Go to the source code of this file.

Classes

struct  _NS_ROUTINE
 

Typedefs

typedef DWORD(* LPFN_NSPAPI) (VOID)
 
typedef struct _NS_ROUTINE NS_ROUTINE
 
typedef struct _NS_ROUTINEPNS_ROUTINE
 
typedef struct _NS_ROUTINE LPNS_ROUTINE
 

Functions

INT WINAPI EnumProtocolsA (LPINT ProtocolCount, LPVOID ProtocolBuffer, LPDWORD BufferLength)
 
INT WINAPI EnumProtocolsW (LPINT ProtocolCount, LPVOID ProtocolBuffer, LPDWORD BufferLength)
 
INT WINAPI GetAddressByNameA (DWORD NameSpace, LPGUID ServiceType, LPSTR ServiceName, LPINT Protocols, DWORD Resolution, LPSERVICE_ASYNC_INFO ServiceAsyncInfo, LPVOID CsaddrBuffer, LPDWORD BufferLength, LPSTR AliasBuffer, LPDWORD AliasBufferLength)
 
INT WINAPI GetAddressByNameW (DWORD NameSpace, LPGUID ServiceType, LPWSTR ServiceName, LPINT Protocols, DWORD Resolution, LPSERVICE_ASYNC_INFO ServiceAsyncInfo, LPVOID CsaddrBuffer, LPDWORD BufferLength, LPWSTR AliasBuffer, LPDWORD AliasBufferLength)
 
INT WINAPI GetServiceA (DWORD NameSpace, LPGUID Guid, LPSTR ServiceName, DWORD Properties, LPVOID Buffer, LPDWORD BufferSize, LPSERVICE_ASYNC_INFO ServiceAsyncInfo)
 
INT WINAPI GetServiceW (DWORD NameSpace, LPGUID Guid, LPWSTR ServiceName, DWORD Properties, LPVOID Buffer, LPDWORD BufferSize, LPSERVICE_ASYNC_INFO ServiceAsyncInfo)
 
INT WINAPI GetTypeByNameA (LPSTR ServiceName, LPGUID ServiceType)
 
INT WINAPI GetTypeByNameW (LPWSTR ServiceName, LPGUID ServiceType)
 
INT WINAPI MigrateWinsockConfiguration (DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
 
INT WINAPI SetServiceA (DWORD NameSpace, DWORD Operation, DWORD Flags, LPSERVICE_INFOA ServiceInfo, LPSERVICE_ASYNC_INFO ServiceAsyncInfo, LPDWORD dwStatusFlags)
 
INT WINAPI SetServiceW (DWORD NameSpace, DWORD Operation, DWORD Flags, LPSERVICE_INFOW ServiceInfo, LPSERVICE_ASYNC_INFO ServiceAsyncInfo, LPDWORD dwStatusFlags)
 
int WINAPI WSARecvEx (SOCKET Sock, char *Buf, int Len, int *Flags)
 
int WINAPI dn_expand (unsigned char *MessagePtr, unsigned char *EndofMesOrig, unsigned char *CompDomNam, unsigned char *ExpandDomNam, int Length)
 
struct netent *WINAPI getnetbyname (const char *name)
 
UINT WINAPI inet_network (const char *cp)
 
SOCKET WINAPI rcmd (char **AHost, USHORT InPort, char *LocUser, char *RemUser, char *Cmd, int *Fd2p)
 
SOCKET WINAPI rexec (char **AHost, int InPort, char *User, char *Passwd, char *Cmd, int *Fd2p)
 
SOCKET WINAPI rresvport (int *port)
 
void WINAPI s_perror (const char *str)
 
int WINAPI sethostname (char *Name, int NameLen)
 
BOOL WINAPI DllMain (HINSTANCE InstDLL, DWORD Reason, LPVOID Reserved)
 
INT WINAPI GetNameByTypeA (LPGUID lpServiceType, LPSTR lpServiceName, DWORD dwNameLength)
 
INT WINAPI GetNameByTypeW (LPGUID lpServiceType, LPWSTR lpServiceName, DWORD dwNameLength)
 
int WINAPI WSPStartup (IN WORD wVersionRequested, OUT LPWSPDATA lpWSPData, IN LPWSAPROTOCOL_INFOW lpProtocolInfo, IN WSPUPCALLTABLE UpcallTable, OUT LPWSPPROC_TABLE lpProcTable)
 
INT WINAPI NPLoadNameSpaces (IN OUT LPDWORD lpdwVersion, IN OUT LPNS_ROUTINE nsrBuffer, IN OUT LPDWORD lpdwBufferLength)
 
VOID WINAPI StartWsdpService ()
 
VOID WINAPI StopWsdpService ()
 
VOID WINAPI SvchostPushServiceGlobals (PSVCHOST_GLOBAL_DATA lpGlobals)
 
VOID WINAPI ServiceMain (DWORD Unknown1, DWORD Unknown2)
 

Typedef Documentation

◆ LPFN_NSPAPI

typedef DWORD(* LPFN_NSPAPI) (VOID)

Definition at line 16 of file stubs.c.

◆ LPNS_ROUTINE

◆ NS_ROUTINE

◆ PNS_ROUTINE

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  InstDLL,
DWORD  Reason,
LPVOID  Reserved 
)

Definition at line 353 of file stubs.c.

356{
357 return TRUE;
358}
#define TRUE
Definition: types.h:120

◆ dn_expand()

int WINAPI dn_expand ( unsigned char MessagePtr,
unsigned char EndofMesOrig,
unsigned char CompDomNam,
unsigned char ExpandDomNam,
int  Length 
)

Definition at line 237 of file stubs.c.

242{
243 OutputDebugStringW(L"w32sock dn_expand stub called\n");
244
245 return SOCKET_ERROR;
246}
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50
#define SOCKET_ERROR
Definition: winsock.h:333

◆ EnumProtocolsA()

INT WINAPI EnumProtocolsA ( LPINT  ProtocolCount,
LPVOID  ProtocolBuffer,
LPDWORD  BufferLength 
)

Definition at line 30 of file stubs.c.

33{
34 OutputDebugStringW(L"w32sock EnumProtocolsA stub called\n");
35
36 return SOCKET_ERROR;
37}

◆ EnumProtocolsW()

INT WINAPI EnumProtocolsW ( LPINT  ProtocolCount,
LPVOID  ProtocolBuffer,
LPDWORD  BufferLength 
)

Definition at line 45 of file stubs.c.

48{
49 OutputDebugStringW(L"w32sock EnumProtocolsW stub called\n");
50
51 return SOCKET_ERROR;
52}

◆ GetAddressByNameA()

INT WINAPI GetAddressByNameA ( DWORD  NameSpace,
LPGUID  ServiceType,
LPSTR  ServiceName,
LPINT  Protocols,
DWORD  Resolution,
LPSERVICE_ASYNC_INFO  ServiceAsyncInfo,
LPVOID  CsaddrBuffer,
LPDWORD  BufferLength,
LPSTR  AliasBuffer,
LPDWORD  AliasBufferLength 
)

Definition at line 60 of file stubs.c.

70{
71 OutputDebugStringW(L"w32sock GetAddressByNameA stub called\n");
72
73 return SOCKET_ERROR;
74}

◆ GetAddressByNameW()

INT WINAPI GetAddressByNameW ( DWORD  NameSpace,
LPGUID  ServiceType,
LPWSTR  ServiceName,
LPINT  Protocols,
DWORD  Resolution,
LPSERVICE_ASYNC_INFO  ServiceAsyncInfo,
LPVOID  CsaddrBuffer,
LPDWORD  BufferLength,
LPWSTR  AliasBuffer,
LPDWORD  AliasBufferLength 
)

Definition at line 82 of file stubs.c.

92{
93 OutputDebugStringW(L"w32sock GetAddressByNameW stub called\n");
94
95 return SOCKET_ERROR;
96}

◆ GetNameByTypeA()

INT WINAPI GetNameByTypeA ( LPGUID  lpServiceType,
LPSTR  lpServiceName,
DWORD  dwNameLength 
)

Definition at line 366 of file stubs.c.

367{
368 OutputDebugStringW(L"w32sock GetNameByTypeA stub called\n");
369 return TRUE;
370}

◆ GetNameByTypeW()

INT WINAPI GetNameByTypeW ( LPGUID  lpServiceType,
LPWSTR  lpServiceName,
DWORD  dwNameLength 
)

Definition at line 378 of file stubs.c.

379{
380 OutputDebugStringW(L"w32sock GetNameByTypeW stub called\n");
381 return TRUE;
382}

◆ getnetbyname()

struct netent *WINAPI getnetbyname ( const char name)

Definition at line 254 of file stubs.c.

255{
256 OutputDebugStringW(L"w32sock getnetbyname stub called\n");
257
258 return NULL;
259}
#define NULL
Definition: types.h:112

◆ GetServiceA()

INT WINAPI GetServiceA ( DWORD  NameSpace,
LPGUID  Guid,
LPSTR  ServiceName,
DWORD  Properties,
LPVOID  Buffer,
LPDWORD  BufferSize,
LPSERVICE_ASYNC_INFO  ServiceAsyncInfo 
)

Definition at line 104 of file stubs.c.

111{
112 OutputDebugStringW(L"w32sock GetServiceA stub called\n");
113
114 return SOCKET_ERROR;
115}

◆ GetServiceW()

INT WINAPI GetServiceW ( DWORD  NameSpace,
LPGUID  Guid,
LPWSTR  ServiceName,
DWORD  Properties,
LPVOID  Buffer,
LPDWORD  BufferSize,
LPSERVICE_ASYNC_INFO  ServiceAsyncInfo 
)

Definition at line 123 of file stubs.c.

130{
131 OutputDebugStringW(L"w32sock GetServiceW stub called\n");
132
133 return SOCKET_ERROR;
134}

◆ GetTypeByNameA()

INT WINAPI GetTypeByNameA ( LPSTR  ServiceName,
LPGUID  ServiceType 
)

Definition at line 142 of file stubs.c.

144{
145 OutputDebugStringW(L"w32sock GetTypeByNameA stub called\n");
146
147 return SOCKET_ERROR;
148}

◆ GetTypeByNameW()

INT WINAPI GetTypeByNameW ( LPWSTR  ServiceName,
LPGUID  ServiceType 
)

Definition at line 156 of file stubs.c.

158{
159 OutputDebugStringW(L"w32sock GetTypeByNameW stub called\n");
160
161 return SOCKET_ERROR;
162}

◆ inet_network()

UINT WINAPI inet_network ( const char cp)

Definition at line 267 of file stubs.c.

268{
269 OutputDebugStringW(L"w32sock inet_network stub called\n");
270
271 return INADDR_NONE;
272}
#define INADDR_NONE
Definition: tcp.c:42

◆ MigrateWinsockConfiguration()

INT WINAPI MigrateWinsockConfiguration ( DWORD  Unknown1,
DWORD  Unknown2,
DWORD  Unknown3 
)

Definition at line 170 of file stubs.c.

173{
174 OutputDebugStringW(L"w32sock MigrateWinsockConfiguration stub called\n");
175
176 return SOCKET_ERROR;
177}

◆ NPLoadNameSpaces()

INT WINAPI NPLoadNameSpaces ( IN OUT LPDWORD  lpdwVersion,
IN OUT LPNS_ROUTINE  nsrBuffer,
IN OUT LPDWORD  lpdwBufferLength 
)

Definition at line 406 of file stubs.c.

411{
412 OutputDebugStringW(L"mswsock NPLoadNameSpaces stub called\n");
413
414 *lpdwVersion = 1;
415
416 return TRUE;
417}

◆ rcmd()

SOCKET WINAPI rcmd ( char **  AHost,
USHORT  InPort,
char LocUser,
char RemUser,
char Cmd,
int Fd2p 
)

Definition at line 280 of file stubs.c.

286{
287 OutputDebugStringW(L"w32sock rcmd stub called\n");
288
289 return INVALID_SOCKET;
290}
#define INVALID_SOCKET
Definition: winsock.h:332

◆ rexec()

SOCKET WINAPI rexec ( char **  AHost,
int  InPort,
char User,
char Passwd,
char Cmd,
int Fd2p 
)

Definition at line 298 of file stubs.c.

304{
305 OutputDebugStringW(L"w32sock rexec stub called\n");
306
307 return INVALID_SOCKET;
308}

◆ rresvport()

SOCKET WINAPI rresvport ( int port)

Definition at line 316 of file stubs.c.

317{
318 OutputDebugStringW(L"w32sock rresvport stub called\n");
319
320 return INVALID_SOCKET;
321}

◆ s_perror()

void WINAPI s_perror ( const char str)

Definition at line 329 of file stubs.c.

330{
331 OutputDebugStringW(L"w32sock s_perror stub called\n");
332}

◆ ServiceMain()

VOID WINAPI ServiceMain ( DWORD  Unknown1,
DWORD  Unknown2 
)

Definition at line 460 of file stubs.c.

461{
462 OutputDebugStringW(L"mswsock ServiceMain stub called\n");
463}

◆ sethostname()

int WINAPI sethostname ( char Name,
int  NameLen 
)

Definition at line 340 of file stubs.c.

341{
342 OutputDebugStringW(L"w32sock sethostname stub called\n");
343
344 return SOCKET_ERROR;
345}

◆ SetServiceA()

INT WINAPI SetServiceA ( DWORD  NameSpace,
DWORD  Operation,
DWORD  Flags,
LPSERVICE_INFOA  ServiceInfo,
LPSERVICE_ASYNC_INFO  ServiceAsyncInfo,
LPDWORD  dwStatusFlags 
)

Definition at line 185 of file stubs.c.

191{
192 OutputDebugStringW(L"w32sock SetServiceA stub called\n");
193
194 return SOCKET_ERROR;
195}

◆ SetServiceW()

INT WINAPI SetServiceW ( DWORD  NameSpace,
DWORD  Operation,
DWORD  Flags,
LPSERVICE_INFOW  ServiceInfo,
LPSERVICE_ASYNC_INFO  ServiceAsyncInfo,
LPDWORD  dwStatusFlags 
)

Definition at line 203 of file stubs.c.

209{
210 OutputDebugStringW(L"w32sock SetServiceW stub called\n");
211
212 return SOCKET_ERROR;
213}

◆ StartWsdpService()

VOID WINAPI StartWsdpService ( )

Definition at line 425 of file stubs.c.

426{
427 OutputDebugStringW(L"mswsock StartWsdpService stub called\n");
428}

◆ StopWsdpService()

VOID WINAPI StopWsdpService ( )

Definition at line 436 of file stubs.c.

437{
438 OutputDebugStringW(L"mswsock StopWsdpService stub called\n");
439}

◆ SvchostPushServiceGlobals()

VOID WINAPI SvchostPushServiceGlobals ( PSVCHOST_GLOBAL_DATA  lpGlobals)

Definition at line 449 of file stubs.c.

450{
451 OutputDebugStringW(L"mswsock SvchostPushServiceGlobals stub called\n");
452}

◆ WSARecvEx()

int WINAPI WSARecvEx ( SOCKET  Sock,
char Buf,
int  Len,
int Flags 
)

Definition at line 221 of file stubs.c.

225{
226 OutputDebugStringW(L"w32sock WSARecvEx stub called\n");
227
228 return SOCKET_ERROR;
229}

◆ WSPStartup()

int WINAPI WSPStartup ( IN WORD  wVersionRequested,
OUT LPWSPDATA  lpWSPData,
IN LPWSAPROTOCOL_INFOW  lpProtocolInfo,
IN WSPUPCALLTABLE  UpcallTable,
OUT LPWSPPROC_TABLE  lpProcTable 
)

Definition at line 389 of file stubs.c.

396{
397 return TRUE;
398}