1998-12-11 14:26:26 +01:00
|
|
|
/*
|
|
|
|
* RASAPI32
|
2002-06-01 01:06:46 +02:00
|
|
|
*
|
2002-11-08 19:53:19 +01:00
|
|
|
* Copyright 1998,2001 Marcus Meissner
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1998-12-11 14:26:26 +01:00
|
|
|
*/
|
|
|
|
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
1998-12-11 14:26:26 +01:00
|
|
|
#include "ras.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
1998-12-11 14:26:26 +01:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(ras);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
1998-12-11 14:26:26 +01:00
|
|
|
/**************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* RasEnumConnectionsA [RASAPI32.544]
|
1998-12-11 14:26:26 +01:00
|
|
|
*/
|
2001-11-12 16:46:33 +01:00
|
|
|
DWORD WINAPI RasEnumConnectionsA( LPRASCONNA rca, LPDWORD lpcb, LPDWORD lpcConnections) {
|
1998-12-11 14:26:26 +01:00
|
|
|
/* Remote Access Service stuff is done by underlying OS anyway */
|
2001-11-12 16:46:33 +01:00
|
|
|
FIXME("(%p,%p,%p),stub!\n",rca,lpcb,lpcConnections);
|
2003-04-05 07:10:18 +02:00
|
|
|
FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
|
2001-11-12 16:46:33 +01:00
|
|
|
*lpcConnections = 0; /* no RAS connections available */
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1998-12-11 14:26:26 +01:00
|
|
|
return 0;
|
|
|
|
}
|
1999-11-07 06:49:28 +01:00
|
|
|
|
2002-11-04 23:38:45 +01:00
|
|
|
/**************************************************************************
|
|
|
|
* RasEnumConnectionsW [RASAPI32.545]
|
|
|
|
*/
|
|
|
|
DWORD WINAPI RasEnumConnectionsW( LPRASCONNW rcw, LPDWORD lpcb, LPDWORD lpcConnections) {
|
|
|
|
/* Remote Access Service stuff is done by underlying OS anyway */
|
|
|
|
FIXME("(%p,%p,%p),stub!\n",rcw,lpcb,lpcConnections);
|
2003-04-05 07:10:18 +02:00
|
|
|
FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
|
2002-11-04 23:38:45 +01:00
|
|
|
*lpcConnections = 0; /* no RAS connections available */
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-11-07 06:49:28 +01:00
|
|
|
/**************************************************************************
|
|
|
|
* RasEnumEntriesA [RASAPI32.546]
|
|
|
|
*/
|
2000-12-24 21:44:08 +01:00
|
|
|
DWORD WINAPI RasEnumEntriesA( LPCSTR Reserved, LPCSTR lpszPhoneBook,
|
2002-06-01 01:06:46 +02:00
|
|
|
LPRASENTRYNAMEA lpRasEntryName,
|
|
|
|
LPDWORD lpcb, LPDWORD lpcEntries)
|
1999-11-07 06:49:28 +01:00
|
|
|
{
|
|
|
|
FIXME("(%p,%s,%p,%p,%p),stub!\n",Reserved,debugstr_a(lpszPhoneBook),
|
|
|
|
lpRasEntryName,lpcb,lpcEntries);
|
1999-11-12 02:38:49 +01:00
|
|
|
*lpcEntries = 0;
|
1999-11-07 06:49:28 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* RasGetEntryDialParamsA [RASAPI32.550]
|
|
|
|
*/
|
2002-11-08 19:53:19 +01:00
|
|
|
DWORD WINAPI RasGetEntryDialParamsA(
|
|
|
|
LPCSTR lpszPhoneBook, LPRASDIALPARAMSA lpRasDialParams,
|
|
|
|
LPBOOL lpfPassword)
|
1999-11-07 06:49:28 +01:00
|
|
|
{
|
|
|
|
FIXME("(%s,%p,%p),stub!\n",debugstr_a(lpszPhoneBook),
|
|
|
|
lpRasDialParams,lpfPassword);
|
|
|
|
return 0;
|
|
|
|
}
|
2000-07-23 15:32:57 +02:00
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* RasHangUpA [RASAPI32.556]
|
|
|
|
*/
|
|
|
|
DWORD WINAPI RasHangUpA( HRASCONN hrasconn)
|
|
|
|
{
|
2002-10-19 01:48:57 +02:00
|
|
|
FIXME("(%p),stub!\n",hrasconn);
|
2000-07-23 15:32:57 +02:00
|
|
|
return 0;
|
|
|
|
}
|
2001-07-11 19:25:03 +02:00
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasDeleteEntryA [RASAPI32.7]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasDeleteEntryA(LPCSTR a, LPCSTR b)
|
|
|
|
{
|
|
|
|
FIXME("(%s,%s),stub!\n",debugstr_a(a),debugstr_a(b));
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasDeleteEntryW [RASAPI32.8]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasDeleteEntryW(LPCWSTR a, LPCWSTR b)
|
|
|
|
{
|
|
|
|
FIXME("(%s,%s),stub!\n",debugstr_w(a),debugstr_w(b));
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasEnumAutodialAddressesA [RASAPI32.14]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasEnumAutodialAddressesA(LPCSTR *a, LPDWORD b, LPDWORD c)
|
|
|
|
{
|
|
|
|
FIXME("(%p,%p,%p),stub!\n",a,b,c);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasEnumAutodialAddressesW [RASAPI32.15]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasEnumAutodialAddressesW(LPCWSTR *a, LPDWORD b, LPDWORD c)
|
|
|
|
{
|
|
|
|
FIXME("(%p,%p,%p),stub!\n",a,b,c);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef LPVOID LPRASAUTODIALENTRYA;
|
|
|
|
typedef LPVOID LPRASAUTODIALENTRYW;
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasEnumDevicesA [RASAPI32.19]
|
2002-11-08 19:53:19 +01:00
|
|
|
*
|
|
|
|
* Just return a virtual modem too see what other APIs programs will
|
|
|
|
* call with it.
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
2002-11-08 19:53:19 +01:00
|
|
|
DWORD WINAPI RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo, LPDWORD lpcb, LPDWORD lpcDevices)
|
2001-07-11 19:25:03 +02:00
|
|
|
{
|
2002-11-08 19:53:19 +01:00
|
|
|
FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo,lpcb,lpcDevices);
|
|
|
|
if (*lpcb < sizeof(RASDEVINFOA)) {
|
|
|
|
*lpcb = sizeof(RASDEVINFOA);
|
|
|
|
return ERROR_BUFFER_TOO_SMALL;
|
|
|
|
}
|
|
|
|
/* honor dwSize ? */
|
|
|
|
strcpy(lpRasDevinfo->szDeviceType, RASDT_Modem);
|
|
|
|
strcpy(lpRasDevinfo->szDeviceName, "WINE virtmodem");
|
2001-07-11 19:25:03 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasEnumDevicesW [RASAPI32.20]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasEnumDevicesW(LPRASDEVINFOW a, LPDWORD b, LPDWORD c)
|
|
|
|
{
|
|
|
|
FIXME("(%p,%p,%p),stub!\n",a,b,c);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasGetAutodialAddressA [RASAPI32.24]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasGetAutodialAddressA(LPCSTR a, LPDWORD b, LPRASAUTODIALENTRYA c,
|
|
|
|
LPDWORD d, LPDWORD e)
|
|
|
|
{
|
|
|
|
FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_a(a),b,c,d,e);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasGetAutodialAddressW [RASAPI32.25]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasGetAutodialAddressW(LPCWSTR a, LPDWORD b, LPRASAUTODIALENTRYW c,
|
|
|
|
LPDWORD d, LPDWORD e)
|
|
|
|
{
|
|
|
|
FIXME("(%s,%p,%p,%p,%p),stub!\n",debugstr_w(a),b,c,d,e);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasGetAutodialEnableA [RASAPI32.26]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasGetAutodialEnableA(DWORD a, LPBOOL b)
|
|
|
|
{
|
|
|
|
FIXME("(%lx,%p),stub!\n",a,b);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasGetAutodialEnableW [RASAPI32.27]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasGetAutodialEnableW(DWORD a, LPBOOL b)
|
|
|
|
{
|
|
|
|
FIXME("(%lx,%p),stub!\n",a,b);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasGetAutodialParamA [RASAPI32.28]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
2002-11-08 19:53:19 +01:00
|
|
|
DWORD WINAPI RasGetAutodialParamA(DWORD dwKey, LPVOID lpvValue, LPDWORD lpdwcbValue)
|
2001-07-11 19:25:03 +02:00
|
|
|
{
|
2002-11-08 19:53:19 +01:00
|
|
|
FIXME("(%lx,%p,%p),stub!\n",dwKey,lpvValue,lpdwcbValue);
|
2001-07-11 19:25:03 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasGetAutodialParamW [RASAPI32.29]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
2002-11-08 19:53:19 +01:00
|
|
|
DWORD WINAPI RasGetAutodialParamW(DWORD dwKey, LPVOID lpvValue, LPDWORD lpdwcbValue)
|
2001-07-11 19:25:03 +02:00
|
|
|
{
|
2002-11-08 19:53:19 +01:00
|
|
|
FIXME("(%lx,%p,%p),stub!\n",dwKey,lpvValue,lpdwcbValue);
|
2001-07-11 19:25:03 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasSetAutodialAddressA [RASAPI32.57]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasSetAutodialAddressA(LPCSTR a, DWORD b, LPRASAUTODIALENTRYA c,
|
|
|
|
DWORD d, DWORD e)
|
|
|
|
{
|
|
|
|
FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_a(a),b,c,d,e);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasSetAutodialAddressW [RASAPI32.58]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasSetAutodialAddressW(LPCWSTR a, DWORD b, LPRASAUTODIALENTRYW c,
|
|
|
|
DWORD d, DWORD e)
|
|
|
|
{
|
|
|
|
FIXME("(%s,%lx,%p,%lx,%lx),stub!\n",debugstr_w(a),b,c,d,e);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasSetAutodialEnableA [RASAPI32.59]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
2002-11-08 19:53:19 +01:00
|
|
|
DWORD WINAPI RasSetAutodialEnableA(DWORD dwDialingLocation, BOOL fEnabled)
|
2001-07-11 19:25:03 +02:00
|
|
|
{
|
2002-11-08 19:53:19 +01:00
|
|
|
FIXME("(%lx,%x),stub!\n",dwDialingLocation,fEnabled);
|
2001-07-11 19:25:03 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasSetAutodialEnableW [RASAPI32.60]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
2002-11-08 19:53:19 +01:00
|
|
|
DWORD WINAPI RasSetAutodialEnableW(DWORD dwDialingLocation, BOOL fEnabled)
|
2001-07-11 19:25:03 +02:00
|
|
|
{
|
2002-11-08 19:53:19 +01:00
|
|
|
FIXME("(%lx,%x),stub!\n",dwDialingLocation,fEnabled);
|
2001-07-11 19:25:03 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasSetAutodialParamA [RASAPI32.61]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasSetAutodialParamA(DWORD a, LPVOID b, DWORD c)
|
|
|
|
{
|
|
|
|
FIXME("(%lx,%p,%lx),stub!\n",a,b,c);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-13 00:33:51 +02:00
|
|
|
* RasSetAutodialParamW [RASAPI32.62]
|
2001-07-11 19:25:03 +02:00
|
|
|
*/
|
|
|
|
DWORD WINAPI RasSetAutodialParamW(DWORD a, LPVOID b, DWORD c)
|
|
|
|
{
|
|
|
|
FIXME("(%lx,%p,%lx),stub!\n",a,b,c);
|
|
|
|
return 0;
|
|
|
|
}
|
2002-11-06 20:52:48 +01:00
|
|
|
|
2002-11-08 19:53:19 +01:00
|
|
|
/**************************************************************************
|
|
|
|
* RasSetEntryPropertiesA [RASAPI32.67]
|
|
|
|
*/
|
|
|
|
DWORD WINAPI RasSetEntryPropertiesA(LPCSTR lpszPhonebook, LPCSTR lpszEntry,
|
|
|
|
LPRASENTRYA lpRasEntry, DWORD dwEntryInfoSize, LPBYTE lpbDeviceInfo,
|
|
|
|
DWORD dwDeviceInfoSize
|
|
|
|
) {
|
|
|
|
FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
|
|
|
|
debugstr_a(lpszPhonebook),debugstr_a(lpszEntry),
|
|
|
|
lpRasEntry,dwEntryInfoSize,lpbDeviceInfo,dwDeviceInfoSize
|
|
|
|
);
|
|
|
|
FIXME("Rasentry:\n");
|
|
|
|
FIXME("\tdwfOptions %lx\n",lpRasEntry->dwfOptions);
|
|
|
|
FIXME("\tszLocalPhoneNumber %s\n",debugstr_a(lpRasEntry->szLocalPhoneNumber));
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* RasSetEntryPropertiesW [RASAPI32.68]
|
|
|
|
*/
|
|
|
|
DWORD WINAPI RasSetEntryPropertiesW(LPCWSTR lpszPhonebook, LPCWSTR lpszEntry,
|
|
|
|
LPRASENTRYW lpRasEntry, DWORD dwEntryInfoSize, LPBYTE lpbDeviceInfo,
|
|
|
|
DWORD dwDeviceInfoSize
|
|
|
|
) {
|
|
|
|
FIXME("(%s,%s,%p,%ld,%p,%ld), stub!\n",
|
|
|
|
debugstr_w(lpszPhonebook),debugstr_w(lpszEntry),
|
|
|
|
lpRasEntry,dwEntryInfoSize,lpbDeviceInfo,dwDeviceInfoSize
|
|
|
|
);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2002-11-06 20:52:48 +01:00
|
|
|
/**************************************************************************
|
|
|
|
* RasValidateEntryNameA [RASAPI32.72]
|
|
|
|
*/
|
2002-11-08 19:53:19 +01:00
|
|
|
DWORD WINAPI RasValidateEntryNameA(LPCSTR lpszPhonebook, LPCSTR lpszEntry) {
|
|
|
|
FIXME("(%s,%s), stub!\n",debugstr_a(lpszPhonebook),debugstr_a(lpszEntry));
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* RasValidateEntryNameW [RASAPI32.73]
|
|
|
|
*/
|
|
|
|
DWORD WINAPI RasValidateEntryNameW(LPCWSTR lpszPhonebook, LPCWSTR lpszEntry) {
|
|
|
|
FIXME("(%s,%s), stub!\n",debugstr_w(lpszPhonebook),debugstr_w(lpszEntry));
|
2002-11-06 20:52:48 +01:00
|
|
|
return 0;
|
|
|
|
}
|