ReactOS  0.4.15-dev-3718-g2318f7f
wshirda.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Winsock 2 IRDA Helper DLL
4  * FILE: wshirda.c
5  * PURPOSE: DLL entry
6  * PROGRAMMERS: Robert D. Dickenson (robertdickenson@users.sourceforge.net)
7  * REVISIONS:
8  * RDD 18/06-2002 Created
9  */
10 #include "wshirda.h"
11 #include "debug.h"
12 
13 #if DBG
14 
15 /* See debug.h for debug/trace constants */
17 
18 #endif /* DBG */
19 
20 BOOL
21 EXPORT
22 DllMain(HANDLE hInstDll,
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 }
46 
47 INT
48 WINAPI
50  IN LPINT lpiProtocols OPTIONAL,
51  IN LPWSTR lpTransportKeyName,
52  IN OUT LPVOID lpProtocolBuffer,
54 {
56 
57  return 0;
58 }
59 
60 INT
61 WINAPI
63  IN LPWSTR ProviderName,
64  OUT LPGUID ProviderGuid)
65 {
67 
68  return 0;
69 }
70 
71 INT
72 WINAPI
74  IN PSOCKADDR Sockaddr,
75  IN DWORD SockaddrLength,
76  OUT PSOCKADDR_INFO SockaddrInfo)
77 {
79 
80  return 0;
81 }
82 
83 INT
84 WINAPI
86  IN PVOID HelperDllSocketContext,
87  IN SOCKET SocketHandle,
88  IN HANDLE TdiAddressObjectHandle,
89  IN HANDLE TdiConnectionObjectHandle,
90  IN INT Level,
91  IN INT OptionName,
92  OUT PCHAR OptionValue,
93  OUT LPINT OptionLength)
94 {
96 
97  return 0;
98 }
99 
100 INT
101 WINAPI
103  IN LPWSTR ProviderName,
104  OUT LPWSAPROTOCOL_INFOW *ProtocolInfo,
105  OUT LPDWORD ProtocolInfoEntries)
106 {
108 
109  return 0;
110 }
111 
112 INT
113 WINAPI
115  IN PVOID HelperDllSocketContext,
116  OUT PSOCKADDR Sockaddr,
117  OUT PINT SockaddrLength)
118 {
120 
121  return 0;
122 }
123 
124 DWORD
125 WINAPI
128  IN DWORD MappingLength)
129 {
131 
132  return 0;
133 }
134 
135 INT
136 WINAPI
138  IN PVOID HelperDllSocketContext,
139  IN SOCKET SocketHandle,
140  IN HANDLE TdiAddressObjectHandle,
141  IN HANDLE TdiConnectionObjectHandle,
147  OUT LPDWORD NumberOfBytesReturned,
148  IN LPWSAOVERLAPPED Overlapped,
150  OUT LPBOOL NeedsCompletion)
151 {
153 
154  return 0;
155 }
156 
157 INT
158 WINAPI
160  IN PVOID HelperDllSocketContext,
161  IN SOCKET SocketHandle,
162  IN HANDLE TdiAddressObjectHandle,
163  IN HANDLE TdiConnectionObjectHandle,
164  IN DWORD NotifyEvent)
165 {
167 
168  return 0;
169 }
170 
171 INT
172 WINAPI
177  OUT PUNICODE_STRING TransportDeviceName,
178  OUT PVOID HelperDllSocketContext,
179  OUT PDWORD NotificationEvents)
180 {
182 
183  return 0;
184 }
185 
186 INT
187 WINAPI
189  IN PVOID HelperDllSocketContext,
190  IN SOCKET SocketHandle,
191  IN HANDLE TdiAddressObjectHandle,
192  IN HANDLE TdiConnectionObjectHandle,
193  IN INT Level,
194  IN INT OptionName,
195  IN PCHAR OptionValue,
196  IN INT OptionLength)
197 {
199 
200  return 0;
201 }
202 
203 /* EOF */
signed char * PCHAR
Definition: retypes.h:7
#define IN
Definition: typedefs.h:39
IN PCO_ADDRESS_FAMILY AddressFamily
Definition: ndis.h:1906
INT WINAPI WSHGetWildcardSockaddr(IN PVOID HelperDllSocketContext, OUT PSOCKADDR Sockaddr, OUT PINT SockaddrLength)
Definition: wshirda.c:114
#define TRUE
Definition: types.h:120
#define DLL_THREAD_ATTACH
Definition: compat.h:132
static PVOID Mapping[EMS_PHYSICAL_PAGES]
Definition: emsdrv.c:41
INT WINAPI WSHNotify(IN PVOID HelperDllSocketContext, IN SOCKET SocketHandle, IN HANDLE TdiAddressObjectHandle, IN HANDLE TdiConnectionObjectHandle, IN DWORD NotifyEvent)
Definition: wshirda.c:159
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:55
#define WSH_DbgPrint(_t_, _x_)
Definition: debug.h:44
_In_ WDFREQUEST _In_ size_t _In_ size_t InputBufferLength
Definition: wdfio.h:318
int32_t INT
Definition: typedefs.h:58
#define DLL_THREAD_DETACH
Definition: compat.h:133
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:318
DWORD dwReason
Definition: misc.cpp:154
DWORD WINAPI WSHGetWinsockMapping(OUT PWINSOCK_MAPPING Mapping, IN DWORD MappingLength)
Definition: wshirda.c:126
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: wshirda.c:137
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: wshirda.c:173
unsigned int BOOL
Definition: ntddk_ex.h:94
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
INT WINAPI WSHGetWSAProtocolInfo(IN LPWSTR ProviderName, OUT LPWSAPROTOCOL_INFOW *ProtocolInfo, OUT LPDWORD ProtocolInfoEntries)
Definition: wshirda.c:102
#define DLL_PROCESS_DETACH
Definition: compat.h:130
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:859
ULONG DebugTraceLevel
Definition: ndis.c:13
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:949
int * PINT
Definition: windef.h:177
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: wshirda.c:85
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
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: wshirda.c:188
_In_ WDFREQUEST _In_ size_t _In_ size_t _In_ ULONG IoControlCode
Definition: wdfio.h:318
_In_ USHORT SocketType
Definition: wsk.h:182
BOOL * LPBOOL
Definition: windef.h:162
#define MAX_TRACE
Definition: debug.h:16
INT WINAPI WSHGetSockaddrType(IN PSOCKADDR Sockaddr, IN DWORD SockaddrLength, OUT PSOCKADDR_INFO SockaddrInfo)
Definition: wshirda.c:73
INT WINAPI WSHEnumProtocols(IN LPINT lpiProtocols OPTIONAL, IN LPWSTR lpTransportKeyName, IN OUT LPVOID lpProtocolBuffer, IN OUT LPDWORD lpdwBufferLength)
Definition: wshirda.c:49
_In_ WDFREQUEST _In_opt_ PFN_WDF_REQUEST_COMPLETION_ROUTINE CompletionRoutine
Definition: wdfrequest.h:893
DWORD * PDWORD
Definition: pedump.c:68
BOOL EXPORT DllMain(HANDLE hInstDll, ULONG dwReason, PVOID Reserved)
Definition: wshirda.c:22
#define OUT
Definition: typedefs.h:40
void(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)(IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)
Definition: winsock2.h:722
uint32_t * LPDWORD
Definition: typedefs.h:59
unsigned int ULONG
Definition: retypes.h:1
INT WINAPI WSHGetProviderGuid(IN LPWSTR ProviderName, OUT LPGUID ProviderGuid)
Definition: wshirda.c:62
#define UNIMPLEMENTED
Definition: debug.h:115
#define MIN_TRACE
Definition: debug.h:14
UINT_PTR SOCKET
Definition: winsock.h:47
_In_ _In_opt_ _Out_writes_bytes_to_opt_ lpdwBufferLength _Inout_ LPDWORD lpdwBufferLength
Definition: winhttp.h:675
WCHAR * LPWSTR
Definition: xmlstorage.h:184
int * LPINT
Definition: windef.h:178
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68