xref: /reactos/dll/win32/wshirda/wshirda.c (revision c2c66aff)
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 */
16 DWORD DebugTraceLevel = MAX_TRACE;
17 
18 #endif /* DBG */
19 
20 BOOL
21 EXPORT
DllMain(HANDLE hInstDll,ULONG dwReason,PVOID Reserved)22 DllMain(HANDLE hInstDll,
23         ULONG dwReason,
24         PVOID Reserved)
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
WSHEnumProtocols(IN LPINT lpiProtocols OPTIONAL,IN LPWSTR lpTransportKeyName,IN OUT LPVOID lpProtocolBuffer,IN OUT LPDWORD lpdwBufferLength)49 WSHEnumProtocols(
50     IN      LPINT lpiProtocols  OPTIONAL,
51     IN      LPWSTR lpTransportKeyName,
52     IN OUT  LPVOID lpProtocolBuffer,
53     IN OUT  LPDWORD lpdwBufferLength)
54 {
55     UNIMPLEMENTED
56 
57     return 0;
58 }
59 
60 INT
61 WINAPI
WSHGetProviderGuid(IN LPWSTR ProviderName,OUT LPGUID ProviderGuid)62 WSHGetProviderGuid(
63     IN  LPWSTR ProviderName,
64     OUT LPGUID ProviderGuid)
65 {
66     UNIMPLEMENTED
67 
68     return 0;
69 }
70 
71 INT
72 WINAPI
WSHGetSockaddrType(IN PSOCKADDR Sockaddr,IN DWORD SockaddrLength,OUT PSOCKADDR_INFO SockaddrInfo)73 WSHGetSockaddrType(
74     IN  PSOCKADDR Sockaddr,
75     IN  DWORD SockaddrLength,
76     OUT PSOCKADDR_INFO SockaddrInfo)
77 {
78     UNIMPLEMENTED
79 
80     return 0;
81 }
82 
83 INT
84 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)85 WSHGetSocketInformation(
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 {
95     UNIMPLEMENTED
96 
97     return 0;
98 }
99 
100 INT
101 WINAPI
WSHGetWSAProtocolInfo(IN LPWSTR ProviderName,OUT LPWSAPROTOCOL_INFOW * ProtocolInfo,OUT LPDWORD ProtocolInfoEntries)102 WSHGetWSAProtocolInfo(
103     IN  LPWSTR ProviderName,
104     OUT LPWSAPROTOCOL_INFOW *ProtocolInfo,
105     OUT LPDWORD ProtocolInfoEntries)
106 {
107     UNIMPLEMENTED
108 
109     return 0;
110 }
111 
112 INT
113 WINAPI
WSHGetWildcardSockaddr(IN PVOID HelperDllSocketContext,OUT PSOCKADDR Sockaddr,OUT PINT SockaddrLength)114 WSHGetWildcardSockaddr(
115     IN  PVOID HelperDllSocketContext,
116     OUT PSOCKADDR Sockaddr,
117     OUT PINT SockaddrLength)
118 {
119     UNIMPLEMENTED
120 
121     return 0;
122 }
123 
124 DWORD
125 WINAPI
WSHGetWinsockMapping(OUT PWINSOCK_MAPPING Mapping,IN DWORD MappingLength)126 WSHGetWinsockMapping(
127     OUT PWINSOCK_MAPPING Mapping,
128     IN  DWORD MappingLength)
129 {
130     UNIMPLEMENTED
131 
132     return 0;
133 }
134 
135 INT
136 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)137 WSHIoctl(
138     IN  PVOID HelperDllSocketContext,
139     IN  SOCKET SocketHandle,
140     IN  HANDLE TdiAddressObjectHandle,
141     IN  HANDLE TdiConnectionObjectHandle,
142     IN  DWORD IoControlCode,
143     IN  LPVOID InputBuffer,
144     IN  DWORD InputBufferLength,
145     IN  LPVOID OutputBuffer,
146     IN  DWORD OutputBufferLength,
147     OUT LPDWORD NumberOfBytesReturned,
148     IN  LPWSAOVERLAPPED Overlapped,
149     IN  LPWSAOVERLAPPED_COMPLETION_ROUTINE CompletionRoutine,
150     OUT LPBOOL NeedsCompletion)
151 {
152     UNIMPLEMENTED
153 
154     return 0;
155 }
156 
157 INT
158 WINAPI
WSHNotify(IN PVOID HelperDllSocketContext,IN SOCKET SocketHandle,IN HANDLE TdiAddressObjectHandle,IN HANDLE TdiConnectionObjectHandle,IN DWORD NotifyEvent)159 WSHNotify(
160     IN  PVOID HelperDllSocketContext,
161     IN  SOCKET SocketHandle,
162     IN  HANDLE TdiAddressObjectHandle,
163     IN  HANDLE TdiConnectionObjectHandle,
164     IN  DWORD NotifyEvent)
165 {
166     UNIMPLEMENTED
167 
168     return 0;
169 }
170 
171 INT
172 WINAPI
WSHOpenSocket(IN OUT PINT AddressFamily,IN OUT PINT SocketType,IN OUT PINT Protocol,OUT PUNICODE_STRING TransportDeviceName,OUT PVOID HelperDllSocketContext,OUT PDWORD NotificationEvents)173 WSHOpenSocket(
174     IN OUT  PINT AddressFamily,
175     IN OUT  PINT SocketType,
176     IN OUT  PINT Protocol,
177     OUT     PUNICODE_STRING TransportDeviceName,
178     OUT     PVOID HelperDllSocketContext,
179     OUT     PDWORD NotificationEvents)
180 {
181     UNIMPLEMENTED
182 
183     return 0;
184 }
185 
186 INT
187 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)188 WSHSetSocketInformation(
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 {
198     UNIMPLEMENTED
199 
200     return 0;
201 }
202 
203 /* EOF */
204