ReactOS 0.4.16-dev-237-gd6eebaa
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
20BOOL
22DllMain(HANDLE hInstDll,
25{
26 WSH_DbgPrint(MIN_TRACE, ("DllMain of wshirda.dll\n"));
27
28 switch (dwReason) {
30 /* Don't need thread attach notifications
31 so disable them to improve performance */
33 break;
34
36 break;
37
39 break;
40
42 break;
43 }
44 return TRUE;
45}
46
47INT
50 IN LPINT lpiProtocols OPTIONAL,
51 IN LPWSTR lpTransportKeyName,
52 IN OUT LPVOID lpProtocolBuffer,
54{
56
57 return 0;
58}
59
60INT
63 IN LPWSTR ProviderName,
64 OUT LPGUID ProviderGuid)
65{
67
68 return 0;
69}
70
71INT
74 IN PSOCKADDR Sockaddr,
75 IN DWORD SockaddrLength,
76 OUT PSOCKADDR_INFO SockaddrInfo)
77{
79
80 return 0;
81}
82
83INT
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
100INT
101WINAPI
103 IN LPWSTR ProviderName,
104 OUT LPWSAPROTOCOL_INFOW *ProtocolInfo,
105 OUT LPDWORD ProtocolInfoEntries)
106{
108
109 return 0;
110}
111
112INT
113WINAPI
115 IN PVOID HelperDllSocketContext,
116 OUT PSOCKADDR Sockaddr,
117 OUT PINT SockaddrLength)
118{
120
121 return 0;
122}
123
124DWORD
125WINAPI
128 IN DWORD MappingLength)
129{
131
132 return 0;
133}
134
135INT
136WINAPI
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
157INT
158WINAPI
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
171INT
172WINAPI
177 OUT PUNICODE_STRING TransportDeviceName,
178 OUT PVOID HelperDllSocketContext,
179 OUT PDWORD NotificationEvents)
180{
182
183 return 0;
184}
185
186INT
187WINAPI
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 */
#define MIN_TRACE
Definition: debug.h:14
#define MAX_TRACE
Definition: debug.h:16
DWORD dwReason
Definition: misc.cpp:141
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15
#define TRUE
Definition: types.h:120
#define DLL_THREAD_DETACH
Definition: compat.h:133
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define DLL_THREAD_ATTACH
Definition: compat.h:132
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define WSH_DbgPrint(_t_, _x_)
Definition: debug.h:44
ULONG DebugTraceLevel
Definition: ndis.c:13
static PVOID Mapping[EMS_PHYSICAL_PAGES]
Definition: emsdrv.c:41
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
IN PCO_ADDRESS_FAMILY AddressFamily
Definition: ndis.h:1906
DWORD * PDWORD
Definition: pedump.c:68
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
uint32_t * LPDWORD
Definition: typedefs.h:59
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
char * PCHAR
Definition: typedefs.h:51
_In_ WDFREQUEST _In_ size_t _In_ size_t _In_ ULONG IoControlCode
Definition: wdfio.h:325
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:320
_In_ WDFREQUEST _In_ size_t _In_ size_t InputBufferLength
Definition: wdfio.h:322
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:863
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:953
_In_ WDFREQUEST _In_opt_ PFN_WDF_REQUEST_COMPLETION_ROUTINE CompletionRoutine
Definition: wdfrequest.h:895
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
BOOL * LPBOOL
Definition: windef.h:162
int * LPINT
Definition: windef.h:178
int * PINT
Definition: windef.h:177
#define WINAPI
Definition: msvc.h:6
_In_ _In_opt_ _Out_writes_bytes_to_opt_ lpdwBufferLength _Inout_ LPDWORD lpdwBufferLength
Definition: winhttp.h:675
void(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)(IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)
Definition: winsock2.h:722
UINT_PTR SOCKET
Definition: winsock.h:47
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:56
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
INT WINAPI WSHGetWSAProtocolInfo(IN LPWSTR ProviderName, OUT LPWSAPROTOCOL_INFOW *ProtocolInfo, OUT LPDWORD ProtocolInfoEntries)
Definition: wshirda.c:102
INT WINAPI WSHGetWildcardSockaddr(IN PVOID HelperDllSocketContext, OUT PSOCKADDR Sockaddr, OUT PINT SockaddrLength)
Definition: wshirda.c:114
INT WINAPI WSHGetProviderGuid(IN LPWSTR ProviderName, OUT LPGUID ProviderGuid)
Definition: wshirda.c:62
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
BOOL EXPORT DllMain(HANDLE hInstDll, ULONG dwReason, PVOID Reserved)
Definition: wshirda.c:22
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
INT WINAPI WSHEnumProtocols(IN LPINT lpiProtocols OPTIONAL, IN LPWSTR lpTransportKeyName, IN OUT LPVOID lpProtocolBuffer, IN OUT LPDWORD lpdwBufferLength)
Definition: wshirda.c:49
DWORD WINAPI WSHGetWinsockMapping(OUT PWINSOCK_MAPPING Mapping, IN DWORD MappingLength)
Definition: wshirda.c:126
INT WINAPI WSHGetSockaddrType(IN PSOCKADDR Sockaddr, IN DWORD SockaddrLength, OUT PSOCKADDR_INFO SockaddrInfo)
Definition: wshirda.c:73
INT WINAPI WSHNotify(IN PVOID HelperDllSocketContext, IN SOCKET SocketHandle, IN HANDLE TdiAddressObjectHandle, IN HANDLE TdiConnectionObjectHandle, IN DWORD NotifyEvent)
Definition: wshirda.c:159
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
_In_ USHORT SocketType
Definition: wsk.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184