2002-03-10 00:29:33 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 1998 Marcus Meissner
|
|
|
|
*
|
|
|
|
* 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
|
|
|
#ifndef __WINE_RAS_H
|
|
|
|
#define __WINE_RAS_H
|
|
|
|
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
1999-11-07 06:49:28 +01:00
|
|
|
#include "lmcons.h"
|
1998-12-11 14:26:26 +01:00
|
|
|
|
2000-12-24 21:44:08 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#include "pshpack4.h"
|
|
|
|
|
1999-11-07 06:49:28 +01:00
|
|
|
#define RAS_MaxCallbackNumber RAS_MaxPhoneNumber
|
2000-12-24 21:44:08 +01:00
|
|
|
#define RAS_MaxDeviceName 128
|
|
|
|
#define RAS_MaxDeviceType 16
|
|
|
|
#define RAS_MaxEntryName 256
|
|
|
|
#define RAS_MaxPhoneNumber 128
|
|
|
|
|
|
|
|
DECLARE_HANDLE(HRASCONN);
|
1998-12-11 14:26:26 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct tagRASCONNA {
|
2000-12-24 21:44:08 +01:00
|
|
|
DWORD dwSize;
|
|
|
|
HRASCONN hRasConn;
|
|
|
|
CHAR szEntryName[ RAS_MaxEntryName + 1 ];
|
|
|
|
CHAR szDeviceType[ RAS_MaxDeviceType + 1 ];
|
|
|
|
CHAR szDeviceName[ RAS_MaxDeviceName + 1 ];
|
|
|
|
CHAR szPhonebook[ MAX_PATH ];
|
|
|
|
DWORD dwSubEntry;
|
1999-02-26 12:11:13 +01:00
|
|
|
} RASCONNA,*LPRASCONNA;
|
1998-12-11 14:26:26 +01:00
|
|
|
|
2000-12-24 21:44:08 +01:00
|
|
|
typedef struct tagRASCONNW {
|
|
|
|
DWORD dwSize;
|
|
|
|
HRASCONN hRasConn;
|
|
|
|
WCHAR szEntryName[ RAS_MaxEntryName + 1 ];
|
|
|
|
WCHAR szDeviceType[ RAS_MaxDeviceType + 1 ];
|
|
|
|
WCHAR szDeviceName[ RAS_MaxDeviceName + 1 ];
|
|
|
|
WCHAR szPhonebook[ MAX_PATH ];
|
|
|
|
DWORD dwSubEntry;
|
|
|
|
} RASCONNW,*LPRASCONNW;
|
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(RASCONN)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPRASCONN)
|
|
|
|
|
|
|
|
typedef struct tagRASENTRYNAMEA {
|
1999-11-07 06:49:28 +01:00
|
|
|
DWORD dwSize;
|
|
|
|
CHAR szEntryName[ RAS_MaxEntryName + 1 ];
|
2000-12-24 21:44:08 +01:00
|
|
|
} RASENTRYNAMEA, *LPRASENTRYNAMEA;
|
1999-11-07 06:49:28 +01:00
|
|
|
|
2000-12-24 21:44:08 +01:00
|
|
|
typedef struct tagRASENTRYNAMEW {
|
|
|
|
DWORD dwSize;
|
|
|
|
WCHAR szEntryName[ RAS_MaxEntryName + 1 ];
|
|
|
|
} RASENTRYNAMEW, *LPRASENTRYNAMEW;
|
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(RASENTRYNAME)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPRASENTRYNAME)
|
|
|
|
|
|
|
|
typedef struct tagRASDIALPARAMSA {
|
|
|
|
DWORD dwSize;
|
|
|
|
CHAR szEntryName[ RAS_MaxEntryName + 1 ];
|
|
|
|
CHAR szPhoneNumber[ RAS_MaxPhoneNumber + 1 ];
|
|
|
|
CHAR szCallbackNumber[ RAS_MaxCallbackNumber + 1 ];
|
|
|
|
CHAR szUserName[ UNLEN + 1 ];
|
|
|
|
CHAR szPassword[ PWLEN + 1 ];
|
|
|
|
CHAR szDomain[ DNLEN + 1 ];
|
|
|
|
DWORD dwSubEntry;
|
|
|
|
DWORD dwCallbackId;
|
|
|
|
} RASDIALPARAMSA, *LPRASDIALPARAMSA;
|
|
|
|
|
|
|
|
typedef struct tagRASDIALPARAMSW {
|
1999-11-07 06:49:28 +01:00
|
|
|
DWORD dwSize;
|
|
|
|
WCHAR szEntryName[ RAS_MaxEntryName + 1 ];
|
|
|
|
WCHAR szPhoneNumber[ RAS_MaxPhoneNumber + 1 ];
|
|
|
|
WCHAR szCallbackNumber[ RAS_MaxCallbackNumber + 1 ];
|
|
|
|
WCHAR szUserName[ UNLEN + 1 ];
|
|
|
|
WCHAR szPassword[ PWLEN + 1 ];
|
|
|
|
WCHAR szDomain[ DNLEN + 1 ];
|
|
|
|
DWORD dwSubEntry;
|
|
|
|
DWORD dwCallbackId;
|
2000-12-24 21:44:08 +01:00
|
|
|
} RASDIALPARAMSW, *LPRASDIALPARAMSW;
|
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(RASDIALPARAMS)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPRASDIALPARAMS)
|
1999-11-07 06:49:28 +01:00
|
|
|
|
|
|
|
|
2000-12-24 21:44:08 +01:00
|
|
|
DWORD WINAPI RasEnumConnectionsA(LPRASCONNA,LPDWORD,LPDWORD);
|
|
|
|
DWORD WINAPI RasEnumConnectionsW(LPRASCONNW,LPDWORD,LPDWORD);
|
|
|
|
#define RasEnumConnections WINELIB_NAME_AW(RasEnumConnections)
|
2002-06-01 01:06:46 +02:00
|
|
|
DWORD WINAPI RasEnumEntriesA(LPCSTR,LPCSTR,LPRASENTRYNAMEA,LPDWORD,LPDWORD);
|
|
|
|
DWORD WINAPI RasEnumEntriesW(LPCWSTR,LPCWSTR,LPRASENTRYNAMEW,LPDWORD,LPDWORD);
|
2000-12-24 21:44:08 +01:00
|
|
|
#define RasEnumEntries WINELIB_NAME_AW(RasEnumEntries)
|
2002-06-01 01:06:46 +02:00
|
|
|
DWORD WINAPI RasGetEntryDialParamsA(LPCSTR,LPRASDIALPARAMSA,LPBOOL);
|
|
|
|
DWORD WINAPI RasGetEntryDialParamsW(LPCWSTR,LPRASDIALPARAMSW,LPBOOL);
|
2000-12-24 21:44:08 +01:00
|
|
|
#define RasGetEntryDialParams WINELIB_NAME_AW(RasGetEntryDialParams)
|
|
|
|
DWORD WINAPI RasHangUpA(HRASCONN);
|
|
|
|
DWORD WINAPI RasHangUpW(HRASCONN);
|
|
|
|
#define RasHangUp WINELIB_NAME_AW(RasHangUp)
|
1999-11-07 06:49:28 +01:00
|
|
|
|
2000-12-24 21:44:08 +01:00
|
|
|
#include "poppack.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
1999-11-07 06:49:28 +01:00
|
|
|
|
1998-12-11 14:26:26 +01:00
|
|
|
#endif
|