ReactOS  0.4.14-dev-1034-g1e60116
wshirda.c File Reference
#include "wshirda.h"
#include "debug.h"
Include dependency graph for wshirda.c:

Go to the source code of this file.

Functions

BOOL EXPORT DllMain (HANDLE hInstDll, ULONG dwReason, PVOID Reserved)
 
INT WINAPI WSHEnumProtocols (IN LPINT lpiProtocols OPTIONAL, IN LPWSTR lpTransportKeyName, IN OUT LPVOID lpProtocolBuffer, IN OUT LPDWORD lpdwBufferLength)
 
INT WINAPI WSHGetProviderGuid (IN LPWSTR ProviderName, OUT LPGUID ProviderGuid)
 
INT WINAPI WSHGetSockaddrType (IN PSOCKADDR Sockaddr, IN DWORD SockaddrLength, OUT PSOCKADDR_INFO SockaddrInfo)
 
INT WINAPI WSHGetSocketInformation (IN PVOID HelperDllSocketContext, IN SOCKET SocketHandle, IN HANDLE TdiAddressObjectHandle, IN HANDLE TdiConnectionObjectHandle, IN INT Level, IN INT OptionName, OUT PCHAR OptionValue, OUT LPINT OptionLength)
 
INT WINAPI WSHGetWSAProtocolInfo (IN LPWSTR ProviderName, OUT LPWSAPROTOCOL_INFOW *ProtocolInfo, OUT LPDWORD ProtocolInfoEntries)
 
INT WINAPI WSHGetWildcardSockaddr (IN PVOID HelperDllSocketContext, OUT PSOCKADDR Sockaddr, OUT PINT SockaddrLength)
 
DWORD WINAPI WSHGetWinsockMapping (OUT PWINSOCK_MAPPING Mapping, IN DWORD MappingLength)
 
INT WINAPI WSHIoctl (IN PVOID HelperDllSocketContext, IN SOCKET SocketHandle, IN HANDLE TdiAddressObjectHandle, IN HANDLE TdiConnectionObjectHandle, IN DWORD IoControlCode, IN LPVOID InputBuffer, IN DWORD InputBufferLength, IN LPVOID OutputBuffer, IN DWORD OutputBufferLength, OUT LPDWORD NumberOfBytesReturned, IN LPWSAOVERLAPPED Overlapped, IN LPWSAOVERLAPPED_COMPLETION_ROUTINE CompletionRoutine, OUT LPBOOL NeedsCompletion)
 
INT WINAPI WSHNotify (IN PVOID HelperDllSocketContext, IN SOCKET SocketHandle, IN HANDLE TdiAddressObjectHandle, IN HANDLE TdiConnectionObjectHandle, IN DWORD NotifyEvent)
 
INT WINAPI WSHOpenSocket (IN OUT PINT AddressFamily, IN OUT PINT SocketType, IN OUT PINT Protocol, OUT PUNICODE_STRING TransportDeviceName, OUT PVOID HelperDllSocketContext, OUT PDWORD NotificationEvents)
 
INT WINAPI WSHSetSocketInformation (IN PVOID HelperDllSocketContext, IN SOCKET SocketHandle, IN HANDLE TdiAddressObjectHandle, IN HANDLE TdiConnectionObjectHandle, IN INT Level, IN INT OptionName, IN PCHAR OptionValue, IN INT OptionLength)
 

Function Documentation

◆ DllMain()

BOOL EXPORT DllMain ( HANDLE  hInstDll,
ULONG  dwReason,
PVOID  Reserved 
)

Definition at line 22 of file wshirda.c.

25 {
26  WSH_DbgPrint(MIN_TRACE, ("DllMain of wshirda.dll\n"));
27 
28  switch (dwReason) {
29  case DLL_PROCESS_ATTACH:
30  /* Don't need thread attach notifications
31  so disable them to improve performance */
32  DisableThreadLibraryCalls(hInstDll);
33  break;
34 
35  case DLL_THREAD_ATTACH:
36  break;
37 
38  case DLL_THREAD_DETACH:
39  break;
40 
41  case DLL_PROCESS_DETACH:
42  break;
43  }
44  return TRUE;
45 }
#define TRUE
Definition: types.h:120
#define DLL_THREAD_ATTACH
Definition: compat.h:121
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
#define WSH_DbgPrint(_t_, _x_)
Definition: debug.h:44
#define DLL_THREAD_DETACH
Definition: compat.h:122
DWORD dwReason
Definition: misc.cpp:154
#define DLL_PROCESS_DETACH
Definition: compat.h:119
#define MIN_TRACE
Definition: debug.h:14

