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 * RasEnumEntriesW [RASAPI32.547]
67 DWORD WINAPI
RasEnumEntriesW( LPCWSTR Reserved
, LPCWSTR lpszPhoneBook
,
68 LPRASENTRYNAMEW lpRasEntryName
,
69 LPDWORD lpcb
, LPDWORD lpcEntries
)
71 FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved
,debugstr_w(lpszPhoneBook
),
72 lpRasEntryName
,lpcb
,lpcEntries
);
78 /**************************************************************************
79 * RasGetEntryDialParamsA [RASAPI32.550]
81 DWORD WINAPI
RasGetEntryDialParamsA(
82 LPCSTR lpszPhoneBook
, LPRASDIALPARAMSA lpRasDialParams
,
85 FIXME("(%s,%p,%p),stub!\n",debugstr_a(lpszPhoneBook
),
86 lpRasDialParams
,lpfPassword
);
90 /**************************************************************************
91 * RasHangUpA [RASAPI32.556]
93 DWORD WINAPI
RasHangUpA( HRASCONN hrasconn
)
95 FIXME("(%p),stub!\n",hrasconn
);
99 /**************************************************************************
100 * RasDeleteEntryA [RASAPI32.7]
102 DWORD WINAPI
RasDeleteEntryA(LPCSTR a
, LPCSTR b
)
104 FIXME("(%s,%s),stub!\n",debugstr_a(a
),debugstr_a(b
));
108 /**************************************************************************
109 * RasDeleteEntryW [RASAPI32.8]
111 DWORD WINAPI
RasDeleteEntryW(LPCWSTR a
, LPCWSTR b
)
113 FIXME("(%s,%s),stub!\n",debugstr_w(a
),debugstr_w(b
));
117 /**************************************************************************
118 * RasEnumAutodialAddressesA [RASAPI32.14]
120 DWORD WINAPI
RasEnumAutodialAddressesA(LPCSTR
*a
, LPDWORD b
, LPDWORD c
)
122 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
126 /**************************************************************************
127 * RasEnumAutodialAddressesW [RASAPI32.15]
129 DWORD WINAPI
RasEnumAutodialAddressesW(LPCWSTR
*a
, LPDWORD b
, LPDWORD c
)
131 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
135 typedef LPVOID LPRASAUTODIALENTRYA
;
136 typedef LPVOID LPRASAUTODIALENTRYW
;
138 /**************************************************************************
139 * RasEnumDevicesA [RASAPI32.19]
141 * Just return a virtual modem too see what other APIs programs will
144 DWORD WINAPI
RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo
, LPDWORD lpcb
, LPDWORD lpcDevices
)
146 FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo
,lpcb
,lpcDevices
);
147 if (*lpcb
< sizeof(RASDEVINFOA
)) {
148 *lpcb
= sizeof(RASDEVINFOA
);
149 return ERROR_BUFFER_TOO_SMALL
;
152 strcpy(lpRasDevinfo
->szDeviceType
, RASDT_Modem
);
153 strcpy(lpRasDevinfo
->szDeviceName
, "WINE virtmodem");
157 /**************************************************************************
158 * RasEnumDevicesW [RASAPI32.20]
160 DWORD WINAPI
RasEnumDevicesW(LPRASDEVINFOW a
, LPDWORD b
, LPDWORD c
)
162 FIXME("(%p,%p,%p),stub!\n",a
,b
,c
);
166 /**************************************************************************
167 * RasGetAutodialAddressA [RASAPI32.24]
169 DWORD WINAPI
RasGetAutodialAddressA(LPCSTR a
, LPDWORD b
, LPRASAUTODIALENTRYA c
,
170 LPDWORD d
, LPDWORD e
)
172 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
176 /**************************************************************************
177 * RasGetAutodialAddressW [RASAPI32.25]
179 DWORD WINAPI
RasGetAutodialAddressW(LPCWSTR a
, LPDWORD b
, LPRASAUTODIALENTRYW c
,
180 LPDWORD d
, LPDWORD e
)
182 FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
186 /**************************************************************************
187 * RasGetAutodialEnableA [RASAPI32.26]
189 DWORD WINAPI
RasGetAutodialEnableA(DWORD a
, LPBOOL b
)
191 FIXME("(%lx,%p),stub!\n",a
,b
);
195 /**************************************************************************
196 * RasGetAutodialEnableW [RASAPI32.27]
198 DWORD WINAPI
RasGetAutodialEnableW(DWORD a
, LPBOOL b
)
200 FIXME("(%lx,%p),stub!\n",a
,b
);
204 /**************************************************************************
205 * RasGetAutodialParamA [RASAPI32.28]
207 DWORD WINAPI
RasGetAutodialParamA(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
209 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
213 /**************************************************************************
214 * RasGetAutodialParamW [RASAPI32.29]
216 DWORD WINAPI
RasGetAutodialParamW(DWORD dwKey
, LPVOID lpvValue
, LPDWORD lpdwcbValue
)
218 FIXME("(%lx,%p,%p),stub!\n",dwKey
,lpvValue
,lpdwcbValue
);
222 /**************************************************************************
223 * RasSetAutodialAddressA [RASAPI32.57]
225 DWORD WINAPI
RasSetAutodialAddressA(LPCSTR a
, DWORD b
, LPRASAUTODIALENTRYA c
,
228 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_a(a
),b
,c
,d
,e
);
232 /**************************************************************************
233 * RasSetAutodialAddressW [RASAPI32.58]
235 DWORD WINAPI
RasSetAutodialAddressW(LPCWSTR a
, DWORD b
, LPRASAUTODIALENTRYW c
,
238 FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_w(a
),b
,c
,d
,e
);
242 /**************************************************************************
243 * RasSetAutodialEnableA [RASAPI32.59]
245 DWORD WINAPI
RasSetAutodialEnableA(DWORD dwDialingLocation
, BOOL fEnabled
)
247 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
251 /**************************************************************************
252 * RasSetAutodialEnableW [RASAPI32.60]
254 DWORD WINAPI
RasSetAutodialEnableW(DWORD dwDialingLocation
, BOOL fEnabled
)
256 FIXME("(%lx,%x),stub!\n",dwDialingLocation
,fEnabled
);
260 /**************************************************************************
261 * RasSetAutodialParamA [RASAPI32.61]
263 DWORD WINAPI
RasSetAutodialParamA(DWORD a
, LPVOID b
, DWORD c
)
265 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
269 /**************************************************************************
270 * RasSetAutodialParamW [RASAPI32.62]
272 DWORD WINAPI
RasSetAutodialParamW(DWORD a
, LPVOID b
, DWORD c
)
274 FIXME("(%lx,%p,%lx),stub!\n",a
,b
,c
);
278 /**************************************************************************
279 * RasSetEntryPropertiesA [RASAPI32.67]
281 DWORD WINAPI
RasSetEntryPropertiesA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
,
282 LPRASENTRYA lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
283 DWORD dwDeviceInfoSize
285 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
286 debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
),
287 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
289 FIXME("Rasentry:\n");
290 FIXME("\tdwfOptions %lx\n",lpRasEntry
->dwfOptions
);
291 FIXME("\tszLocalPhoneNumber %s\n",debugstr_a(lpRasEntry
->szLocalPhoneNumber
));
295 /**************************************************************************
296 * RasSetEntryPropertiesW [RASAPI32.68]
298 DWORD WINAPI
RasSetEntryPropertiesW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
,
299 LPRASENTRYW lpRasEntry
, DWORD dwEntryInfoSize
, LPBYTE lpbDeviceInfo
,
300 DWORD dwDeviceInfoSize
302 FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
303 debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
),
304 lpRasEntry
,dwEntryInfoSize
,lpbDeviceInfo
,dwDeviceInfoSize
309 /**************************************************************************
310 * RasValidateEntryNameA [RASAPI32.72]
312 DWORD WINAPI
RasValidateEntryNameA(LPCSTR lpszPhonebook
, LPCSTR lpszEntry
) {
313 FIXME("(%s,%s), stub!\n",debugstr_a(lpszPhonebook
),debugstr_a(lpszEntry
));
317 /**************************************************************************
318 * RasValidateEntryNameW [RASAPI32.73]
320 DWORD WINAPI
RasValidateEntryNameW(LPCWSTR lpszPhonebook
, LPCWSTR lpszEntry
) {
321 FIXME("(%s,%s), stub!\n",debugstr_w(lpszPhonebook
),debugstr_w(lpszEntry
));