Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 1998 Marcus Meissner |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2.1 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | */ |
| 18 | |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 19 | #ifndef __WINE_RAS_H |
| 20 | #define __WINE_RAS_H |
| 21 | |
Jim Aston | 2e1cafa | 1999-03-14 16:35:05 +0000 | [diff] [blame] | 22 | #include "windef.h" |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 23 | #include "lmcons.h" |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 24 | |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 25 | #ifdef __cplusplus |
| 26 | extern "C" { |
| 27 | #endif |
| 28 | #include "pshpack4.h" |
| 29 | |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 30 | #define RAS_MaxCallbackNumber RAS_MaxPhoneNumber |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 31 | #define RAS_MaxDeviceName 128 |
| 32 | #define RAS_MaxDeviceType 16 |
| 33 | #define RAS_MaxEntryName 256 |
| 34 | #define RAS_MaxPhoneNumber 128 |
| 35 | |
| 36 | DECLARE_HANDLE(HRASCONN); |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 37 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 38 | typedef struct tagRASCONNA { |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 39 | DWORD dwSize; |
| 40 | HRASCONN hRasConn; |
| 41 | CHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 42 | CHAR szDeviceType[ RAS_MaxDeviceType + 1 ]; |
| 43 | CHAR szDeviceName[ RAS_MaxDeviceName + 1 ]; |
| 44 | CHAR szPhonebook[ MAX_PATH ]; |
| 45 | DWORD dwSubEntry; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 46 | } RASCONNA,*LPRASCONNA; |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 47 | |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 48 | typedef struct tagRASCONNW { |
| 49 | DWORD dwSize; |
| 50 | HRASCONN hRasConn; |
| 51 | WCHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 52 | WCHAR szDeviceType[ RAS_MaxDeviceType + 1 ]; |
| 53 | WCHAR szDeviceName[ RAS_MaxDeviceName + 1 ]; |
| 54 | WCHAR szPhonebook[ MAX_PATH ]; |
| 55 | DWORD dwSubEntry; |
| 56 | } RASCONNW,*LPRASCONNW; |
| 57 | |
| 58 | DECL_WINELIB_TYPE_AW(RASCONN) |
| 59 | DECL_WINELIB_TYPE_AW(LPRASCONN) |
| 60 | |
| 61 | typedef struct tagRASENTRYNAMEA { |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 62 | DWORD dwSize; |
| 63 | CHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 64 | } RASENTRYNAMEA, *LPRASENTRYNAMEA; |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 65 | |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 66 | typedef struct tagRASENTRYNAMEW { |
| 67 | DWORD dwSize; |
| 68 | WCHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 69 | } RASENTRYNAMEW, *LPRASENTRYNAMEW; |
| 70 | |
| 71 | DECL_WINELIB_TYPE_AW(RASENTRYNAME) |
| 72 | DECL_WINELIB_TYPE_AW(LPRASENTRYNAME) |
| 73 | |
| 74 | typedef struct tagRASDIALPARAMSA { |
| 75 | DWORD dwSize; |
| 76 | CHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 77 | CHAR szPhoneNumber[ RAS_MaxPhoneNumber + 1 ]; |
| 78 | CHAR szCallbackNumber[ RAS_MaxCallbackNumber + 1 ]; |
| 79 | CHAR szUserName[ UNLEN + 1 ]; |
| 80 | CHAR szPassword[ PWLEN + 1 ]; |
| 81 | CHAR szDomain[ DNLEN + 1 ]; |
| 82 | DWORD dwSubEntry; |
| 83 | DWORD dwCallbackId; |
| 84 | } RASDIALPARAMSA, *LPRASDIALPARAMSA; |
| 85 | |
| 86 | typedef struct tagRASDIALPARAMSW { |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 87 | DWORD dwSize; |
| 88 | WCHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 89 | WCHAR szPhoneNumber[ RAS_MaxPhoneNumber + 1 ]; |
| 90 | WCHAR szCallbackNumber[ RAS_MaxCallbackNumber + 1 ]; |
| 91 | WCHAR szUserName[ UNLEN + 1 ]; |
| 92 | WCHAR szPassword[ PWLEN + 1 ]; |
| 93 | WCHAR szDomain[ DNLEN + 1 ]; |
| 94 | DWORD dwSubEntry; |
| 95 | DWORD dwCallbackId; |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 96 | } RASDIALPARAMSW, *LPRASDIALPARAMSW; |
| 97 | |
| 98 | DECL_WINELIB_TYPE_AW(RASDIALPARAMS) |
| 99 | DECL_WINELIB_TYPE_AW(LPRASDIALPARAMS) |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 100 | |
| 101 | |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 102 | DWORD WINAPI RasEnumConnectionsA(LPRASCONNA,LPDWORD,LPDWORD); |
| 103 | DWORD WINAPI RasEnumConnectionsW(LPRASCONNW,LPDWORD,LPDWORD); |
| 104 | #define RasEnumConnections WINELIB_NAME_AW(RasEnumConnections) |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 105 | DWORD WINAPI RasEnumEntriesA(LPCSTR,LPCSTR,LPRASENTRYNAMEA,LPDWORD,LPDWORD); |
| 106 | DWORD WINAPI RasEnumEntriesW(LPCWSTR,LPCWSTR,LPRASENTRYNAMEW,LPDWORD,LPDWORD); |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 107 | #define RasEnumEntries WINELIB_NAME_AW(RasEnumEntries) |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 108 | DWORD WINAPI RasGetEntryDialParamsA(LPCSTR,LPRASDIALPARAMSA,LPBOOL); |
| 109 | DWORD WINAPI RasGetEntryDialParamsW(LPCWSTR,LPRASDIALPARAMSW,LPBOOL); |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 110 | #define RasGetEntryDialParams WINELIB_NAME_AW(RasGetEntryDialParams) |
| 111 | DWORD WINAPI RasHangUpA(HRASCONN); |
| 112 | DWORD WINAPI RasHangUpW(HRASCONN); |
| 113 | #define RasHangUp WINELIB_NAME_AW(RasHangUp) |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 114 | |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 115 | #include "poppack.h" |
| 116 | #ifdef __cplusplus |
| 117 | } |
| 118 | #endif |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 119 | |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 120 | #endif |