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%08x),stub!\n",hrasconn
,hEvent
,dwFlags
);
36 DWORD WINAPI
RasConnectionNotificationW(HRASCONN hrasconn
, HANDLE hEvent
, DWORD dwFlags
)
38 FIXME("(%p,%p,0x%08x),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%08x),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%08x),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%08x,%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%08x,%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 *lpcb
= 0; /* size of buffer needed to enumerate connections */
106 *lpcConnections
= 0; /* no RAS connections available */
111 /**************************************************************************
112 * RasEnumConnectionsW [RASAPI32.545]
114 DWORD WINAPI
RasEnumConnectionsW( LPRASCONNW rcw
, LPDWORD lpcb
, LPDWORD lpcConnections
) {
115 /* Remote Access Service stuff is done by underlying OS anyway */
116 FIXME("(%p,%p,%p),stub!\n",rcw
,lpcb
,lpcConnections
);
117 FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
118 *lpcb
= 0; /* size of buffer needed to enumerate connections */
119 *lpcConnections
= 0; /* no RAS connections available */
124 /**************************************************************************
125 * RasEnumEntriesA [RASAPI32.546]
127 DWORD WINAPI
RasEnumEntriesA( LPCSTR Reserved
, LPCSTR lpszPhoneBook
,
128 LPRASENTRYNAMEA lpRasEntryName
,
129 LPDWORD lpcb
, LPDWORD lpcEntries
)
131 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_a(lpszPhoneBook
),
132 lpRasEntryName
,lpcb
,lpcEntries
);
137 /**************************************************************************
138 * RasEnumEntriesW [RASAPI32.547]
140 DWORD WINAPI
RasEnumEntriesW( LPCWSTR Reserved
, LPCWSTR lpszPhoneBook
,
141 LPRASENTRYNAMEW lpRasEntryName
,
142 LPDWORD lpcb
, LPDWORD lpcEntries
)
144 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_w(lpszPhoneBook
),
145 lpRasEntryName
,lpcb
,lpcEntries
);
150 DWORD WINAPI
RasGetConnectStatusA(HRASCONN hrasconn
, LPRASCONNSTATUSA lprasconnstatus
)
152 FIXME("(%p,%p),stub!\n",hrasconn
,lprasconnstatus
);
156 DWORD WINAPI
RasGetConnectStatusW(HRASCONN hrasconn
, LPRASCONNSTATUSW lprasconnstatus
)
158 FIXME("(%p,%p),stub!\n",hrasconn
,lprasconnstatus
);
162 /**************************************************************************
163 * RasGetEntryDialParamsA [RASAPI32.550]
165 DWORD WINAPI
RasGetEntryDialParamsA(
166 LPCSTR lpszPhoneBook
, LPRASDIALPARAMSA lpRasDialParams
,
169 FIXME("(%s,%p,%p),stub!\n",debugstr_a(lpszPhoneBook
),
170 lpRasDialParams
,lpfPassword
);
174 /**************************************************************************
175 * RasGetEntryDialParamsW [RASAPI32.551]
177 DWORD WINAPI
RasGetEntryDialParamsW(
178 LPCWSTR lpszPhoneBook
, LPRASDIALPARAMSW lpRasDialParams
,
181 FIXME("(%s,%p,%p),stub!\n",debugstr_w(lpszPhoneBook
),
182 lpRasDialParams
,lpfPassword
);
186 /**************************************************************************
187 * RasHangUpA [RASAPI32.556]
189 DWORD WINAPI
RasHangUpA( HRASCONN hrasconn
)
191 FIXME("(%p),stub!\n",hrasconn
);
195 /**************************************************************************
196 * RasHangUpW [RASAPI32.557]
198 DWORD WINAPI
RasHangUpW(HRASCONN hrasconn
)
200 FIXME("(%p),stub!\n",hrasconn
);
204 /**************************************************************************
205 * RasDeleteEntryA [RASAPI32.7]
207 DWORD WINAPI
RasDeleteEntryA(LPCSTR a
, LPCSTR b
)
209 FIXME("(%s,%s),stub!\n",debugstr_a(a
),debugstr_a(b
));
213 /**************************************************************************
214 * RasDeleteEntryW [RASAPI32.8]
216 DWORD WINAPI
RasDeleteEntryW(LPCWSTR a
, LPCWSTR b
)
218 FIXME("(%s,%s),stub!\n",debugstr_w(a
),debugstr_w(b
));
222 /**************************************************************************
223 * RasEnumAutodialAddressesA [RASAPI32.14]
225 DWORD WINAPI
RasEnumAutodialAddressesA(LPSTR
*a
, LPDWORD b
, LPDWORD c
)
227 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
231 /**************************************************************************
232 * RasEnumAutodialAddressesW [RASAPI32.15]
234 DWORD WINAPI
RasEnumAutodialAddressesW(LPWSTR
*a
, LPDWORD b
, LPDWORD c
)
236 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
240 /**************************************************************************
241 * RasEnumDevicesA [RASAPI32.19]
243 * Just return a virtual modem too see what other APIs programs will
246 DWORD WINAPI
RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo
, LPDWORD lpcb
, LPDWORD lpcDevices
)
248 if (!lpcb
|| !lpcDevices
)
249 return ERROR_INVALID_PARAMETER
;
251 FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo
,lpcb
,lpcDevices
);
252 if (!lpRasDevinfo
|| (*lpcb
< sizeof(RASDEVINFOA
))) {
253 *lpcb
= sizeof(RASDEVINFOA
);
254 return ERROR_BUFFER_TOO_SMALL
;
257 strcpy(lpRasDevinfo
->szDeviceType
, RASDT_Modem
);
258 strcpy(lpRasDevinfo
->szDeviceName
, "WINE virtmodem");
262 /**************************************************************************
263 * RasEnumDevicesW [RASAPI32.20]
265 DWORD WINAPI
RasEnumDevicesW(LPRASDEVINFOW a
, LPDWORD b
, LPDWORD c
)
267 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
271 /**************************************************************************
272 * RasGetAutodialAddressA [RASAPI32.24]
274 DWORD WINAPI
RasGetAutodialAddressA(LPCSTR a
, LPDWORD b
, LPRASAUTODIALENTRYA c
,
275 LPDWORD d
, LPDWORD e
)
277 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
281 /**************************************************************************
282 * RasGetAutodialAddressW [RASAPI32.25]
284 DWORD WINAPI
RasGetAutodialAddressW(LPCWSTR a
, LPDWORD b
, LPRASAUTODIALENTRYW c
,
285 LPDWORD d
, LPDWORD e
)
287 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
291 /**************************************************************************
292 * RasGetAutodialEnableA [RASAPI32.26]
294 DWORD WINAPI
RasGetAutodialEnableA(DWORD a
, LPBOOL b
)
296 FIXME("(%x,%p),stub!\n",a
,b
);
300 /**************************************************************************
301 * RasGetAutodialEnableW [RASAPI32.27]
303 DWORD WINAPI
RasGetAutodialEnableW(DWORD a
, LPBOOL b
)
305 FIXME("(%x,%p),stub!\n",a
,b
);
309 /**************************************************************************
310 * RasGetAutodialParamA [RASAPI32.28]
312 DWORD WINAPI
RasGetAutodialParamA(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
314 FIXME("(%x,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
318 /**************************************************************************
319 * RasGetAutodialParamW [RASAPI32.29]
321 DWORD WINAPI
RasGetAutodialParamW(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
323 FIXME("(%x,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
327 /**************************************************************************
328 * RasSetAutodialAddressA [RASAPI32.57]
330 DWORD WINAPI
RasSetAutodialAddressA(LPCSTR a
, DWORD b
, LPRASAUTODIALENTRYA c
,
333 FIXME("(%s,%x,%p,%x,%x),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
337 /**************************************************************************
338 * RasSetAutodialAddressW [RASAPI32.58]
340 DWORD WINAPI
RasSetAutodialAddressW(LPCWSTR a
, DWORD b
, LPRASAUTODIALENTRYW c
,
343 FIXME("(%s,%x,%p,%x,%x),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
347 /**************************************************************************
348 * RasSetAutodialEnableA [RASAPI32.59]
350 DWORD WINAPI
RasSetAutodialEnableA(DWORD dwDialingLocation
, BOOL fEnabled
)
352 FIXME("(%x,%x),stub!\n",dwDialingLocation
,fEnabled
);
356 /**************************************************************************
357 * RasSetAutodialEnableW [RASAPI32.60]
359 DWORD WINAPI
RasSetAutodialEnableW(DWORD dwDialingLocation
, BOOL fEnabled
)
361 FIXME("(%x,%x),stub!\n",dwDialingLocation
,fEnabled
);
365 /**************************************************************************
366 * RasSetAutodialParamA [RASAPI32.61]
368 DWORD WINAPI
RasSetAutodialParamA(DWORD a
, LPVOID b
, DWORD c
)
370 FIXME("(%x,%p,%x),stub!\n",a
,b
,c
);
374 /**************************************************************************
375 * RasSetAutodialParamW [RASAPI32.62]
377 DWORD WINAPI
RasSetAutodialParamW(DWORD a
, LPVOID b
, DWORD c
)
379 FIXME("(%x,%p,%x),stub!\n",a
,b
,c
);
383 /**************************************************************************
384 * RasSetEntryPropertiesA [RASAPI32.67]
386 DWORD WINAPI
RasSetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
,
387 LPRASENTRYA lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
388 DWORD dwDeviceInfoSize
390 FIXME("(%s,%s,%p,%d,%p,%d), stub!\n",
391 debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
),
392 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
394 FIXME("Rasentry:\n");
395 FIXME("\tdwfOptions %x\n",lpRasEntry
->dwfOptions
);
396 FIXME("\tszLocalPhoneNumber %s\n",debugstr_a(lpRasEntry
->szLocalPhoneNumber
));
400 /**************************************************************************
401 * RasSetEntryPropertiesW [RASAPI32.68]
403 DWORD WINAPI
RasSetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
,
404 LPRASENTRYW lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
405 DWORD dwDeviceInfoSize
407 FIXME("(%s,%s,%p,%d,%p,%d), stub!\n",
408 debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
),
409 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
414 /**************************************************************************
415 * RasValidateEntryNameA [RASAPI32.72]
417 DWORD WINAPI
RasValidateEntryNameA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
) {
418 FIXME("(%s,%s), stub!\n",debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
));
422 /**************************************************************************
423 * RasValidateEntryNameW [RASAPI32.73]
425 DWORD WINAPI
RasValidateEntryNameW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
) {
426 FIXME("(%s,%s), stub!\n",debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
));
430 /**************************************************************************
431 * RasGetEntryPropertiesA [RASAPI32.@]
433 DWORD WINAPI
RasGetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, LPRASENTRYA lpRasEntry
,
434 LPDWORD lpdwEntryInfoSize
, LPBYTE lpbDeviceInfo
, LPDWORD lpdwDeviceInfoSize
436 FIXME("(%s,%s,%p,%p,%p,%p), stub!\n", debugstr_a(lpszPhonebook
), debugstr_a(lpszEntry
), lpRasEntry
,
437 lpdwEntryInfoSize
, lpbDeviceInfo
, lpdwDeviceInfoSize
);
441 /**************************************************************************
442 * RasGetEntryPropertiesW [RASAPI32.@]
444 DWORD WINAPI
RasGetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, LPRASENTRYW lpRasEntry
,
445 LPDWORD lpdwEntryInfoSize
, LPBYTE lpbDeviceInfo
, LPDWORD lpdwDeviceInfoSize
447 FIXME("(%s,%s,%p,%p,%p,%p), stub!\n", debugstr_w(lpszPhonebook
), debugstr_w(lpszEntry
), lpRasEntry
,
448 lpdwEntryInfoSize
, lpbDeviceInfo
, lpdwDeviceInfoSize
);
452 DWORD WINAPI
RasGetErrorStringA(UINT uErrorValue
, LPSTR lpszErrorString
, DWORD cBufSize
)
454 FIXME("(0x%08x,%p,0x%08x), stub!\n", uErrorValue
, lpszErrorString
, cBufSize
);
458 DWORD WINAPI
RasGetErrorStringW(UINT uErrorValue
, LPWSTR lpszErrorString
, DWORD cBufSize
)
460 FIXME("(0x%08x,%p,0x%08x), stub!\n", uErrorValue
, lpszErrorString
, cBufSize
);
464 DWORD WINAPI
RasGetProjectionInfoA(HRASCONN hrasconn
, RASPROJECTION rasprojection
,
465 LPVOID lpprojection
, LPDWORD lpcb
)
467 FIXME("(%p,0x%08x,%p,%p), stub!\n", hrasconn
, rasprojection
, lpprojection
, lpcb
);
471 DWORD WINAPI
RasGetProjectionInfoW(HRASCONN hrasconn
, RASPROJECTION rasprojection
,
472 LPVOID lpprojection
, LPDWORD lpcb
)
474 FIXME("(%p,0x%08x,%p,%p), stub!\n", hrasconn
, rasprojection
, lpprojection
, lpcb
);
478 DWORD WINAPI
RasRenameEntryA(LPCSTR lpszPhonebook
, LPCSTR lpszOldEntry
, LPCSTR lpszNewEntry
)
480 FIXME("(%s,%s,%s), stub!\n", debugstr_a(lpszPhonebook
), debugstr_a(lpszOldEntry
),
481 debugstr_a(lpszNewEntry
));
485 DWORD WINAPI
RasRenameEntryW(LPCWSTR lpszPhonebook
, LPCWSTR lpszOldEntry
, LPCWSTR lpszNewEntry
)
487 FIXME("(%s,%s,%s), stub!\n", debugstr_w(lpszPhonebook
), debugstr_w(lpszOldEntry
),
488 debugstr_w(lpszNewEntry
));
492 DWORD WINAPI
RasSetEntryDialParamsA(LPCSTR lpszPhonebook
, LPRASDIALPARAMSA lprasdialparams
,
493 BOOL fRemovePassword
)
495 FIXME("(%s,%p,0x%x), stub!\n", debugstr_a(lpszPhonebook
), lprasdialparams
, fRemovePassword
);
499 DWORD WINAPI
RasSetEntryDialParamsW(LPCWSTR lpszPhonebook
, LPRASDIALPARAMSW lprasdialparams
,
500 BOOL fRemovePassword
)
502 FIXME("(%s,%p,0x%x), stub!\n", debugstr_w(lpszPhonebook
), lprasdialparams
, fRemovePassword
);
506 DWORD WINAPI
RasSetSubEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, DWORD dwSubEntry
,
507 LPRASSUBENTRYA lpRasSubEntry
, DWORD dwcbRasSubEntry
,
508 LPBYTE lpbDeviceConfig
, DWORD dwcbDeviceConfig
)
510 FIXME("(%s,%s,0x%08x,%p,0x%08x,%p,0x%08x), stub!\n", debugstr_a(lpszPhonebook
),
511 debugstr_a(lpszEntry
), dwSubEntry
, lpRasSubEntry
, dwcbRasSubEntry
, lpbDeviceConfig
,
516 DWORD WINAPI
RasSetSubEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
, DWORD dwSubEntry
,
517 LPRASSUBENTRYW lpRasSubEntry
, DWORD dwcbRasSubEntry
,
518 LPBYTE lpbDeviceConfig
, DWORD dwcbDeviceConfig
)
520 FIXME("(%s,%s,0x%08x,%p,0x%08x,%p,0x%08x), stub!\n", debugstr_w(lpszPhonebook
),
521 debugstr_w(lpszEntry
), dwSubEntry
, lpRasSubEntry
, dwcbRasSubEntry
, lpbDeviceConfig
,