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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(ras
);
31 DWORD WINAPI
RasConnectionNotificationA(HRASCONN hrasconn
, HANDLE hEvent
, DWORD dwFlags
)
33 FIXME("(%p,%p,0x%08x),stub!\n",hrasconn
,hEvent
,dwFlags
);
37 DWORD WINAPI
RasConnectionNotificationW(HRASCONN hrasconn
, HANDLE hEvent
, DWORD dwFlags
)
39 FIXME("(%p,%p,0x%08x),stub!\n",hrasconn
,hEvent
,dwFlags
);
43 DWORD WINAPI
RasCreatePhonebookEntryA(HWND hwnd
, LPCSTR lpszPhonebook
)
45 FIXME("(%p,%s),stub!\n",hwnd
,debugstr_a(lpszPhonebook
));
49 DWORD WINAPI
RasCreatePhonebookEntryW(HWND hwnd
, LPCWSTR lpszPhonebook
)
51 FIXME("(%p,%s),stub!\n",hwnd
,debugstr_w(lpszPhonebook
));
55 DWORD WINAPI
RasDeleteSubEntryA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, DWORD dwSubEntryId
)
57 FIXME("(%s,%s,0x%08x),stub!\n",debugstr_a(lpszPhonebook
),
58 debugstr_a(lpszEntry
),dwSubEntryId
);
62 DWORD WINAPI
RasDeleteSubEntryW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, DWORD dwSubEntryId
)
64 FIXME("(%s,%s,0x%08x),stub!\n",debugstr_w(lpszPhonebook
),
65 debugstr_w(lpszEntry
),dwSubEntryId
);
69 DWORD WINAPI
RasDialA(LPRASDIALEXTENSIONS lpRasDialExtensions
, LPCSTR lpszPhonebook
,
70 LPRASDIALPARAMSA lpRasDialParams
, DWORD dwNotifierType
,
71 LPVOID lpvNotifier
, LPHRASCONN lphRasConn
)
73 FIXME("(%p,%s,%p,0x%08x,%p,%p),stub!\n",lpRasDialExtensions
,debugstr_a(lpszPhonebook
),
74 lpRasDialParams
,dwNotifierType
,lpvNotifier
,lphRasConn
);
78 DWORD WINAPI
RasDialW(LPRASDIALEXTENSIONS lpRasDialExtensions
, LPCWSTR lpszPhonebook
,
79 LPRASDIALPARAMSW lpRasDialParams
, DWORD dwNotifierType
,
80 LPVOID lpvNotifier
, LPHRASCONN lphRasConn
)
82 FIXME("(%p,%s,%p,0x%08x,%p,%p),stub!\n",lpRasDialExtensions
,debugstr_w(lpszPhonebook
),
83 lpRasDialParams
,dwNotifierType
,lpvNotifier
,lphRasConn
);
87 DWORD WINAPI
RasEditPhonebookEntryA(HWND hwnd
, LPCSTR lpszPhonebook
, LPCSTR lpszEntryName
)
89 FIXME("(%p,%s,%s),stub!\n",hwnd
,debugstr_a(lpszPhonebook
),debugstr_a(lpszEntryName
));
93 DWORD WINAPI
RasEditPhonebookEntryW(HWND hwnd
, LPCWSTR lpszPhonebook
, LPCWSTR lpszEntryName
)
95 FIXME("(%p,%s,%s),stub!\n",hwnd
,debugstr_w(lpszPhonebook
),debugstr_w(lpszEntryName
));
99 /**************************************************************************
100 * RasEnumConnectionsA [RASAPI32.544]
102 DWORD WINAPI
RasEnumConnectionsA( LPRASCONNA rca
, LPDWORD lpcb
, LPDWORD lpcConnections
) {
103 /* Remote Access Service stuff is done by underlying OS anyway */
104 FIXME("(%p,%p,%p),stub!\n",rca
,lpcb
,lpcConnections
);
105 FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
106 *lpcb
= 0; /* size of buffer needed to enumerate connections */
107 *lpcConnections
= 0; /* no RAS connections available */
112 /**************************************************************************
113 * RasEnumConnectionsW [RASAPI32.545]
115 DWORD WINAPI
RasEnumConnectionsW( LPRASCONNW rcw
, LPDWORD lpcb
, LPDWORD lpcConnections
) {
116 /* Remote Access Service stuff is done by underlying OS anyway */
117 FIXME("(%p,%p,%p),stub!\n",rcw
,lpcb
,lpcConnections
);
118 FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
119 *lpcb
= 0; /* size of buffer needed to enumerate connections */
120 *lpcConnections
= 0; /* no RAS connections available */
125 /**************************************************************************
126 * RasEnumEntriesA [RASAPI32.546]
128 DWORD WINAPI
RasEnumEntriesA( LPCSTR Reserved
, LPCSTR lpszPhoneBook
,
129 LPRASENTRYNAMEA lpRasEntryName
,
130 LPDWORD lpcb
, LPDWORD lpcEntries
)
132 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_a(lpszPhoneBook
),
133 lpRasEntryName
,lpcb
,lpcEntries
);
138 /**************************************************************************
139 * RasEnumEntriesW [RASAPI32.547]
141 DWORD WINAPI
RasEnumEntriesW( LPCWSTR Reserved
, LPCWSTR lpszPhoneBook
,
142 LPRASENTRYNAMEW lpRasEntryName
,
143 LPDWORD lpcb
, LPDWORD lpcEntries
)
145 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_w(lpszPhoneBook
),
146 lpRasEntryName
,lpcb
,lpcEntries
);
151 DWORD WINAPI
RasGetConnectStatusA(HRASCONN hrasconn
, LPRASCONNSTATUSA lprasconnstatus
)
153 FIXME("(%p,%p),stub!\n",hrasconn
,lprasconnstatus
);
157 DWORD WINAPI
RasGetConnectStatusW(HRASCONN hrasconn
, LPRASCONNSTATUSW lprasconnstatus
)
159 FIXME("(%p,%p),stub!\n",hrasconn
,lprasconnstatus
);
163 /**************************************************************************
164 * RasGetEntryDialParamsA [RASAPI32.550]
166 DWORD WINAPI
RasGetEntryDialParamsA(
167 LPCSTR lpszPhoneBook
, LPRASDIALPARAMSA lpRasDialParams
,
170 FIXME("(%s,%p,%p),stub!\n",debugstr_a(lpszPhoneBook
),
171 lpRasDialParams
,lpfPassword
);
175 /**************************************************************************
176 * RasGetEntryDialParamsW [RASAPI32.551]
178 DWORD WINAPI
RasGetEntryDialParamsW(
179 LPCWSTR lpszPhoneBook
, LPRASDIALPARAMSW lpRasDialParams
,
182 FIXME("(%s,%p,%p),stub!\n",debugstr_w(lpszPhoneBook
),
183 lpRasDialParams
,lpfPassword
);
187 /**************************************************************************
188 * RasHangUpA [RASAPI32.556]
190 DWORD WINAPI
RasHangUpA( HRASCONN hrasconn
)
192 FIXME("(%p),stub!\n",hrasconn
);
196 /**************************************************************************
197 * RasHangUpW [RASAPI32.557]
199 DWORD WINAPI
RasHangUpW(HRASCONN hrasconn
)
201 FIXME("(%p),stub!\n",hrasconn
);
205 /**************************************************************************
206 * RasDeleteEntryA [RASAPI32.7]
208 DWORD WINAPI
RasDeleteEntryA(LPCSTR a
, LPCSTR b
)
210 FIXME("(%s,%s),stub!\n",debugstr_a(a
),debugstr_a(b
));
214 /**************************************************************************
215 * RasDeleteEntryW [RASAPI32.8]
217 DWORD WINAPI
RasDeleteEntryW(LPCWSTR a
, LPCWSTR b
)
219 FIXME("(%s,%s),stub!\n",debugstr_w(a
),debugstr_w(b
));
223 /**************************************************************************
224 * RasEnumAutodialAddressesA [RASAPI32.14]
226 DWORD WINAPI
RasEnumAutodialAddressesA(LPSTR
*a
, LPDWORD b
, LPDWORD c
)
228 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
232 /**************************************************************************
233 * RasEnumAutodialAddressesW [RASAPI32.15]
235 DWORD WINAPI
RasEnumAutodialAddressesW(LPWSTR
*a
, LPDWORD b
, LPDWORD c
)
237 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
241 /**************************************************************************
242 * RasEnumDevicesA [RASAPI32.19]
244 * Just return a virtual modem to see what other APIs programs will
247 DWORD WINAPI
RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo
, LPDWORD lpcb
, LPDWORD lpcDevices
)
249 if (!lpcb
|| !lpcDevices
)
250 return ERROR_INVALID_PARAMETER
;
252 FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo
,lpcb
,lpcDevices
);
254 if(lpRasDevinfo
&& lpRasDevinfo
->dwSize
!= sizeof(RASDEVINFOA
))
255 return ERROR_INVALID_SIZE
;
257 if (!lpRasDevinfo
|| (*lpcb
< sizeof(RASDEVINFOA
))) {
258 *lpcb
= sizeof(RASDEVINFOA
);
259 return ERROR_BUFFER_TOO_SMALL
;
262 strcpy(lpRasDevinfo
->szDeviceType
, RASDT_Modem
);
263 strcpy(lpRasDevinfo
->szDeviceName
, "WINE virtmodem");
267 /**************************************************************************
268 * RasEnumDevicesW [RASAPI32.20]
270 DWORD WINAPI
RasEnumDevicesW(LPRASDEVINFOW a
, LPDWORD b
, LPDWORD c
)
272 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
276 /**************************************************************************
277 * RasGetAutodialAddressA [RASAPI32.24]
279 DWORD WINAPI
RasGetAutodialAddressA(LPCSTR a
, LPDWORD b
, LPRASAUTODIALENTRYA c
,
280 LPDWORD d
, LPDWORD e
)
282 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
286 /**************************************************************************
287 * RasGetAutodialAddressW [RASAPI32.25]
289 DWORD WINAPI
RasGetAutodialAddressW(LPCWSTR a
, LPDWORD b
, LPRASAUTODIALENTRYW c
,
290 LPDWORD d
, LPDWORD e
)
292 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
296 /**************************************************************************
297 * RasGetAutodialEnableA [RASAPI32.26]
299 DWORD WINAPI
RasGetAutodialEnableA(DWORD a
, LPBOOL b
)
301 FIXME("(%x,%p),stub!\n",a
,b
);
305 /**************************************************************************
306 * RasGetAutodialEnableW [RASAPI32.27]
308 DWORD WINAPI
RasGetAutodialEnableW(DWORD a
, LPBOOL b
)
310 FIXME("(%x,%p),stub!\n",a
,b
);
314 /**************************************************************************
315 * RasGetAutodialParamA [RASAPI32.28]
317 DWORD WINAPI
RasGetAutodialParamA(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
319 FIXME("(%x,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
323 /**************************************************************************
324 * RasGetAutodialParamW [RASAPI32.29]
326 DWORD WINAPI
RasGetAutodialParamW(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
328 FIXME("(%x,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
332 /**************************************************************************
333 * RasSetAutodialAddressA [RASAPI32.57]
335 DWORD WINAPI
RasSetAutodialAddressA(LPCSTR a
, DWORD b
, LPRASAUTODIALENTRYA c
,
338 FIXME("(%s,%x,%p,%x,%x),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
342 /**************************************************************************
343 * RasSetAutodialAddressW [RASAPI32.58]
345 DWORD WINAPI
RasSetAutodialAddressW(LPCWSTR a
, DWORD b
, LPRASAUTODIALENTRYW c
,
348 FIXME("(%s,%x,%p,%x,%x),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
352 /**************************************************************************
353 * RasSetAutodialEnableA [RASAPI32.59]
355 DWORD WINAPI
RasSetAutodialEnableA(DWORD dwDialingLocation
, BOOL fEnabled
)
357 FIXME("(%x,%x),stub!\n",dwDialingLocation
,fEnabled
);
361 /**************************************************************************
362 * RasSetAutodialEnableW [RASAPI32.60]
364 DWORD WINAPI
RasSetAutodialEnableW(DWORD dwDialingLocation
, BOOL fEnabled
)
366 FIXME("(%x,%x),stub!\n",dwDialingLocation
,fEnabled
);
370 /**************************************************************************
371 * RasSetAutodialParamA [RASAPI32.61]
373 DWORD WINAPI
RasSetAutodialParamA(DWORD a
, LPVOID b
, DWORD c
)
375 FIXME("(%x,%p,%x),stub!\n",a
,b
,c
);
379 /**************************************************************************
380 * RasSetAutodialParamW [RASAPI32.62]
382 DWORD WINAPI
RasSetAutodialParamW(DWORD a
, LPVOID b
, DWORD c
)
384 FIXME("(%x,%p,%x),stub!\n",a
,b
,c
);
388 /**************************************************************************
389 * RasSetEntryPropertiesA [RASAPI32.67]
391 DWORD WINAPI
RasSetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
,
392 LPRASENTRYA lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
393 DWORD dwDeviceInfoSize
395 FIXME("(%s,%s,%p,%d,%p,%d), stub!\n",
396 debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
),
397 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
399 FIXME("Rasentry:\n");
400 FIXME("\tdwfOptions %x\n",lpRasEntry
->dwfOptions
);
401 FIXME("\tszLocalPhoneNumber %s\n",debugstr_a(lpRasEntry
->szLocalPhoneNumber
));
405 /**************************************************************************
406 * RasSetEntryPropertiesW [RASAPI32.68]
408 DWORD WINAPI
RasSetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
,
409 LPRASENTRYW lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
410 DWORD dwDeviceInfoSize
412 FIXME("(%s,%s,%p,%d,%p,%d), stub!\n",
413 debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
),
414 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
419 /**************************************************************************
420 * RasValidateEntryNameA [RASAPI32.72]
422 DWORD WINAPI
RasValidateEntryNameA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
) {
423 FIXME("(%s,%s), stub!\n",debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
));
427 /**************************************************************************
428 * RasValidateEntryNameW [RASAPI32.73]
430 DWORD WINAPI
RasValidateEntryNameW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
) {
431 FIXME("(%s,%s), stub!\n",debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
));
435 /**************************************************************************
436 * RasGetEntryPropertiesA [RASAPI32.@]
438 DWORD WINAPI
RasGetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, LPRASENTRYA lpRasEntry
,
439 LPDWORD lpdwEntryInfoSize
, LPBYTE lpbDeviceInfo
, LPDWORD lpdwDeviceInfoSize
441 FIXME("(%s,%s,%p,%p,%p,%p), stub!\n", debugstr_a(lpszPhonebook
), debugstr_a(lpszEntry
), lpRasEntry
,
442 lpdwEntryInfoSize
, lpbDeviceInfo
, lpdwDeviceInfoSize
);
446 /**************************************************************************
447 * RasGetEntryPropertiesW [RASAPI32.@]
449 DWORD WINAPI
RasGetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, LPRASENTRYW lpRasEntry
,
450 LPDWORD lpdwEntryInfoSize
, LPBYTE lpbDeviceInfo
, LPDWORD lpdwDeviceInfoSize
452 FIXME("(%s,%s,%p,%p,%p,%p), stub!\n", debugstr_w(lpszPhonebook
), debugstr_w(lpszEntry
), lpRasEntry
,
453 lpdwEntryInfoSize
, lpbDeviceInfo
, lpdwDeviceInfoSize
);
457 DWORD WINAPI
RasGetErrorStringA(UINT uErrorValue
, LPSTR lpszErrorString
, DWORD cBufSize
)
459 FIXME("(0x%08x,%p,0x%08x), stub!\n", uErrorValue
, lpszErrorString
, cBufSize
);
463 DWORD WINAPI
RasGetErrorStringW(UINT uErrorValue
, LPWSTR lpszErrorString
, DWORD cBufSize
)
465 FIXME("(0x%08x,%p,0x%08x), stub!\n", uErrorValue
, lpszErrorString
, cBufSize
);
469 DWORD WINAPI
RasGetProjectionInfoA(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
RasGetProjectionInfoW(HRASCONN hrasconn
, RASPROJECTION rasprojection
,
477 LPVOID lpprojection
, LPDWORD lpcb
)
479 FIXME("(%p,0x%08x,%p,%p), stub!\n", hrasconn
, rasprojection
, lpprojection
, lpcb
);
483 DWORD WINAPI
RasRenameEntryA(LPCSTR lpszPhonebook
, LPCSTR lpszOldEntry
, LPCSTR lpszNewEntry
)
485 FIXME("(%s,%s,%s), stub!\n", debugstr_a(lpszPhonebook
), debugstr_a(lpszOldEntry
),
486 debugstr_a(lpszNewEntry
));
490 DWORD WINAPI
RasRenameEntryW(LPCWSTR lpszPhonebook
, LPCWSTR lpszOldEntry
, LPCWSTR lpszNewEntry
)
492 FIXME("(%s,%s,%s), stub!\n", debugstr_w(lpszPhonebook
), debugstr_w(lpszOldEntry
),
493 debugstr_w(lpszNewEntry
));
497 DWORD WINAPI
RasSetCustomAuthDataA(const char *phonebook
, const char *entry
, BYTE
*authdata
, DWORD size
)
499 FIXME("(%s,%s,%p,0x%08x), stub!\n", debugstr_a(phonebook
), debugstr_a(entry
), authdata
, size
);
503 DWORD WINAPI
RasSetCustomAuthDataW(const WCHAR
*phonebook
, const WCHAR
*entry
, BYTE
*authdata
, DWORD size
)
505 FIXME("(%s,%s,%p,0x%08x), stub!\n", debugstr_w(phonebook
), debugstr_w(entry
), authdata
, size
);
509 DWORD WINAPI
RasSetEntryDialParamsA(LPCSTR lpszPhonebook
, LPRASDIALPARAMSA lprasdialparams
,
510 BOOL fRemovePassword
)
512 FIXME("(%s,%p,0x%x), stub!\n", debugstr_a(lpszPhonebook
), lprasdialparams
, fRemovePassword
);
516 DWORD WINAPI
RasSetEntryDialParamsW(LPCWSTR lpszPhonebook
, LPRASDIALPARAMSW lprasdialparams
,
517 BOOL fRemovePassword
)
519 FIXME("(%s,%p,0x%x), stub!\n", debugstr_w(lpszPhonebook
), lprasdialparams
, fRemovePassword
);
523 DWORD WINAPI
RasSetSubEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, DWORD dwSubEntry
,
524 LPRASSUBENTRYA lpRasSubEntry
, DWORD dwcbRasSubEntry
,
525 LPBYTE lpbDeviceConfig
, DWORD dwcbDeviceConfig
)
527 FIXME("(%s,%s,0x%08x,%p,0x%08x,%p,0x%08x), stub!\n", debugstr_a(lpszPhonebook
),
528 debugstr_a(lpszEntry
), dwSubEntry
, lpRasSubEntry
, dwcbRasSubEntry
, lpbDeviceConfig
,
533 DWORD WINAPI
RasSetSubEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, DWORD dwSubEntry
,
534 LPRASSUBENTRYW lpRasSubEntry
, DWORD dwcbRasSubEntry
,
535 LPBYTE lpbDeviceConfig
, DWORD dwcbDeviceConfig
)
537 FIXME("(%s,%s,0x%08x,%p,0x%08x,%p,0x%08x), stub!\n", debugstr_w(lpszPhonebook
),
538 debugstr_w(lpszEntry
), dwSubEntry
, lpRasSubEntry
, dwcbRasSubEntry
, lpbDeviceConfig
,
543 DWORD WINAPI
RasGetLinkStatistics(HRASCONN connection
, DWORD entry
, RAS_STATS
*statistics
)
545 FIXME("(%p,%u,%p), stub!\n", connection
, entry
, statistics
);