ReactOS  0.4.14-dev-315-gbb6fece
stubs.c File Reference
#include "precomp.h"
#include <windef.h>
#include <ws2spi.h>
#include <nspapi.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 ()
 
DWORD WINAPI SvchostPushServiceGlobals (DWORD Value)
 
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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define TRUE
Definition: types.h:120
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define TRUE
Definition: types.h:120
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define TRUE
Definition: types.h:120
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define INVALID_SOCKET
Definition: winsock.h:332
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define INVALID_SOCKET
Definition: winsock.h:332
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define INVALID_SOCKET
Definition: winsock.h:332
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ StartWsdpService()

VOID WINAPI StartWsdpService ( )

Definition at line 425 of file stubs.c.

426 {
427  OutputDebugStringW(L"mswsock StartWsdpService stub called\n");
428 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ StopWsdpService()

VOID WINAPI StopWsdpService ( )

Definition at line 436 of file stubs.c.

437 {
438  OutputDebugStringW(L"mswsock StopWsdpService stub called\n");
439 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ SvchostPushServiceGlobals()

DWORD WINAPI SvchostPushServiceGlobals ( DWORD  Value)

Definition at line 447 of file stubs.c.

448 {
449  OutputDebugStringW(L"mswsock SvchostPushServiceGlobals stub called\n");
450 
451  return 0;
452 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define SOCKET_ERROR
Definition: winsock.h:333
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250

◆ 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 }
#define TRUE
Definition: types.h:120