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
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(LPSTR
*a
, LPDWORD b
, LPDWORD c
)
225 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
229 /**************************************************************************
230 * RasEnumAutodialAddressesW [RASAPI32.15]
232 DWORD WINAPI
RasEnumAutodialAddressesW(LPWSTR
*a
, LPDWORD b
, LPDWORD c
)
234 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
238 /**************************************************************************
239 * RasEnumDevicesA [RASAPI32.19]
241 * Just return a virtual modem too see what other APIs programs will
244 DWORD WINAPI
RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo
, LPDWORD lpcb
, LPDWORD lpcDevices
)
246 FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo
,lpcb
,lpcDevices
);
247 if (*lpcb
< sizeof(RASDEVINFOA
)) {
248 *lpcb
= sizeof(RASDEVINFOA
);
249 return ERROR_BUFFER_TOO_SMALL
;
252 strcpy(lpRasDevinfo
->szDeviceType
, RASDT_Modem
);
253 strcpy(lpRasDevinfo
->szDeviceName
, "WINE virtmodem");
257 /**************************************************************************
258 * RasEnumDevicesW [RASAPI32.20]
260 DWORD WINAPI
RasEnumDevicesW(LPRASDEVINFOW a
, LPDWORD b
, LPDWORD c
)
262 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
266 /**************************************************************************
267 * RasGetAutodialAddressA [RASAPI32.24]
269 DWORD WINAPI
RasGetAutodialAddressA(LPCSTR a
, LPDWORD b
, LPRASAUTODIALENTRYA c
,
270 LPDWORD d
, LPDWORD e
)
272 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
276 /**************************************************************************
277 * RasGetAutodialAddressW [RASAPI32.25]
279 DWORD WINAPI
RasGetAutodialAddressW(LPCWSTR a
, LPDWORD b
, LPRASAUTODIALENTRYW c
,
280 LPDWORD d
, LPDWORD e
)
282 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
286 /**************************************************************************
287 * RasGetAutodialEnableA [RASAPI32.26]
289 DWORD WINAPI
RasGetAutodialEnableA(DWORD a
, LPBOOL b
)
291 FIXME("(%lx,%p),stub!\n",a
,b
);
295 /**************************************************************************
296 * RasGetAutodialEnableW [RASAPI32.27]
298 DWORD WINAPI
RasGetAutodialEnableW(DWORD a
, LPBOOL b
)
300 FIXME("(%lx,%p),stub!\n",a
,b
);
304 /**************************************************************************
305 * RasGetAutodialParamA [RASAPI32.28]
307 DWORD WINAPI
RasGetAutodialParamA(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
309 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
313 /**************************************************************************
314 * RasGetAutodialParamW [RASAPI32.29]
316 DWORD WINAPI
RasGetAutodialParamW(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
318 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
322 /**************************************************************************
323 * RasSetAutodialAddressA [RASAPI32.57]
325 DWORD WINAPI
RasSetAutodialAddressA(LPCSTR a
, DWORD b
, LPRASAUTODIALENTRYA c
,
328 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
332 /**************************************************************************
333 * RasSetAutodialAddressW [RASAPI32.58]
335 DWORD WINAPI
RasSetAutodialAddressW(LPCWSTR a
, DWORD b
, LPRASAUTODIALENTRYW c
,
338 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
342 /**************************************************************************
343 * RasSetAutodialEnableA [RASAPI32.59]
345 DWORD WINAPI
RasSetAutodialEnableA(DWORD dwDialingLocation
, BOOL fEnabled
)
347 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
351 /**************************************************************************
352 * RasSetAutodialEnableW [RASAPI32.60]
354 DWORD WINAPI
RasSetAutodialEnableW(DWORD dwDialingLocation
, BOOL fEnabled
)
356 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
360 /**************************************************************************
361 * RasSetAutodialParamA [RASAPI32.61]
363 DWORD WINAPI
RasSetAutodialParamA(DWORD a
, LPVOID b
, DWORD c
)
365 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
369 /**************************************************************************
370 * RasSetAutodialParamW [RASAPI32.62]
372 DWORD WINAPI
RasSetAutodialParamW(DWORD a
, LPVOID b
, DWORD c
)
374 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
378 /**************************************************************************
379 * RasSetEntryPropertiesA [RASAPI32.67]
381 DWORD WINAPI
RasSetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
,
382 LPRASENTRYA lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
383 DWORD dwDeviceInfoSize
385 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
386 debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
),
387 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
389 FIXME("Rasentry:\n");
390 FIXME("\tdwfOptions %lx\n",lpRasEntry
->dwfOptions
);
391 FIXME("\tszLocalPhoneNumber %s\n",debugstr_a(lpRasEntry
->szLocalPhoneNumber
));
395 /**************************************************************************
396 * RasSetEntryPropertiesW [RASAPI32.68]
398 DWORD WINAPI
RasSetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
,
399 LPRASENTRYW lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
400 DWORD dwDeviceInfoSize
402 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
403 debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
),
404 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
409 /**************************************************************************
410 * RasValidateEntryNameA [RASAPI32.72]
412 DWORD WINAPI
RasValidateEntryNameA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
) {
413 FIXME("(%s,%s), stub!\n",debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
));
417 /**************************************************************************
418 * RasValidateEntryNameW [RASAPI32.73]
420 DWORD WINAPI
RasValidateEntryNameW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
) {
421 FIXME("(%s,%s), stub!\n",debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
));
425 /**************************************************************************
426 * RasGetEntryPropertiesA [RASAPI32.@]
428 DWORD WINAPI
RasGetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, LPRASENTRYA lpRasEntry
,
429 LPDWORD lpdwEntryInfoSize
, LPBYTE lpbDeviceInfo
, LPDWORD lpdwDeviceInfoSize
431 FIXME("(%s,%s,%p,%p,%p,%p), stub!\n", debugstr_a(lpszPhonebook
), debugstr_a(lpszEntry
), lpRasEntry
,
432 lpdwEntryInfoSize
, lpbDeviceInfo
, lpdwDeviceInfoSize
);
436 /**************************************************************************
437 * RasGetEntryPropertiesW [RASAPI32.@]
439 DWORD WINAPI
RasGetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, LPRASENTRYW lpRasEntry
,
440 LPDWORD lpdwEntryInfoSize
, LPBYTE lpbDeviceInfo
, LPDWORD lpdwDeviceInfoSize
442 FIXME("(%s,%s,%p,%p,%p,%p), stub!\n", debugstr_w(lpszPhonebook
), debugstr_w(lpszEntry
), lpRasEntry
,
443 lpdwEntryInfoSize
, lpbDeviceInfo
, lpdwDeviceInfoSize
);
447 DWORD WINAPI
RasGetErrorStringA(UINT uErrorValue
, LPSTR lpszErrorString
, DWORD cBufSize
)
449 FIXME("(0x%08x,%p,0x%08lx), stub!\n", uErrorValue
, lpszErrorString
, cBufSize
);
453 DWORD WINAPI
RasGetErrorStringW(UINT uErrorValue
, LPWSTR lpszErrorString
, DWORD cBufSize
)
455 FIXME("(0x%08x,%p,0x%08lx), stub!\n", uErrorValue
, lpszErrorString
, cBufSize
);
459 DWORD WINAPI
RasGetProjectionInfoA(HRASCONN hrasconn
, RASPROJECTION rasprojection
,
460 LPVOID lpprojection
, LPDWORD lpcb
)
462 FIXME("(%p,0x%08x,%p,%p), stub!\n", hrasconn
, rasprojection
, lpprojection
, lpcb
);
466 DWORD WINAPI
RasGetProjectionInfoW(HRASCONN hrasconn
, RASPROJECTION rasprojection
,
467 LPVOID lpprojection
, LPDWORD lpcb
)
469 FIXME("(%p,0x%08x,%p,%p), stub!\n", hrasconn
, rasprojection
, lpprojection
, lpcb
);
473 DWORD WINAPI
RasRenameEntryA(LPCSTR lpszPhonebook
, LPCSTR lpszOldEntry
, LPCSTR lpszNewEntry
)
475 FIXME("(%s,%s,%s), stub!\n", debugstr_a(lpszPhonebook
), debugstr_a(lpszOldEntry
),
476 debugstr_a(lpszNewEntry
));
480 DWORD WINAPI
RasRenameEntryW(LPCWSTR lpszPhonebook
, LPCWSTR lpszOldEntry
, LPCWSTR lpszNewEntry
)
482 FIXME("(%s,%s,%s), stub!\n", debugstr_w(lpszPhonebook
), debugstr_w(lpszOldEntry
),
483 debugstr_w(lpszNewEntry
));
487 DWORD WINAPI
RasSetEntryDialParamsA(LPCSTR lpszPhonebook
, LPRASDIALPARAMSA lprasdialparams
,
488 BOOL fRemovePassword
)
490 FIXME("(%s,%p,0x%x), stub!\n", debugstr_a(lpszPhonebook
), lprasdialparams
, fRemovePassword
);
494 DWORD WINAPI
RasSetEntryDialParamsW(LPCWSTR lpszPhonebook
, LPRASDIALPARAMSW lprasdialparams
,
495 BOOL fRemovePassword
)
497 FIXME("(%s,%p,0x%x), stub!\n", debugstr_w(lpszPhonebook
), lprasdialparams
, fRemovePassword
);
501 DWORD WINAPI
RasSetSubEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, DWORD dwSubEntry
,
502 LPRASSUBENTRYA lpRasSubEntry
, DWORD dwcbRasSubEntry
,
503 LPBYTE lpbDeviceConfig
, DWORD dwcbDeviceConfig
)
505 FIXME("(%s,%s,0x%08lx,%p,0x%08lx,%p,0x%08lx), stub!\n", debugstr_a(lpszPhonebook
),
506 debugstr_a(lpszEntry
), dwSubEntry
, lpRasSubEntry
, dwcbRasSubEntry
, lpbDeviceConfig
,
511 DWORD WINAPI
RasSetSubEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, DWORD dwSubEntry
,
512 LPRASSUBENTRYW lpRasSubEntry
, DWORD dwcbRasSubEntry
,
513 LPBYTE lpbDeviceConfig
, DWORD dwcbDeviceConfig
)
515 FIXME("(%s,%s,0x%08lx,%p,0x%08lx,%p,0x%08lx), stub!\n", debugstr_w(lpszPhonebook
),
516 debugstr_w(lpszEntry
), dwSubEntry
, lpRasSubEntry
, dwcbRasSubEntry
, lpbDeviceConfig
,