ReactOS  0.4.15-dev-1384-g878186b
stubs.c File Reference
#include "precomp.h"
#include <windef.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 (SVCHOST_GLOBALS *lpGlobals)
 
VOID WINAPI ServiceMain (DWORD Unknown1, DWORD Unknown2)
 

Typedef Documentation

◆ LPFN_NSPAPI

typedef DWORD(* LPFN_NSPAPI) (VOID)

Definition at line 17 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 354 of file stubs.c.

357 {
358  return TRUE;
359 }
#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 238 of file stubs.c.

243 {
244  OutputDebugStringW(L"w32sock dn_expand stub called\n");
245 
246  return SOCKET_ERROR;
247 }
#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 31 of file stubs.c.

34 {
35  OutputDebugStringW(L"w32sock EnumProtocolsA stub called\n");
36 
37  return SOCKET_ERROR;
38 }
#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 46 of file stubs.c.

49 {
50  OutputDebugStringW(L"w32sock EnumProtocolsW stub called\n");
51 
52  return SOCKET_ERROR;
53 }
#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 61 of file stubs.c.

71 {
72  OutputDebugStringW(L"w32sock GetAddressByNameA stub called\n");
73 
74  return SOCKET_ERROR;
75 }
#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 83 of file stubs.c.

93 {
94  OutputDebugStringW(L"w32sock GetAddressByNameW stub called\n");
95 
96  return SOCKET_ERROR;
97 }
#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 367 of file stubs.c.

368 {
369  OutputDebugStringW(L"w32sock GetNameByTypeA stub called\n");
370  return TRUE;
371 }
#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 379 of file stubs.c.

380 {
381  OutputDebugStringW(L"w32sock GetNameByTypeW stub called\n");
382  return TRUE;
383 }
#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 255 of file stubs.c.

256 {
257  OutputDebugStringW(L"w32sock getnetbyname stub called\n");
258 
259  return NULL;
260 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#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 105 of file stubs.c.

112 {
113  OutputDebugStringW(L"w32sock GetServiceA stub called\n");
114 
115  return SOCKET_ERROR;
116 }
#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 124 of file stubs.c.

131 {
132  OutputDebugStringW(L"w32sock GetServiceW stub called\n");
133 
134  return SOCKET_ERROR;
135 }
#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 143 of file stubs.c.

145 {
146  OutputDebugStringW(L"w32sock GetTypeByNameA stub called\n");
147 
148  return SOCKET_ERROR;
149 }
#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 157 of file stubs.c.

159 {
160  OutputDebugStringW(L"w32sock GetTypeByNameW stub called\n");
161 
162  return SOCKET_ERROR;
163 }
#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 268 of file stubs.c.

269 {
270  OutputDebugStringW(L"w32sock inet_network stub called\n");
271 
272  return INADDR_NONE;
273 }
#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 171 of file stubs.c.

174 {
175  OutputDebugStringW(L"w32sock MigrateWinsockConfiguration stub called\n");
176 
177  return SOCKET_ERROR;
178 }
#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 407 of file stubs.c.

412 {
413  OutputDebugStringW(L"mswsock NPLoadNameSpaces stub called\n");
414 
415  *lpdwVersion = 1;
416 
417  return TRUE;
418 }
#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 281 of file stubs.c.

287 {
288  OutputDebugStringW(L"w32sock rcmd stub called\n");
289 
290  return INVALID_SOCKET;
291 }
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 299 of file stubs.c.

305 {
306  OutputDebugStringW(L"w32sock rexec stub called\n");
307 
308  return INVALID_SOCKET;
309 }
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 317 of file stubs.c.

318 {
319  OutputDebugStringW(L"w32sock rresvport stub called\n");
320 
321  return INVALID_SOCKET;
322 }
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 330 of file stubs.c.

331 {
332  OutputDebugStringW(L"w32sock s_perror stub called\n");
333 }
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 461 of file stubs.c.

462 {
463  OutputDebugStringW(L"mswsock ServiceMain stub called\n");
464 }
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 341 of file stubs.c.

342 {
343  OutputDebugStringW(L"w32sock sethostname stub called\n");
344 
345  return SOCKET_ERROR;
346 }
#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 186 of file stubs.c.

192 {
193  OutputDebugStringW(L"w32sock SetServiceA stub called\n");
194 
195  return SOCKET_ERROR;
196 }
#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 204 of file stubs.c.

210 {
211  OutputDebugStringW(L"w32sock SetServiceW stub called\n");
212 
213  return SOCKET_ERROR;
214 }
#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 426 of file stubs.c.

427 {
428  OutputDebugStringW(L"mswsock StartWsdpService stub called\n");
429 }
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 437 of file stubs.c.

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

◆ SvchostPushServiceGlobals()

VOID WINAPI SvchostPushServiceGlobals ( SVCHOST_GLOBALS lpGlobals)

Definition at line 450 of file stubs.c.

451 {
452  OutputDebugStringW(L"mswsock SvchostPushServiceGlobals stub called\n");
453 }
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 222 of file stubs.c.

226 {
227  OutputDebugStringW(L"w32sock WSARecvEx stub called\n");
228 
229  return SOCKET_ERROR;
230 }
#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 390 of file stubs.c.

397 {
398  return TRUE;
399 }
#define TRUE
Definition: types.h:120