4 * Copyright 1998,2001 Marcus Meissner
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.
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.
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
26 #include "wine/debug.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(ras
);
30 DWORD WINAPI
RasConnectionNotificationA(HRASCONN hrasconn
, HANDLE hEvent
, DWORD dwFlags
)
32 FIXME("(%p,%p,0x%08lx),stub!\n",hrasconn
,hEvent
,dwFlags
);
36 DWORD WINAPI
RasConnectionNotificationW(HRASCONN hrasconn
, HANDLE hEvent
, DWORD dwFlags
)
38 FIXME("(%p,%p,0x%08lx),stub!\n",hrasconn
,hEvent
,dwFlags
);
42 DWORD WINAPI
RasCreatePhonebookEntryA(HWND hwnd
, LPCSTR lpszPhonebook
)
44 FIXME("(%p,%s),stub!\n",hwnd
,debugstr_a(lpszPhonebook
));
48 DWORD WINAPI
RasCreatePhonebookEntryW(HWND hwnd
, LPCWSTR lpszPhonebook
)
50 FIXME("(%p,%s),stub!\n",hwnd
,debugstr_w(lpszPhonebook
));
54 DWORD WINAPI
RasDeleteSubEntryA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, DWORD dwSubEntryId
)
56 FIXME("(%s,%s,0x%08lx),stub!\n",debugstr_a(lpszPhonebook
),
57 debugstr_a(lpszEntry
),dwSubEntryId
);
61 DWORD WINAPI
RasDeleteSubEntryW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, DWORD dwSubEntryId
)
63 FIXME("(%s,%s,0x%08lx),stub!\n",debugstr_w(lpszPhonebook
),
64 debugstr_w(lpszEntry
),dwSubEntryId
);
68 DWORD WINAPI
RasDialA(LPRASDIALEXTENSIONS lpRasDialExtensions
, LPCSTR lpszPhonebook
,
69 LPRASDIALPARAMSA lpRasDialParams
, DWORD dwNotifierType
,
70 LPVOID lpvNotifier
, LPHRASCONN lphRasConn
)
72 FIXME("(%p,%s,%p,0x%08lx,%p,%p),stub!\n",lpRasDialExtensions
,debugstr_a(lpszPhonebook
),
73 lpRasDialParams
,dwNotifierType
,lpvNotifier
,lphRasConn
);
77 DWORD WINAPI
RasDialW(LPRASDIALEXTENSIONS lpRasDialExtensions
, LPCWSTR lpszPhonebook
,
78 LPRASDIALPARAMSW lpRasDialParams
, DWORD dwNotifierType
,
79 LPVOID lpvNotifier
, LPHRASCONN lphRasConn
)
81 FIXME("(%p,%s,%p,0x%08lx,%p,%p),stub!\n",lpRasDialExtensions
,debugstr_w(lpszPhonebook
),
82 lpRasDialParams
,dwNotifierType
,lpvNotifier
,lphRasConn
);
86 DWORD WINAPI
RasEditPhonebookEntryA(HWND hwnd
, LPCSTR lpszPhonebook
, LPCSTR lpszEntryName
)
88 FIXME("(%p,%s,%s),stub!\n",hwnd
,debugstr_a(lpszPhonebook
),debugstr_a(lpszEntryName
));
92 DWORD WINAPI
RasEditPhonebookEntryW(HWND hwnd
, LPCWSTR lpszPhonebook
, LPCWSTR lpszEntryName
)
94 FIXME("(%p,%s,%s),stub!\n",hwnd
,debugstr_w(lpszPhonebook
),debugstr_w(lpszEntryName
));
98 /**************************************************************************
99 * RasEnumConnectionsA [RASAPI32.544]
101 DWORD WINAPI
RasEnumConnectionsA( LPRASCONNA rca
, LPDWORD lpcb
, LPDWORD lpcConnections
) {
102 /* Remote Access Service stuff is done by underlying OS anyway */
103 FIXME("(%p,%p,%p),stub!\n",rca
,lpcb
,lpcConnections
);
104 FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
105 *lpcConnections
= 0; /* no RAS connections available */
110 /**************************************************************************
111 * RasEnumConnectionsW [RASAPI32.545]
113 DWORD WINAPI
RasEnumConnectionsW( LPRASCONNW rcw
, LPDWORD lpcb
, LPDWORD lpcConnections
) {
114 /* Remote Access Service stuff is done by underlying OS anyway */
115 FIXME("(%p,%p,%p),stub!\n",rcw
,lpcb
,lpcConnections
);
116 FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
117 *lpcConnections
= 0; /* no RAS connections available */
122 /**************************************************************************
123 * RasEnumEntriesA [RASAPI32.546]
125 DWORD WINAPI
RasEnumEntriesA( LPCSTR Reserved
, LPCSTR lpszPhoneBook
,
126 LPRASENTRYNAMEA lpRasEntryName
,
127 LPDWORD lpcb
, LPDWORD lpcEntries
)
129 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_a(lpszPhoneBook
),
130 lpRasEntryName
,lpcb
,lpcEntries
);
135 /**************************************************************************
136 * RasEnumEntriesW [RASAPI32.547]
138 DWORD WINAPI
RasEnumEntriesW( LPCWSTR Reserved
, LPCWSTR lpszPhoneBook
,
139 LPRASENTRYNAMEW lpRasEntryName
,
140 LPDWORD lpcb
, LPDWORD lpcEntries
)
142 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_w(lpszPhoneBook
),
143 lpRasEntryName
,lpcb
,lpcEntries
);
148 DWORD WINAPI
RasGetConnectStatusA(HRASCONN hrasconn
, LPRASCONNSTATUSA lprasconnstatus
)
150 FIXME("(%p,%p),stub!\n",hrasconn
,lprasconnstatus
);
154 DWORD WINAPI
RasGetConnectStatusW(HRASCONN hrasconn
, LPRASCONNSTATUSW lprasconnstatus
)
156 FIXME("(%p,%p),stub!\n",hrasconn
,lprasconnstatus
);
160 /**************************************************************************
161 * RasGetEntryDialParamsA [RASAPI32.550]
163 DWORD WINAPI
RasGetEntryDialParamsA(
164 LPCSTR lpszPhoneBook
, LPRASDIALPARAMSA lpRasDialParams
,
167 FIXME("(%s,%p,%p),stub!\n",debugstr_a(lpszPhoneBook
),
168 lpRasDialParams
,lpfPassword
);
172 /**************************************************************************
173 * RasGetEntryDialParamsW [RASAPI32.551]
175 DWORD WINAPI
RasGetEntryDialParamsW(
176 LPCWSTR lpszPhoneBook
, LPRASDIALPARAMSW lpRasDialParams
,
179 FIXME("(%s,%p,%p),stub!\n",debugstr_w(lpszPhoneBook
),
180 lpRasDialParams
,lpfPassword
);
184 /**************************************************************************
185 * RasHangUpA [RASAPI32.556]
187 DWORD WINAPI
RasHangUpA( HRASCONN hrasconn
)
189 FIXME("(%p),stub!\n",hrasconn
);
193 /**************************************************************************
194 * RasHangUpW [RASAPI32.557]
196 DWORD WINAPI
RasHangUpW(HRASCONN hrasconn
)
198 FIXME("(%p),stub!\n",hrasconn
);
202 /**************************************************************************
203 * RasDeleteEntryA [RASAPI32.7]
205 DWORD WINAPI
RasDeleteEntryA(LPCSTR a
, LPCSTR b
)
207 FIXME("(%s,%s),stub!\n",debugstr_a(a
),debugstr_a(b
));
211 /**************************************************************************
212 * RasDeleteEntryW [RASAPI32.8]
214 DWORD WINAPI
RasDeleteEntryW(LPCWSTR a
, LPCWSTR b
)
216 FIXME("(%s,%s),stub!\n",debugstr_w(a
),debugstr_w(b
));
220 /**************************************************************************
221 * RasEnumAutodialAddressesA [RASAPI32.14]
223 DWORD WINAPI
RasEnumAutodialAddressesA(LPCSTR
*a
, LPDWORD b
, LPDWORD c
)
225 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
229 /**************************************************************************
230 * RasEnumAutodialAddressesW [RASAPI32.15]
232 DWORD WINAPI
RasEnumAutodialAddressesW(LPCWSTR
*a
, LPDWORD b
, LPDWORD c
)
234 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
238 typedef LPVOID LPRASAUTODIALENTRYA
;
239 typedef LPVOID LPRASAUTODIALENTRYW
;
241 /**************************************************************************
242 * RasEnumDevicesA [RASAPI32.19]
244 * Just return a virtual modem too see what other APIs programs will
247 DWORD WINAPI
RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo
, LPDWORD lpcb
, LPDWORD lpcDevices
)
249 FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo
,lpcb
,lpcDevices
);
250 if (*lpcb
< sizeof(RASDEVINFOA
)) {
251 *lpcb
= sizeof(RASDEVINFOA
);
252 return ERROR_BUFFER_TOO_SMALL
;
255 strcpy(lpRasDevinfo
->szDeviceType
, RASDT_Modem
);
256 strcpy(lpRasDevinfo
->szDeviceName
, "WINE virtmodem");
260 /**************************************************************************
261 * RasEnumDevicesW [RASAPI32.20]
263 DWORD WINAPI
RasEnumDevicesW(LPRASDEVINFOW a
, LPDWORD b
, LPDWORD c
)
265 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
269 /**************************************************************************
270 * RasGetAutodialAddressA [RASAPI32.24]
272 DWORD WINAPI
RasGetAutodialAddressA(LPCSTR a
, LPDWORD b
, LPRASAUTODIALENTRYA c
,
273 LPDWORD d
, LPDWORD e
)
275 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
279 /**************************************************************************
280 * RasGetAutodialAddressW [RASAPI32.25]
282 DWORD WINAPI
RasGetAutodialAddressW(LPCWSTR a
, LPDWORD b
, LPRASAUTODIALENTRYW c
,
283 LPDWORD d
, LPDWORD e
)
285 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
289 /**************************************************************************
290 * RasGetAutodialEnableA [RASAPI32.26]
292 DWORD WINAPI
RasGetAutodialEnableA(DWORD a
, LPBOOL b
)
294 FIXME("(%lx,%p),stub!\n",a
,b
);
298 /**************************************************************************
299 * RasGetAutodialEnableW [RASAPI32.27]
301 DWORD WINAPI
RasGetAutodialEnableW(DWORD a
, LPBOOL b
)
303 FIXME("(%lx,%p),stub!\n",a
,b
);
307 /**************************************************************************
308 * RasGetAutodialParamA [RASAPI32.28]
310 DWORD WINAPI
RasGetAutodialParamA(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
312 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
316 /**************************************************************************
317 * RasGetAutodialParamW [RASAPI32.29]
319 DWORD WINAPI
RasGetAutodialParamW(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
321 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
325 /**************************************************************************
326 * RasSetAutodialAddressA [RASAPI32.57]
328 DWORD WINAPI
RasSetAutodialAddressA(LPCSTR a
, DWORD b
, LPRASAUTODIALENTRYA c
,
331 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
335 /**************************************************************************
336 * RasSetAutodialAddressW [RASAPI32.58]
338 DWORD WINAPI
RasSetAutodialAddressW(LPCWSTR a
, DWORD b
, LPRASAUTODIALENTRYW c
,
341 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
345 /**************************************************************************
346 * RasSetAutodialEnableA [RASAPI32.59]
348 DWORD WINAPI
RasSetAutodialEnableA(DWORD dwDialingLocation
, BOOL fEnabled
)
350 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
354 /**************************************************************************
355 * RasSetAutodialEnableW [RASAPI32.60]
357 DWORD WINAPI
RasSetAutodialEnableW(DWORD dwDialingLocation
, BOOL fEnabled
)
359 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
363 /**************************************************************************
364 * RasSetAutodialParamA [RASAPI32.61]
366 DWORD WINAPI
RasSetAutodialParamA(DWORD a
, LPVOID b
, DWORD c
)
368 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
372 /**************************************************************************
373 * RasSetAutodialParamW [RASAPI32.62]
375 DWORD WINAPI
RasSetAutodialParamW(DWORD a
, LPVOID b
, DWORD c
)
377 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
381 /**************************************************************************
382 * RasSetEntryPropertiesA [RASAPI32.67]
384 DWORD WINAPI
RasSetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
,
385 LPRASENTRYA lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
386 DWORD dwDeviceInfoSize
388 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
389 debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
),
390 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
392 FIXME("Rasentry:\n");
393 FIXME("\tdwfOptions %lx\n",lpRasEntry
->dwfOptions
);
394 FIXME("\tszLocalPhoneNumber %s\n",debugstr_a(lpRasEntry
->szLocalPhoneNumber
));
398 /**************************************************************************
399 * RasSetEntryPropertiesW [RASAPI32.68]
401 DWORD WINAPI
RasSetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
,
402 LPRASENTRYW lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
403 DWORD dwDeviceInfoSize
405 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
406 debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
),
407 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
412 /**************************************************************************
413 * RasValidateEntryNameA [RASAPI32.72]
415 DWORD WINAPI
RasValidateEntryNameA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
) {
416 FIXME("(%s,%s), stub!\n",debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
));
420 /**************************************************************************
421 * RasValidateEntryNameW [RASAPI32.73]
423 DWORD WINAPI
RasValidateEntryNameW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
) {
424 FIXME("(%s,%s), stub!\n",debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
));
428 /**************************************************************************
429 * RasGetEntryPropertiesA [RASAPI32.@]
431 DWORD WINAPI
RasGetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, LPRASENTRYA lpRasEntry
,
432 LPDWORD lpdwEntryInfoSize
, LPBYTE lpbDeviceInfo
, LPDWORD lpdwDeviceInfoSize
434 FIXME("(%s,%s,%p,%p,%p,%p), stub!\n", debugstr_a(lpszPhonebook
), debugstr_a(lpszEntry
), lpRasEntry
,
435 lpdwEntryInfoSize
, lpbDeviceInfo
, lpdwDeviceInfoSize
);
439 /**************************************************************************
440 * RasGetEntryPropertiesW [RASAPI32.@]
442 DWORD WINAPI
RasGetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, LPRASENTRYW lpRasEntry
,
443 LPDWORD lpdwEntryInfoSize
, LPBYTE lpbDeviceInfo
, LPDWORD lpdwDeviceInfoSize
445 FIXME("(%s,%s,%p,%p,%p,%p), stub!\n", debugstr_w(lpszPhonebook
), debugstr_w(lpszEntry
), lpRasEntry
,
446 lpdwEntryInfoSize
, lpbDeviceInfo
, lpdwDeviceInfoSize
);
450 DWORD WINAPI
RasGetErrorStringA(UINT uErrorValue
, LPSTR lpszErrorString
, DWORD cBufSize
)
452 FIXME("(0x%08x,%s,0x%08lx), stub!\n", uErrorValue
, debugstr_a(lpszErrorString
), cBufSize
);
456 DWORD WINAPI
RasGetErrorStringW(UINT uErrorValue
, LPWSTR lpszErrorString
, DWORD cBufSize
)
458 FIXME("(0x%08x,%s,0x%08lx), stub!\n", uErrorValue
, debugstr_w(lpszErrorString
), cBufSize
);
462 DWORD WINAPI
RasGetProjectionInfoA(HRASCONN hrasconn
, RASPROJECTION rasprojection
,
463 LPVOID lpprojection
, LPDWORD lpcb
)
465 FIXME("(%p,0x%08x,%p,%p), stub!\n", hrasconn
, rasprojection
, lpprojection
, lpcb
);
469 DWORD WINAPI
RasGetProjectionInfoW(HRASCONN hrasconn
, RASPROJECTION rasprojection
,
470 LPVOID lpprojection
, LPDWORD lpcb
)
472 FIXME("(%p,0x%08x,%p,%p), stub!\n", hrasconn
, rasprojection
, lpprojection
, lpcb
);
476 DWORD WINAPI
RasRenameEntryA(LPCSTR lpszPhonebook
, LPCSTR lpszOldEntry
, LPCSTR lpszNewEntry
)
478 FIXME("(%s,%s,%s), stub!\n", debugstr_a(lpszPhonebook
), debugstr_a(lpszOldEntry
),
479 debugstr_a(lpszNewEntry
));
483 DWORD WINAPI
RasRenameEntryW(LPCWSTR lpszPhonebook
, LPCWSTR lpszOldEntry
, LPCWSTR lpszNewEntry
)
485 FIXME("(%s,%s,%s), stub!\n", debugstr_w(lpszPhonebook
), debugstr_w(lpszOldEntry
),
486 debugstr_w(lpszNewEntry
));
490 DWORD WINAPI
RasSetEntryDialParamsA(LPCSTR lpszPhonebook
, LPRASDIALPARAMSA lprasdialparams
,
491 BOOL fRemovePassword
)
493 FIXME("(%s,%p,0x%x), stub!\n", debugstr_a(lpszPhonebook
), lprasdialparams
, fRemovePassword
);
497 DWORD WINAPI
RasSetEntryDialParamsW(LPCWSTR lpszPhonebook
, LPRASDIALPARAMSW lprasdialparams
,
498 BOOL fRemovePassword
)
500 FIXME("(%s,%p,0x%x), stub!\n", debugstr_w(lpszPhonebook
), lprasdialparams
, fRemovePassword
);
504 DWORD WINAPI
RasSetSubEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, DWORD dwSubEntry
,
505 LPRASSUBENTRYA lpRasSubEntry
, DWORD dwcbRasSubEntry
,
506 LPBYTE lpbDeviceConfig
, DWORD dwcbDeviceConfig
)
508 FIXME("(%s,%s,0x%08lx,%p,0x%08lx,%p,0x%08lx), stub!\n", debugstr_a(lpszPhonebook
),
509 debugstr_a(lpszEntry
), dwSubEntry
, lpRasSubEntry
, dwcbRasSubEntry
, lpbDeviceConfig
,
514 DWORD WINAPI
RasSetSubEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, DWORD dwSubEntry
,
515 LPRASSUBENTRYW lpRasSubEntry
, DWORD dwcbRasSubEntry
,
516 LPBYTE lpbDeviceConfig
, DWORD dwcbDeviceConfig
)
518 FIXME("(%s,%s,0x%08lx,%p,0x%08lx,%p,0x%08lx), stub!\n", debugstr_w(lpszPhonebook
),
519 debugstr_w(lpszEntry
), dwSubEntry
, lpRasSubEntry
, dwcbRasSubEntry
, lpbDeviceConfig
,