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
23 #include "wine/debug.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(ras
);
27 /**************************************************************************
28 * RasEnumConnectionsA [RASAPI32.544]
30 DWORD WINAPI
RasEnumConnectionsA( LPRASCONNA rca
, LPDWORD lpcb
, LPDWORD lpcConnections
) {
31 /* Remote Access Service stuff is done by underlying OS anyway */
32 FIXME("(%p,%p,%p),stub!\n",rca
,lpcb
,lpcConnections
);
33 FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
34 *lpcConnections
= 0; /* no RAS connections available */
39 /**************************************************************************
40 * RasEnumConnectionsW [RASAPI32.545]
42 DWORD WINAPI
RasEnumConnectionsW( LPRASCONNW rcw
, LPDWORD lpcb
, LPDWORD lpcConnections
) {
43 /* Remote Access Service stuff is done by underlying OS anyway */
44 FIXME("(%p,%p,%p),stub!\n",rcw
,lpcb
,lpcConnections
);
45 FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
46 *lpcConnections
= 0; /* no RAS connections available */
51 /**************************************************************************
52 * RasEnumEntriesA [RASAPI32.546]
54 DWORD WINAPI
RasEnumEntriesA( LPCSTR Reserved
, LPCSTR lpszPhoneBook
,
55 LPRASENTRYNAMEA lpRasEntryName
,
56 LPDWORD lpcb
, LPDWORD lpcEntries
)
58 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_a(lpszPhoneBook
),
59 lpRasEntryName
,lpcb
,lpcEntries
);
64 /**************************************************************************
65 * RasGetEntryDialParamsA [RASAPI32.550]
67 DWORD WINAPI
RasGetEntryDialParamsA(
68 LPCSTR lpszPhoneBook
, LPRASDIALPARAMSA lpRasDialParams
,
71 FIXME("(%s,%p,%p),stub!\n",debugstr_a(lpszPhoneBook
),
72 lpRasDialParams
,lpfPassword
);
76 /**************************************************************************
77 * RasHangUpA [RASAPI32.556]
79 DWORD WINAPI
RasHangUpA( HRASCONN hrasconn
)
81 FIXME("(%p),stub!\n",hrasconn
);
85 /**************************************************************************
86 * RasDeleteEntryA [RASAPI32.7]
88 DWORD WINAPI
RasDeleteEntryA(LPCSTR a
, LPCSTR b
)
90 FIXME("(%s,%s),stub!\n",debugstr_a(a
),debugstr_a(b
));
94 /**************************************************************************
95 * RasDeleteEntryW [RASAPI32.8]
97 DWORD WINAPI
RasDeleteEntryW(LPCWSTR a
, LPCWSTR b
)
99 FIXME("(%s,%s),stub!\n",debugstr_w(a
),debugstr_w(b
));
103 /**************************************************************************
104 * RasEnumAutodialAddressesA [RASAPI32.14]
106 DWORD WINAPI
RasEnumAutodialAddressesA(LPCSTR
*a
, LPDWORD b
, LPDWORD c
)
108 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
112 /**************************************************************************
113 * RasEnumAutodialAddressesW [RASAPI32.15]
115 DWORD WINAPI
RasEnumAutodialAddressesW(LPCWSTR
*a
, LPDWORD b
, LPDWORD c
)
117 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
121 typedef LPVOID LPRASAUTODIALENTRYA
;
122 typedef LPVOID LPRASAUTODIALENTRYW
;
124 /**************************************************************************
125 * RasEnumDevicesA [RASAPI32.19]
127 * Just return a virtual modem too see what other APIs programs will
130 DWORD WINAPI
RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo
, LPDWORD lpcb
, LPDWORD lpcDevices
)
132 FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo
,lpcb
,lpcDevices
);
133 if (*lpcb
< sizeof(RASDEVINFOA
)) {
134 *lpcb
= sizeof(RASDEVINFOA
);
135 return ERROR_BUFFER_TOO_SMALL
;
138 strcpy(lpRasDevinfo
->szDeviceType
, RASDT_Modem
);
139 strcpy(lpRasDevinfo
->szDeviceName
, "WINE virtmodem");
143 /**************************************************************************
144 * RasEnumDevicesW [RASAPI32.20]
146 DWORD WINAPI
RasEnumDevicesW(LPRASDEVINFOW a
, LPDWORD b
, LPDWORD c
)
148 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
152 /**************************************************************************
153 * RasGetAutodialAddressA [RASAPI32.24]
155 DWORD WINAPI
RasGetAutodialAddressA(LPCSTR a
, LPDWORD b
, LPRASAUTODIALENTRYA c
,
156 LPDWORD d
, LPDWORD e
)
158 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
162 /**************************************************************************
163 * RasGetAutodialAddressW [RASAPI32.25]
165 DWORD WINAPI
RasGetAutodialAddressW(LPCWSTR a
, LPDWORD b
, LPRASAUTODIALENTRYW c
,
166 LPDWORD d
, LPDWORD e
)
168 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
172 /**************************************************************************
173 * RasGetAutodialEnableA [RASAPI32.26]
175 DWORD WINAPI
RasGetAutodialEnableA(DWORD a
, LPBOOL b
)
177 FIXME("(%lx,%p),stub!\n",a
,b
);
181 /**************************************************************************
182 * RasGetAutodialEnableW [RASAPI32.27]
184 DWORD WINAPI
RasGetAutodialEnableW(DWORD a
, LPBOOL b
)
186 FIXME("(%lx,%p),stub!\n",a
,b
);
190 /**************************************************************************
191 * RasGetAutodialParamA [RASAPI32.28]
193 DWORD WINAPI
RasGetAutodialParamA(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
195 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
199 /**************************************************************************
200 * RasGetAutodialParamW [RASAPI32.29]
202 DWORD WINAPI
RasGetAutodialParamW(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
204 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
208 /**************************************************************************
209 * RasSetAutodialAddressA [RASAPI32.57]
211 DWORD WINAPI
RasSetAutodialAddressA(LPCSTR a
, DWORD b
, LPRASAUTODIALENTRYA c
,
214 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
218 /**************************************************************************
219 * RasSetAutodialAddressW [RASAPI32.58]
221 DWORD WINAPI
RasSetAutodialAddressW(LPCWSTR a
, DWORD b
, LPRASAUTODIALENTRYW c
,
224 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
228 /**************************************************************************
229 * RasSetAutodialEnableA [RASAPI32.59]
231 DWORD WINAPI
RasSetAutodialEnableA(DWORD dwDialingLocation
, BOOL fEnabled
)
233 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
237 /**************************************************************************
238 * RasSetAutodialEnableW [RASAPI32.60]
240 DWORD WINAPI
RasSetAutodialEnableW(DWORD dwDialingLocation
, BOOL fEnabled
)
242 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
246 /**************************************************************************
247 * RasSetAutodialParamA [RASAPI32.61]
249 DWORD WINAPI
RasSetAutodialParamA(DWORD a
, LPVOID b
, DWORD c
)
251 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
255 /**************************************************************************
256 * RasSetAutodialParamW [RASAPI32.62]
258 DWORD WINAPI
RasSetAutodialParamW(DWORD a
, LPVOID b
, DWORD c
)
260 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
264 /**************************************************************************
265 * RasSetEntryPropertiesA [RASAPI32.67]
267 DWORD WINAPI
RasSetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
,
268 LPRASENTRYA lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
269 DWORD dwDeviceInfoSize
271 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
272 debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
),
273 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
275 FIXME("Rasentry:\n");
276 FIXME("\tdwfOptions %lx\n",lpRasEntry
->dwfOptions
);
277 FIXME("\tszLocalPhoneNumber %s\n",debugstr_a(lpRasEntry
->szLocalPhoneNumber
));
281 /**************************************************************************
282 * RasSetEntryPropertiesW [RASAPI32.68]
284 DWORD WINAPI
RasSetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
,
285 LPRASENTRYW lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
286 DWORD dwDeviceInfoSize
288 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
289 debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
),
290 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
295 /**************************************************************************
296 * RasValidateEntryNameA [RASAPI32.72]
298 DWORD WINAPI
RasValidateEntryNameA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
) {
299 FIXME("(%s,%s), stub!\n",debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
));
303 /**************************************************************************
304 * RasValidateEntryNameW [RASAPI32.73]
306 DWORD WINAPI
RasValidateEntryNameW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
) {
307 FIXME("(%s,%s), stub!\n",debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
));