Completed Italian language support.
[wine] / dlls / rasapi32 / rasapi.c
1 /*
2  * RASAPI32
3  *
4  * Copyright 1998,2001 Marcus Meissner
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include <stdarg.h>
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "ras.h"
26 #include "wine/debug.h"
27
28 WINE_DEFAULT_DEBUG_CHANNEL(ras);
29
30 /**************************************************************************
31  *                 RasEnumConnectionsA                  [RASAPI32.544]
32  */
33 DWORD WINAPI RasEnumConnectionsA( LPRASCONNA rca, LPDWORD lpcb, LPDWORD lpcConnections) {
34         /* Remote Access Service stuff is done by underlying OS anyway */
35         FIXME("(%p,%p,%p),stub!\n",rca,lpcb,lpcConnections);
36         FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
37         *lpcConnections = 0; /* no RAS connections available */
38
39         return 0;
40 }
41
42 /**************************************************************************
43  *                 RasEnumConnectionsW                  [RASAPI32.545]
44  */
45 DWORD WINAPI RasEnumConnectionsW( LPRASCONNW rcw, LPDWORD lpcb, LPDWORD lpcConnections) {
46         /* Remote Access Service stuff is done by underlying OS anyway */
47         FIXME("(%p,%p,%p),stub!\n",rcw,lpcb,lpcConnections);
48         FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
49         *lpcConnections = 0; /* no RAS connections available */
50
51         return 0;
52 }
53
54 /**************************************************************************
55  *                 RasEnumEntriesA                              [RASAPI32.546]
56  */
57 DWORD WINAPI RasEnumEntriesA( LPCSTR Reserved, LPCSTR lpszPhoneBook,
58         LPRASENTRYNAMEA lpRasEntryName,
59         LPDWORD lpcb, LPDWORD lpcEntries)
60 {
61         FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved,debugstr_a(lpszPhoneBook),
62             lpRasEntryName,lpcb,lpcEntries);
63         *lpcEntries = 0;
64         return 0;
65 }
66
67 /**************************************************************************
68  *                 RasEnumEntriesW                              [RASAPI32.547]
69  */
70 DWORD WINAPI RasEnumEntriesW( LPCWSTR Reserved, LPCWSTR lpszPhoneBook,
71         LPRASENTRYNAMEW lpRasEntryName,
72         LPDWORD lpcb, LPDWORD lpcEntries)
73 {
74         FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved,debugstr_w(lpszPhoneBook),
75             lpRasEntryName,lpcb,lpcEntries);
76         *lpcEntries = 0;
77         return 0;
78 }
79
80
81 /**************************************************************************
82  *                 RasGetEntryDialParamsA                       [RASAPI32.550]
83  */
84 DWORD WINAPI RasGetEntryDialParamsA(
85         LPCSTR lpszPhoneBook, LPRASDIALPARAMSA lpRasDialParams,
86         LPBOOL lpfPassword)
87 {
88         FIXME("(%s,%p,%p),stub!\n",debugstr_a(lpszPhoneBook),
89             lpRasDialParams,lpfPassword);
90         return 0;
91 }
92
93 /**************************************************************************
94  *                 RasHangUpA                   [RASAPI32.556]
95  */
96 DWORD WINAPI RasHangUpA( HRASCONN hrasconn)
97 {
98         FIXME("(%p),stub!\n",hrasconn);
99         return 0;
100 }
101
102 /**************************************************************************
103  *                 RasDeleteEntryA              [RASAPI32.7]
104  */
105 DWORD WINAPI RasDeleteEntryA(LPCSTR a, LPCSTR b)
106 {
107         FIXME("(%s,%s),stub!\n",debugstr_a(a),debugstr_a(b));
108         return 0;
109 }
110
111 /**************************************************************************
112  *                 RasDeleteEntryW              [RASAPI32.8]
113  */
114 DWORD WINAPI RasDeleteEntryW(LPCWSTR a, LPCWSTR b)
115 {
116         FIXME("(%s,%s),stub!\n",debugstr_w(a),debugstr_w(b));
117         return 0;
118 }
119
120 /**************************************************************************
121  *                 RasEnumAutodialAddressesA    [RASAPI32.14]
122  */
123 DWORD WINAPI RasEnumAutodialAddressesA(LPCSTR *a, LPDWORD b, LPDWORD c)
124 {
125         FIXME("(%p,%p,%p),stub!\n",a,b,c);
126         return 0;
127 }
128
129 /**************************************************************************
130  *                 RasEnumAutodialAddressesW    [RASAPI32.15]
131  */
132 DWORD WINAPI RasEnumAutodialAddressesW(LPCWSTR *a, LPDWORD b, LPDWORD c)
133 {
134         FIXME("(%p,%p,%p),stub!\n",a,b,c);
135         return 0;
136 }
137
138 typedef LPVOID LPRASAUTODIALENTRYA;
139 typedef LPVOID LPRASAUTODIALENTRYW;
140
141 /**************************************************************************
142  *                 RasEnumDevicesA              [RASAPI32.19]
143  *
144  * Just return a virtual modem too see what other APIs programs will
145  * call with it.
146  */
147 DWORD WINAPI RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo, LPDWORD lpcb, LPDWORD lpcDevices)
148 {
149         FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo,lpcb,lpcDevices);
150         if (*lpcb < sizeof(RASDEVINFOA)) {
151                 *lpcb = sizeof(RASDEVINFOA);
152                 return ERROR_BUFFER_TOO_SMALL;
153         }
154         /* honor dwSize ? */
155         strcpy(lpRasDevinfo->szDeviceType, RASDT_Modem);
156         strcpy(lpRasDevinfo->szDeviceName, "WINE virtmodem");
157         return 0;
158 }
159
160 /**************************************************************************
161  *                 RasEnumDevicesW              [RASAPI32.20]
162  */
163 DWORD WINAPI RasEnumDevicesW(LPRASDEVINFOW a, LPDWORD b, LPDWORD c)
164 {
165         FIXME("(%p,%p,%p),stub!\n",a,b,c);
166         return 0;
167 }
168
169 /**************************************************************************
170  *                 RasGetAutodialAddressA       [RASAPI32.24]
171  */
172 DWORD WINAPI RasGetAutodialAddressA(LPCSTR a, LPDWORD b, LPRASAUTODIALENTRYA c,
173                                         LPDWORD d, LPDWORD e)
174 {
175         FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_a(a),b,c,d,e);
176         return 0;
177 }
178
179 /**************************************************************************
180  *                 RasGetAutodialAddressW       [RASAPI32.25]
181  */
182 DWORD WINAPI RasGetAutodialAddressW(LPCWSTR a, LPDWORD b, LPRASAUTODIALENTRYW c,
183                                         LPDWORD d, LPDWORD e)
184 {
185         FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_w(a),b,c,d,e);
186         return 0;
187 }
188
189 /**************************************************************************
190  *                 RasGetAutodialEnableA        [RASAPI32.26]
191  */
192 DWORD WINAPI RasGetAutodialEnableA(DWORD a, LPBOOL b)
193 {
194         FIXME("(%lx,%p),stub!\n",a,b);
195         return 0;
196 }
197
198 /**************************************************************************
199  *                 RasGetAutodialEnableW        [RASAPI32.27]
200  */
201 DWORD WINAPI RasGetAutodialEnableW(DWORD a, LPBOOL b)
202 {
203         FIXME("(%lx,%p),stub!\n",a,b);
204         return 0;
205 }
206
207 /**************************************************************************
208  *                 RasGetAutodialParamA         [RASAPI32.28]
209  */
210 DWORD WINAPI RasGetAutodialParamA(DWORD dwKey, LPVOID lpvValue, LPDWORD lpdwcbValue)
211 {
212         FIXME("(%lx,%p,%p),stub!\n",dwKey,lpvValue,lpdwcbValue);
213         return 0;
214 }
215
216 /**************************************************************************
217  *                 RasGetAutodialParamW         [RASAPI32.29]
218  */
219 DWORD WINAPI RasGetAutodialParamW(DWORD dwKey, LPVOID lpvValue, LPDWORD lpdwcbValue)
220 {
221         FIXME("(%lx,%p,%p),stub!\n",dwKey,lpvValue,lpdwcbValue);
222         return 0;
223 }
224
225 /**************************************************************************
226  *                 RasSetAutodialAddressA       [RASAPI32.57]
227  */
228 DWORD WINAPI RasSetAutodialAddressA(LPCSTR a, DWORD b, LPRASAUTODIALENTRYA c,
229                                         DWORD d, DWORD e)
230 {
231         FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_a(a),b,c,d,e);
232         return 0;
233 }
234
235 /**************************************************************************
236  *                 RasSetAutodialAddressW       [RASAPI32.58]
237  */
238 DWORD WINAPI RasSetAutodialAddressW(LPCWSTR a, DWORD b, LPRASAUTODIALENTRYW c,
239                                         DWORD d, DWORD e)
240 {
241         FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_w(a),b,c,d,e);
242         return 0;
243 }
244
245 /**************************************************************************
246  *                 RasSetAutodialEnableA        [RASAPI32.59]
247  */
248 DWORD WINAPI RasSetAutodialEnableA(DWORD dwDialingLocation, BOOL fEnabled)
249 {
250         FIXME("(%lx,%x),stub!\n",dwDialingLocation,fEnabled);
251         return 0;
252 }
253
254 /**************************************************************************
255  *                 RasSetAutodialEnableW        [RASAPI32.60]
256  */
257 DWORD WINAPI RasSetAutodialEnableW(DWORD dwDialingLocation, BOOL fEnabled)
258 {
259         FIXME("(%lx,%x),stub!\n",dwDialingLocation,fEnabled);
260         return 0;
261 }
262
263 /**************************************************************************
264  *                 RasSetAutodialParamA [RASAPI32.61]
265  */
266 DWORD WINAPI RasSetAutodialParamA(DWORD a, LPVOID b, DWORD c)
267 {
268         FIXME("(%lx,%p,%lx),stub!\n",a,b,c);
269         return 0;
270 }
271
272 /**************************************************************************
273  *                 RasSetAutodialParamW [RASAPI32.62]
274  */
275 DWORD WINAPI RasSetAutodialParamW(DWORD a, LPVOID b, DWORD c)
276 {
277         FIXME("(%lx,%p,%lx),stub!\n",a,b,c);
278         return 0;
279 }
280
281 /**************************************************************************
282  *                 RasSetEntryPropertiesA       [RASAPI32.67]
283  */
284 DWORD WINAPI RasSetEntryPropertiesA(LPCSTR lpszPhonebook, LPCSTR lpszEntry,
285         LPRASENTRYA lpRasEntry, DWORD dwEntryInfoSize, LPBYTE lpbDeviceInfo,
286         DWORD dwDeviceInfoSize
287 ) {
288         FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
289                 debugstr_a(lpszPhonebook),debugstr_a(lpszEntry),
290                 lpRasEntry,dwEntryInfoSize,lpbDeviceInfo,dwDeviceInfoSize
291         );
292         FIXME("Rasentry:\n");
293         FIXME("\tdwfOptions %lx\n",lpRasEntry->dwfOptions);
294         FIXME("\tszLocalPhoneNumber %s\n",debugstr_a(lpRasEntry->szLocalPhoneNumber));
295         return 0;
296 }
297
298 /**************************************************************************
299  *                 RasSetEntryPropertiesW       [RASAPI32.68]
300  */
301 DWORD WINAPI RasSetEntryPropertiesW(LPCWSTR lpszPhonebook, LPCWSTR lpszEntry,
302         LPRASENTRYW lpRasEntry, DWORD dwEntryInfoSize, LPBYTE lpbDeviceInfo,
303         DWORD dwDeviceInfoSize
304 ) {
305         FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
306                 debugstr_w(lpszPhonebook),debugstr_w(lpszEntry),
307                 lpRasEntry,dwEntryInfoSize,lpbDeviceInfo,dwDeviceInfoSize
308         );
309         return 0;
310 }
311
312 /**************************************************************************
313  *                 RasValidateEntryNameA        [RASAPI32.72]
314  */
315 DWORD WINAPI RasValidateEntryNameA(LPCSTR lpszPhonebook, LPCSTR lpszEntry) {
316         FIXME("(%s,%s), stub!\n",debugstr_a(lpszPhonebook),debugstr_a(lpszEntry));
317         return 0;
318 }
319
320 /**************************************************************************
321  *                 RasValidateEntryNameW        [RASAPI32.73]
322  */
323 DWORD WINAPI RasValidateEntryNameW(LPCWSTR lpszPhonebook, LPCWSTR lpszEntry) {
324         FIXME("(%s,%s), stub!\n",debugstr_w(lpszPhonebook),debugstr_w(lpszEntry));
325         return 0;
326 }