◆ WSHEnumProtocols()

INT WINAPI WSHEnumProtocols ( IN LPINT lpiProtocols  OPTIONAL,
IN LPWSTR  lpTransportKeyName,
IN OUT LPVOID  lpProtocolBuffer,
IN OUT LPDWORD  lpdwBufferLength 
)

Definition at line 49 of file wshirda.c.

54 {
56 
57  return 0;
58 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHGetProviderGuid()

INT WINAPI WSHGetProviderGuid ( IN LPWSTR  ProviderName,
OUT LPGUID  ProviderGuid 
)

Definition at line 62 of file wshirda.c.

65 {
67 
68  return 0;
69 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHGetSockaddrType()

INT WINAPI WSHGetSockaddrType ( IN PSOCKADDR  Sockaddr,
IN DWORD  SockaddrLength,
OUT PSOCKADDR_INFO  SockaddrInfo 
)

Definition at line 73 of file wshirda.c.

77 {
79 
80  return 0;
81 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHGetSocketInformation()

INT WINAPI WSHGetSocketInformation ( IN PVOID  HelperDllSocketContext,
IN SOCKET  SocketHandle,
IN HANDLE  TdiAddressObjectHandle,
IN HANDLE  TdiConnectionObjectHandle,
IN INT  Level,
IN INT  OptionName,
OUT PCHAR  OptionValue,
OUT LPINT  OptionLength 
)

Definition at line 85 of file wshirda.c.

94 {
96 
97  return 0;
98 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHGetWildcardSockaddr()

INT WINAPI WSHGetWildcardSockaddr ( IN PVOID  HelperDllSocketContext,
OUT PSOCKADDR  Sockaddr,
OUT PINT  SockaddrLength 
)

Definition at line 114 of file wshirda.c.

118 {
120 
121  return 0;
122 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHGetWinsockMapping()

DWORD WINAPI WSHGetWinsockMapping ( OUT PWINSOCK_MAPPING  Mapping,
IN DWORD  MappingLength 
)

Definition at line 126 of file wshirda.c.

129 {
131 
132  return 0;
133 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHGetWSAProtocolInfo()

INT WINAPI WSHGetWSAProtocolInfo ( IN LPWSTR  ProviderName,
OUT LPWSAPROTOCOL_INFOW ProtocolInfo,
OUT LPDWORD  ProtocolInfoEntries 
)

Definition at line 102 of file wshirda.c.

106 {
108 
109  return 0;
110 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHIoctl()

INT WINAPI WSHIoctl ( IN PVOID  HelperDllSocketContext,
IN SOCKET  SocketHandle,
IN HANDLE  TdiAddressObjectHandle,
IN HANDLE  TdiConnectionObjectHandle,
IN DWORD  IoControlCode,
IN LPVOID  InputBuffer,
IN DWORD  InputBufferLength,
IN LPVOID  OutputBuffer,
IN DWORD  OutputBufferLength,
OUT LPDWORD  NumberOfBytesReturned,
IN LPWSAOVERLAPPED  Overlapped,
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE  CompletionRoutine,
OUT LPBOOL  NeedsCompletion 
)

Definition at line 137 of file wshirda.c.

151 {
153 
154  return 0;
155 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHNotify()

INT WINAPI WSHNotify ( IN PVOID  HelperDllSocketContext,
IN SOCKET  SocketHandle,
IN HANDLE  TdiAddressObjectHandle,
IN HANDLE  TdiConnectionObjectHandle,
IN DWORD  NotifyEvent 
)

Definition at line 159 of file wshirda.c.

165 {
167 
168  return 0;
169 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHOpenSocket()

INT WINAPI WSHOpenSocket ( IN OUT PINT  AddressFamily,
IN OUT PINT  SocketType,
IN OUT PINT  Protocol,
OUT PUNICODE_STRING  TransportDeviceName,
OUT PVOID  HelperDllSocketContext,
OUT PDWORD  NotificationEvents 
)

Definition at line 173 of file wshirda.c.

180 {
182 
183  return 0;
184 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ WSHSetSocketInformation()

INT WINAPI WSHSetSocketInformation ( IN PVOID  HelperDllSocketContext,
IN SOCKET  SocketHandle,
IN HANDLE  TdiAddressObjectHandle,
IN HANDLE  TdiConnectionObjectHandle,
IN INT  Level,
IN INT  OptionName,
IN PCHAR  OptionValue,
IN INT  OptionLength 
)

Definition at line 188 of file wshirda.c.

197 {
199 
200  return 0;
201 }
#define UNIMPLEMENTED
Definition: debug.h:114