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 /**************************************************************************
31 * RasEnumConnectionsA [RASAPI32.544]
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 */
42 /**************************************************************************
43 * RasEnumConnectionsW [RASAPI32.545]
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 */
54 /**************************************************************************
55 * RasEnumEntriesA [RASAPI32.546]
57 DWORD WINAPI
RasEnumEntriesA( LPCSTR Reserved
, LPCSTR lpszPhoneBook
,
58 LPRASENTRYNAMEA lpRasEntryName
,
59 LPDWORD lpcb
, LPDWORD lpcEntries
)
61 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_a(lpszPhoneBook
),
62 lpRasEntryName
,lpcb
,lpcEntries
);
67 /**************************************************************************
68 * RasEnumEntriesW [RASAPI32.547]
70 DWORD WINAPI
RasEnumEntriesW( LPCWSTR Reserved
, LPCWSTR lpszPhoneBook
,
71 LPRASENTRYNAMEW lpRasEntryName
,
72 LPDWORD lpcb
, LPDWORD lpcEntries
)
74 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_w(lpszPhoneBook
),
75 lpRasEntryName
,lpcb
,lpcEntries
);
81 /**************************************************************************
82 * RasGetEntryDialParamsA [RASAPI32.550]
84 DWORD WINAPI
RasGetEntryDialParamsA(
85 LPCSTR lpszPhoneBook
, LPRASDIALPARAMSA lpRasDialParams
,
88 FIXME("(%s,%p,%p),stub!\n",debugstr_a(lpszPhoneBook
),
89 lpRasDialParams
,lpfPassword
);
93 /**************************************************************************
94 * RasHangUpA [RASAPI32.556]
96 DWORD WINAPI
RasHangUpA( HRASCONN hrasconn
)
98 FIXME("(%p),stub!\n",hrasconn
);
102 /**************************************************************************
103 * RasDeleteEntryA [RASAPI32.7]
105 DWORD WINAPI
RasDeleteEntryA(LPCSTR a
, LPCSTR b
)
107 FIXME("(%s,%s),stub!\n",debugstr_a(a
),debugstr_a(b
));
111 /**************************************************************************
112 * RasDeleteEntryW [RASAPI32.8]
114 DWORD WINAPI
RasDeleteEntryW(LPCWSTR a
, LPCWSTR b
)
116 FIXME("(%s,%s),stub!\n",debugstr_w(a
),debugstr_w(b
));
120 /**************************************************************************
121 * RasEnumAutodialAddressesA [RASAPI32.14]
123 DWORD WINAPI
RasEnumAutodialAddressesA(LPCSTR
*a
, LPDWORD b
, LPDWORD c
)
125 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
129 /**************************************************************************
130 * RasEnumAutodialAddressesW [RASAPI32.15]
132 DWORD WINAPI
RasEnumAutodialAddressesW(LPCWSTR
*a
, LPDWORD b
, LPDWORD c
)
134 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
138 typedef LPVOID LPRASAUTODIALENTRYA
;
139 typedef LPVOID LPRASAUTODIALENTRYW
;
141 /**************************************************************************
142 * RasEnumDevicesA [RASAPI32.19]
144 * Just return a virtual modem too see what other APIs programs will
147 DWORD WINAPI
RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo
, LPDWORD lpcb
, LPDWORD lpcDevices
)
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
;
155 strcpy(lpRasDevinfo
->szDeviceType
, RASDT_Modem
);
156 strcpy(lpRasDevinfo
->szDeviceName
, "WINE virtmodem");
160 /**************************************************************************
161 * RasEnumDevicesW [RASAPI32.20]
163 DWORD WINAPI
RasEnumDevicesW(LPRASDEVINFOW a
, LPDWORD b
, LPDWORD c
)
165 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
169 /**************************************************************************
170 * RasGetAutodialAddressA [RASAPI32.24]
172 DWORD WINAPI
RasGetAutodialAddressA(LPCSTR a
, LPDWORD b
, LPRASAUTODIALENTRYA c
,
173 LPDWORD d
, LPDWORD e
)
175 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
179 /**************************************************************************
180 * RasGetAutodialAddressW [RASAPI32.25]
182 DWORD WINAPI
RasGetAutodialAddressW(LPCWSTR a
, LPDWORD b
, LPRASAUTODIALENTRYW c
,
183 LPDWORD d
, LPDWORD e
)
185 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
189 /**************************************************************************
190 * RasGetAutodialEnableA [RASAPI32.26]
192 DWORD WINAPI
RasGetAutodialEnableA(DWORD a
, LPBOOL b
)
194 FIXME("(%lx,%p),stub!\n",a
,b
);
198 /**************************************************************************
199 * RasGetAutodialEnableW [RASAPI32.27]
201 DWORD WINAPI
RasGetAutodialEnableW(DWORD a
, LPBOOL b
)
203 FIXME("(%lx,%p),stub!\n",a
,b
);
207 /**************************************************************************
208 * RasGetAutodialParamA [RASAPI32.28]
210 DWORD WINAPI
RasGetAutodialParamA(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
212 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
216 /**************************************************************************
217 * RasGetAutodialParamW [RASAPI32.29]
219 DWORD WINAPI
RasGetAutodialParamW(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
221 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
225 /**************************************************************************
226 * RasSetAutodialAddressA [RASAPI32.57]
228 DWORD WINAPI
RasSetAutodialAddressA(LPCSTR a
, DWORD b
, LPRASAUTODIALENTRYA c
,
231 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
235 /**************************************************************************
236 * RasSetAutodialAddressW [RASAPI32.58]
238 DWORD WINAPI
RasSetAutodialAddressW(LPCWSTR a
, DWORD b
, LPRASAUTODIALENTRYW c
,
241 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
245 /**************************************************************************
246 * RasSetAutodialEnableA [RASAPI32.59]
248 DWORD WINAPI
RasSetAutodialEnableA(DWORD dwDialingLocation
, BOOL fEnabled
)
250 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
254 /**************************************************************************
255 * RasSetAutodialEnableW [RASAPI32.60]
257 DWORD WINAPI
RasSetAutodialEnableW(DWORD dwDialingLocation
, BOOL fEnabled
)
259 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
263 /**************************************************************************
264 * RasSetAutodialParamA [RASAPI32.61]
266 DWORD WINAPI
RasSetAutodialParamA(DWORD a
, LPVOID b
, DWORD c
)
268 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
272 /**************************************************************************
273 * RasSetAutodialParamW [RASAPI32.62]
275 DWORD WINAPI
RasSetAutodialParamW(DWORD a
, LPVOID b
, DWORD c
)
277 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
281 /**************************************************************************
282 * RasSetEntryPropertiesA [RASAPI32.67]
284 DWORD WINAPI
RasSetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
,
285 LPRASENTRYA lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
286 DWORD dwDeviceInfoSize
288 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
289 debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
),
290 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
292 FIXME("Rasentry:\n");
293 FIXME("\tdwfOptions %lx\n",lpRasEntry
->dwfOptions
);
294 FIXME("\tszLocalPhoneNumber %s\n",debugstr_a(lpRasEntry
->szLocalPhoneNumber
));
298 /**************************************************************************
299 * RasSetEntryPropertiesW [RASAPI32.68]
301 DWORD WINAPI
RasSetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
,
302 LPRASENTRYW lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
303 DWORD dwDeviceInfoSize
305 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
306 debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
),
307 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
312 /**************************************************************************
313 * RasValidateEntryNameA [RASAPI32.72]
315 DWORD WINAPI
RasValidateEntryNameA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
) {
316 FIXME("(%s,%s), stub!\n",debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
));
320 /**************************************************************************
321 * RasValidateEntryNameW [RASAPI32.73]
323 DWORD WINAPI
RasValidateEntryNameW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
) {
324 FIXME("(%s,%s), stub!\n",debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
));
328 /**************************************************************************
329 * RasGetEntryPropertiesA [RASAPI32.@]
331 DWORD WINAPI
RasGetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
, LPRASENTRYA lpRasEntry
,
332 LPDWORD lpdwEntryInfoSize
, LPBYTE lpbDeviceInfo
, LPDWORD lpdwDeviceInfoSize
334 FIXME("(%s,%s,%p,%p,%p,%p), stub!\n", lpszPhonebook
, lpszEntry
, lpRasEntry
, lpdwEntryInfoSize
,
335 lpbDeviceInfo
, lpdwDeviceInfoSize
);