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 |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 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 | |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 22 | #include <lmcons.h> |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 23 | |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 24 | #ifdef __cplusplus |
| 25 | extern "C" { |
| 26 | #endif |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 27 | #include <pshpack4.h> |
Francois Gouget | 653c1d7 | 2011-12-09 12:00:39 +0100 | [diff] [blame] | 28 | #include <inaddr.h> |
| 29 | #include <in6addr.h> |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 30 | |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 31 | #define RAS_MaxCallbackNumber RAS_MaxPhoneNumber |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 32 | #define RAS_MaxDeviceName 128 |
| 33 | #define RAS_MaxDeviceType 16 |
| 34 | #define RAS_MaxEntryName 256 |
| 35 | #define RAS_MaxPhoneNumber 128 |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 36 | #define RAS_MaxAreaCode 10 |
| 37 | #define RAS_MaxPadType 32 |
| 38 | #define RAS_MaxX25Address 200 |
| 39 | #define RAS_MaxFacilities 200 |
| 40 | #define RAS_MaxUserData 200 |
Alexandre Julliard | 6677ac4 | 2003-08-21 21:32:48 +0000 | [diff] [blame] | 41 | #define RAS_MaxDnsSuffix 256 |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 42 | |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 43 | /* szDeviceType strings for RASDEVINFO */ |
John Klehm | c34bbbe | 2007-01-31 23:47:39 -0600 | [diff] [blame] | 44 | #define RASDT_Direct "direct" |
| 45 | #define RASDT_Modem "modem" |
| 46 | #define RASDT_Isdn "isdn" |
| 47 | #define RASDT_X25 "x25" |
| 48 | #define RASDT_Vpn "vpn" |
| 49 | #define RASDT_Pad "pad" |
| 50 | #define RASDT_Generic "GENERIC" |
| 51 | #define RASDT_Serial "SERIAL" |
| 52 | #define RASDT_FrameRelay "FRAMERELAY" |
| 53 | #define RASDT_Atm "ATM" |
| 54 | #define RASDT_Sonet "SONET" |
| 55 | #define RASDT_SW56 "SW56" |
| 56 | #define RASDT_Irda "IRDA" |
| 57 | #define RASDT_Parallel "PARALLEL" |
| 58 | #define RASDT_PPPoE "PPPoE" |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 59 | |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 60 | typedef struct tagRASDEVINFOA { |
| 61 | DWORD dwSize; |
| 62 | CHAR szDeviceType[ RAS_MaxDeviceType + 1 ]; |
| 63 | CHAR szDeviceName[ RAS_MaxDeviceName + 1 ]; |
| 64 | } RASDEVINFOA, *LPRASDEVINFOA; |
| 65 | |
| 66 | typedef struct tagRASDEVINFOW { |
| 67 | DWORD dwSize; |
| 68 | WCHAR szDeviceType[ RAS_MaxDeviceType + 1 ]; |
| 69 | WCHAR szDeviceName[ RAS_MaxDeviceName + 1 ]; |
| 70 | } RASDEVINFOW, *LPRASDEVINFOW; |
| 71 | |
| 72 | DECL_WINELIB_TYPE_AW(RASDEVINFO) |
| 73 | DECL_WINELIB_TYPE_AW(LPRASDEVINFO) |
| 74 | |
Hans Leidekker | e121d50 | 2005-01-03 14:30:14 +0000 | [diff] [blame] | 75 | DECLARE_HANDLE(HRASCONN); |
| 76 | typedef HRASCONN* LPHRASCONN; |
| 77 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 78 | typedef struct tagRASCONNA { |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 79 | DWORD dwSize; |
| 80 | HRASCONN hRasConn; |
| 81 | CHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 82 | CHAR szDeviceType[ RAS_MaxDeviceType + 1 ]; |
| 83 | CHAR szDeviceName[ RAS_MaxDeviceName + 1 ]; |
| 84 | CHAR szPhonebook[ MAX_PATH ]; |
| 85 | DWORD dwSubEntry; |
Detlef Riekenberg | e5ab43c | 2008-09-08 05:20:26 +0200 | [diff] [blame] | 86 | GUID guidEntry; |
| 87 | DWORD dwFlags; |
| 88 | LUID luid; |
| 89 | GUID guidCorrelationId; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 90 | } RASCONNA,*LPRASCONNA; |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 91 | |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 92 | typedef struct tagRASCONNW { |
| 93 | DWORD dwSize; |
| 94 | HRASCONN hRasConn; |
| 95 | WCHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 96 | WCHAR szDeviceType[ RAS_MaxDeviceType + 1 ]; |
| 97 | WCHAR szDeviceName[ RAS_MaxDeviceName + 1 ]; |
| 98 | WCHAR szPhonebook[ MAX_PATH ]; |
| 99 | DWORD dwSubEntry; |
Detlef Riekenberg | e5ab43c | 2008-09-08 05:20:26 +0200 | [diff] [blame] | 100 | GUID guidEntry; |
| 101 | DWORD dwFlags; |
| 102 | LUID luid; |
| 103 | GUID guidCorrelationId; |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 104 | } RASCONNW,*LPRASCONNW; |
| 105 | |
| 106 | DECL_WINELIB_TYPE_AW(RASCONN) |
| 107 | DECL_WINELIB_TYPE_AW(LPRASCONN) |
| 108 | |
| 109 | typedef struct tagRASENTRYNAMEA { |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 110 | DWORD dwSize; |
| 111 | CHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 112 | } RASENTRYNAMEA, *LPRASENTRYNAMEA; |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 113 | |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 114 | typedef struct tagRASENTRYNAMEW { |
| 115 | DWORD dwSize; |
| 116 | WCHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 117 | } RASENTRYNAMEW, *LPRASENTRYNAMEW; |
| 118 | |
| 119 | DECL_WINELIB_TYPE_AW(RASENTRYNAME) |
| 120 | DECL_WINELIB_TYPE_AW(LPRASENTRYNAME) |
| 121 | |
| 122 | typedef struct tagRASDIALPARAMSA { |
| 123 | DWORD dwSize; |
| 124 | CHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 125 | CHAR szPhoneNumber[ RAS_MaxPhoneNumber + 1 ]; |
| 126 | CHAR szCallbackNumber[ RAS_MaxCallbackNumber + 1 ]; |
| 127 | CHAR szUserName[ UNLEN + 1 ]; |
| 128 | CHAR szPassword[ PWLEN + 1 ]; |
| 129 | CHAR szDomain[ DNLEN + 1 ]; |
| 130 | DWORD dwSubEntry; |
| 131 | DWORD dwCallbackId; |
| 132 | } RASDIALPARAMSA, *LPRASDIALPARAMSA; |
| 133 | |
| 134 | typedef struct tagRASDIALPARAMSW { |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 135 | DWORD dwSize; |
| 136 | WCHAR szEntryName[ RAS_MaxEntryName + 1 ]; |
| 137 | WCHAR szPhoneNumber[ RAS_MaxPhoneNumber + 1 ]; |
| 138 | WCHAR szCallbackNumber[ RAS_MaxCallbackNumber + 1 ]; |
| 139 | WCHAR szUserName[ UNLEN + 1 ]; |
| 140 | WCHAR szPassword[ PWLEN + 1 ]; |
| 141 | WCHAR szDomain[ DNLEN + 1 ]; |
| 142 | DWORD dwSubEntry; |
| 143 | DWORD dwCallbackId; |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 144 | } RASDIALPARAMSW, *LPRASDIALPARAMSW; |
| 145 | |
| 146 | DECL_WINELIB_TYPE_AW(RASDIALPARAMS) |
| 147 | DECL_WINELIB_TYPE_AW(LPRASDIALPARAMS) |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 148 | |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 149 | typedef struct tagRASIPADDR { |
| 150 | BYTE classA,classB,classC,classD; |
| 151 | } RASIPADDR; |
| 152 | |
| 153 | #define RASEO_UseCountryAndAreaCodes 0x0001 |
| 154 | #define RASEO_SpecificIpAddr 0x0002 |
| 155 | #define RASEO_SpecificNameServers 0x0004 |
| 156 | #define RASEO_IpHeaderCompression 0x0008 |
| 157 | #define RASEO_RemoteDefaultGateway 0x0010 |
| 158 | #define RASEO_DisableLcpExtensions 0x0020 |
| 159 | #define RASEO_TerminalBeforeDial 0x0040 |
| 160 | #define RASEO_TerminalAfterDial 0x0080 |
| 161 | #define RASEO_ModemLights 0x0100 |
| 162 | #define RASEO_SwCompression 0x0200 |
| 163 | #define RASEO_RequireEncryptedPw 0x0400 |
| 164 | #define RASEO_RequireMsEncryptedPw 0x0800 |
| 165 | #define RASEO_RequireDataEncryption 0x1000 |
| 166 | #define RASEO_NetworkLogon 0x2000 |
| 167 | #define RASEO_UseLogonCredentials 0x4000 |
| 168 | #define RASEO_PromoteAlternates 0x8000 |
| 169 | typedef struct tagRASENTRYA { |
| 170 | DWORD dwSize; |
| 171 | DWORD dwfOptions; |
| 172 | |
| 173 | /* Location */ |
| 174 | |
| 175 | DWORD dwCountryID; |
| 176 | DWORD dwCountryCode; |
| 177 | CHAR szAreaCode[ RAS_MaxAreaCode + 1 ]; |
| 178 | CHAR szLocalPhoneNumber[ RAS_MaxPhoneNumber + 1 ]; |
| 179 | DWORD dwAlternateOffset; |
| 180 | |
| 181 | /* IP related stuff */ |
| 182 | |
| 183 | RASIPADDR ipaddr; |
| 184 | RASIPADDR ipaddrDns; |
| 185 | RASIPADDR ipaddrDnsAlt; |
| 186 | RASIPADDR ipaddrWins; |
| 187 | RASIPADDR ipaddrWinsAlt; |
| 188 | |
| 189 | /* Framing (for ppp/isdn etc...) */ |
| 190 | |
| 191 | DWORD dwFrameSize; |
| 192 | DWORD dwfNetProtocols; |
| 193 | DWORD dwFramingProtocol; |
| 194 | |
| 195 | CHAR szScript[ MAX_PATH ]; |
| 196 | |
| 197 | CHAR szAutodialDll[ MAX_PATH ]; |
| 198 | CHAR szAutodialFunc[ MAX_PATH ]; |
| 199 | |
| 200 | CHAR szDeviceType[ RAS_MaxDeviceType + 1 ]; |
| 201 | CHAR szDeviceName[ RAS_MaxDeviceName + 1 ]; |
| 202 | |
| 203 | /* x25 only */ |
| 204 | |
| 205 | CHAR szX25PadType[ RAS_MaxPadType + 1 ]; |
| 206 | CHAR szX25Address[ RAS_MaxX25Address + 1 ]; |
| 207 | CHAR szX25Facilities[ RAS_MaxFacilities + 1 ]; |
| 208 | CHAR szX25UserData[ RAS_MaxUserData + 1 ]; |
| 209 | DWORD dwChannels; |
| 210 | |
| 211 | DWORD dwReserved1; |
| 212 | DWORD dwReserved2; |
| 213 | |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 214 | /* Multilink and BAP */ |
| 215 | |
| 216 | DWORD dwSubEntries; |
| 217 | DWORD dwDialMode; |
| 218 | DWORD dwDialExtraPercent; |
| 219 | DWORD dwDialExtraSampleSeconds; |
| 220 | DWORD dwHangUpExtraPercent; |
| 221 | DWORD dwHangUpExtraSampleSeconds; |
| 222 | |
| 223 | /* Idle time out */ |
| 224 | DWORD dwIdleDisconnectSeconds; |
| 225 | |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 226 | DWORD dwType; /* entry type */ |
| 227 | DWORD dwEncryptionType; /* type of encryption to use */ |
| 228 | DWORD dwCustomAuthKey; /* authentication key for EAP */ |
| 229 | GUID guidId; /* guid that represents the phone-book entry */ |
| 230 | CHAR szCustomDialDll[MAX_PATH]; /* DLL for custom dialing */ |
| 231 | DWORD dwVpnStrategy; /* specifies type of VPN protocol */ |
Alexandre Julliard | 6677ac4 | 2003-08-21 21:32:48 +0000 | [diff] [blame] | 232 | |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 233 | DWORD dwfOptions2; |
| 234 | DWORD dwfOptions3; |
| 235 | CHAR szDnsSuffix[RAS_MaxDnsSuffix]; |
| 236 | DWORD dwTcpWindowSize; |
| 237 | CHAR szPrerequisitePbk[MAX_PATH]; |
| 238 | CHAR szPrerequisiteEntry[RAS_MaxEntryName + 1]; |
| 239 | DWORD dwRedialCount; |
| 240 | DWORD dwRedialPause; |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 241 | } RASENTRYA, *LPRASENTRYA; |
| 242 | |
| 243 | typedef struct tagRASENTRYW { |
| 244 | DWORD dwSize; |
| 245 | DWORD dwfOptions; |
| 246 | |
| 247 | /* Location */ |
| 248 | |
| 249 | DWORD dwCountryID; |
| 250 | DWORD dwCountryCode; |
| 251 | WCHAR szAreaCode[ RAS_MaxAreaCode + 1 ]; |
| 252 | WCHAR szLocalPhoneNumber[ RAS_MaxPhoneNumber + 1 ]; |
| 253 | DWORD dwAlternateOffset; |
| 254 | |
| 255 | /* IP related stuff */ |
| 256 | |
| 257 | RASIPADDR ipaddr; |
| 258 | RASIPADDR ipaddrDns; |
| 259 | RASIPADDR ipaddrDnsAlt; |
| 260 | RASIPADDR ipaddrWins; |
| 261 | RASIPADDR ipaddrWinsAlt; |
| 262 | |
| 263 | /* Framing (for ppp/isdn etc...) */ |
| 264 | |
| 265 | DWORD dwFrameSize; |
| 266 | DWORD dwfNetProtocols; |
| 267 | DWORD dwFramingProtocol; |
| 268 | |
| 269 | WCHAR szScript[ MAX_PATH ]; |
| 270 | |
| 271 | WCHAR szAutodialDll[ MAX_PATH ]; |
| 272 | WCHAR szAutodialFunc[ MAX_PATH ]; |
| 273 | |
| 274 | WCHAR szDeviceType[ RAS_MaxDeviceType + 1 ]; |
| 275 | WCHAR szDeviceName[ RAS_MaxDeviceName + 1 ]; |
| 276 | |
| 277 | /* x25 only */ |
| 278 | |
| 279 | WCHAR szX25PadType[ RAS_MaxPadType + 1 ]; |
| 280 | WCHAR szX25Address[ RAS_MaxX25Address + 1 ]; |
| 281 | WCHAR szX25Facilities[ RAS_MaxFacilities + 1 ]; |
| 282 | WCHAR szX25UserData[ RAS_MaxUserData + 1 ]; |
| 283 | DWORD dwChannels; |
| 284 | |
| 285 | DWORD dwReserved1; |
| 286 | DWORD dwReserved2; |
| 287 | |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 288 | /* Multilink and BAP */ |
| 289 | |
| 290 | DWORD dwSubEntries; |
| 291 | DWORD dwDialMode; |
| 292 | DWORD dwDialExtraPercent; |
| 293 | DWORD dwDialExtraSampleSeconds; |
| 294 | DWORD dwHangUpExtraPercent; |
| 295 | DWORD dwHangUpExtraSampleSeconds; |
| 296 | |
| 297 | /* Idle time out */ |
| 298 | DWORD dwIdleDisconnectSeconds; |
| 299 | |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 300 | DWORD dwType; /* entry type */ |
| 301 | DWORD dwEncryptionType; /* type of encryption to use */ |
| 302 | DWORD dwCustomAuthKey; /* authentication key for EAP */ |
| 303 | GUID guidId; /* guid that represents the phone-book entry */ |
| 304 | WCHAR szCustomDialDll[MAX_PATH]; /* DLL for custom dialing */ |
| 305 | DWORD dwVpnStrategy; /* specifies type of VPN protocol */ |
Alexandre Julliard | 6677ac4 | 2003-08-21 21:32:48 +0000 | [diff] [blame] | 306 | |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 307 | DWORD dwfOptions2; |
| 308 | DWORD dwfOptions3; |
| 309 | WCHAR szDnsSuffix[RAS_MaxDnsSuffix]; |
| 310 | DWORD dwTcpWindowSize; |
| 311 | WCHAR szPrerequisitePbk[MAX_PATH]; |
| 312 | WCHAR szPrerequisiteEntry[RAS_MaxEntryName + 1]; |
| 313 | DWORD dwRedialCount; |
| 314 | DWORD dwRedialPause; |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 315 | } RASENTRYW, *LPRASENTRYW; |
| 316 | |
| 317 | DECL_WINELIB_TYPE_AW(RASENTRY) |
| 318 | |
Hans Leidekker | e121d50 | 2005-01-03 14:30:14 +0000 | [diff] [blame] | 319 | #define RASCS_PAUSED 0x1000 |
| 320 | #define RASCS_DONE 0x2000 |
| 321 | typedef enum tagRASCONNSTATE |
| 322 | { |
| 323 | RASCS_OpenPort = 0, |
| 324 | RASCS_PortOpened, |
| 325 | RASCS_ConnectDevice, |
| 326 | RASCS_DeviceConnected, |
| 327 | RASCS_AllDevicesConnected, |
| 328 | RASCS_Authenticate, |
| 329 | RASCS_AuthNotify, |
| 330 | RASCS_AuthRetry, |
| 331 | RASCS_AuthCallback, |
| 332 | RASCS_AuthChangePassword, |
| 333 | RASCS_AuthProject, |
| 334 | RASCS_AuthLinkSpeed, |
| 335 | RASCS_AuthAck, |
| 336 | RASCS_ReAuthenticate, |
| 337 | RASCS_Authenticated, |
| 338 | RASCS_PrepareForCallback, |
| 339 | RASCS_WaitForModemReset, |
| 340 | RASCS_WaitForCallback, |
| 341 | RASCS_Projected, |
| 342 | RASCS_StartAuthentication, |
| 343 | RASCS_CallbackComplete, |
| 344 | RASCS_LogonNetwork, |
| 345 | RASCS_SubEntryConnected, |
| 346 | RASCS_SubEntryDisconnected, |
| 347 | RASCS_Interactive = RASCS_PAUSED, |
| 348 | RASCS_RetryAuthentication, |
| 349 | RASCS_CallbackSetByCaller, |
| 350 | RASCS_PasswordExpired, |
| 351 | RASCS_Connected = RASCS_DONE, |
| 352 | RASCS_Disconnected |
| 353 | } RASCONNSTATE, *LPRASCONNSTATE; |
| 354 | |
| 355 | typedef struct tagRASCONNSTATUSA |
| 356 | { |
| 357 | DWORD dwSize; |
| 358 | RASCONNSTATE rasconnstate; |
| 359 | DWORD dwError; |
| 360 | CHAR szDeviceType[RAS_MaxDeviceType + 1]; |
| 361 | CHAR szDeviceName[RAS_MaxDeviceName + 1]; |
| 362 | } RASCONNSTATUSA, *LPRASCONNSTATUSA; |
| 363 | |
| 364 | typedef struct tagRASCONNSTATUSW |
| 365 | { |
| 366 | DWORD dwSize; |
| 367 | RASCONNSTATE rasconnstate; |
| 368 | DWORD dwError; |
| 369 | WCHAR szDeviceType[RAS_MaxDeviceType + 1]; |
| 370 | WCHAR szDeviceName[RAS_MaxDeviceName + 1]; |
| 371 | } RASCONNSTATUSW, *LPRASCONNSTATUSW; |
| 372 | |
| 373 | DECL_WINELIB_TYPE_AW(RASCONNSTATUS) |
| 374 | |
| 375 | typedef enum tagRASPROJECTION |
| 376 | { |
| 377 | RASP_Amb = 0x10000, |
| 378 | RASP_PppNbf = 0x803F, |
| 379 | RASP_PppIpx = 0x802B, |
| 380 | RASP_PppIp = 0x8021, |
| 381 | RASP_PppLcp = 0xC021, |
| 382 | RASP_Slip = 0x20000 |
| 383 | } RASPROJECTION, *LPRASPROJECTION; |
| 384 | |
| 385 | typedef struct tagRASSUBENTRYA |
| 386 | { |
| 387 | DWORD dwSize; |
| 388 | DWORD dwfFlags; |
| 389 | CHAR szDeviceType[RAS_MaxDeviceType + 1]; |
| 390 | CHAR szDeviceName[RAS_MaxDeviceName + 1]; |
| 391 | CHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1]; |
| 392 | DWORD dwAlternateOffset; |
| 393 | } RASSUBENTRYA, *LPRASSUBENTRYA; |
| 394 | |
| 395 | typedef struct tagRASSUBENTRYW |
| 396 | { |
| 397 | DWORD dwSize; |
| 398 | DWORD dwfFlags; |
| 399 | WCHAR szDeviceType[RAS_MaxDeviceType + 1]; |
| 400 | WCHAR szDeviceName[RAS_MaxDeviceName + 1]; |
| 401 | WCHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1]; |
| 402 | DWORD dwAlternateOffset; |
| 403 | } RASSUBENTRYW, *LPRASSUBENTRYW; |
| 404 | |
| 405 | typedef struct tagRASDIALEXTENSIONS |
| 406 | { |
| 407 | DWORD dwSize; |
| 408 | DWORD dwfOptions; |
| 409 | HWND hwndParent; |
| 410 | ULONG_PTR reserved; |
| 411 | } RASDIALEXTENSIONS, *LPRASDIALEXTENSIONS; |
| 412 | |
Mike McCormack | 9484e56 | 2005-06-27 09:49:48 +0000 | [diff] [blame] | 413 | typedef struct tagRASAUTODIALENTRYA |
| 414 | { |
| 415 | DWORD dwSize; |
| 416 | DWORD dwFlags; |
| 417 | DWORD dwDialingLocation; |
| 418 | CHAR szEntry[ RAS_MaxEntryName + 1 ]; |
| 419 | } RASAUTODIALENTRYA, *LPRASAUTODIALENTRYA; |
| 420 | |
| 421 | typedef struct tagRASAUTODIALENTRYW |
| 422 | { |
| 423 | DWORD dwSize; |
| 424 | DWORD dwFlags; |
| 425 | DWORD dwDialingLocation; |
| 426 | WCHAR szEntry[ RAS_MaxEntryName + 1 ]; |
| 427 | } RASAUTODIALENTRYW, *LPRASAUTODIALENTRYW; |
| 428 | |
| 429 | |
Hans Leidekker | e121d50 | 2005-01-03 14:30:14 +0000 | [diff] [blame] | 430 | DWORD WINAPI RasConnectionNotificationA(HRASCONN,HANDLE,DWORD); |
| 431 | DWORD WINAPI RasConnectionNotificationW(HRASCONN,HANDLE,DWORD); |
| 432 | #define RasConnectionNotification WINELIB_NAME_AW(RasConnectionNotification) |
| 433 | DWORD WINAPI RasCreatePhonebookEntryA(HWND,LPCSTR); |
| 434 | DWORD WINAPI RasCreatePhonebookEntryW(HWND,LPCWSTR); |
| 435 | #define RasCreatePhonebookEntry WINELIB_NAME_AW(RasCreatePhonebookEntry) |
Francois Gouget | c8ad3cb | 2003-06-13 18:52:36 +0000 | [diff] [blame] | 436 | DWORD WINAPI RasDeleteEntryA(LPCSTR,LPCSTR); |
| 437 | DWORD WINAPI RasDeleteEntryW(LPCWSTR,LPCWSTR); |
| 438 | #define RasDeleteEntry WINELIB_NAME_AW(RasDeleteEntry) |
| 439 | DWORD WINAPI RasDeleteSubEntryA(LPCSTR,LPCSTR,DWORD); |
| 440 | DWORD WINAPI RasDeleteSubEntryW(LPCWSTR,LPCWSTR,DWORD); |
| 441 | #define RasDeleteSubEntry WINELIB_NAME_AW(RasDeleteSubEntry) |
Hans Leidekker | e121d50 | 2005-01-03 14:30:14 +0000 | [diff] [blame] | 442 | DWORD WINAPI RasDialA(LPRASDIALEXTENSIONS,LPCSTR,LPRASDIALPARAMSA,DWORD,LPVOID,LPHRASCONN); |
| 443 | DWORD WINAPI RasDialW(LPRASDIALEXTENSIONS,LPCWSTR,LPRASDIALPARAMSW,DWORD,LPVOID,LPHRASCONN); |
| 444 | #define RasDial WINELIB_NAME_AW(RasDial) |
| 445 | DWORD WINAPI RasEditPhonebookEntryA(HWND,LPCSTR,LPCSTR); |
| 446 | DWORD WINAPI RasEditPhonebookEntryW(HWND,LPCWSTR,LPCWSTR); |
| 447 | #define RasEditPhonebookEntry WINELIB_NAME_AW(RasEditPhonebookEntry) |
Mike McCormack | 9484e56 | 2005-06-27 09:49:48 +0000 | [diff] [blame] | 448 | DWORD WINAPI RasEnumAutodialAddressesA(LPSTR*,LPDWORD,LPDWORD); |
| 449 | DWORD WINAPI RasEnumAutodialAddressesW(LPWSTR*,LPDWORD,LPDWORD); |
| 450 | #define RasEnumAutodialAddresses WINELIB_NAME_AW(RasEnumAutodialAddresses) |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 451 | DWORD WINAPI RasEnumConnectionsA(LPRASCONNA,LPDWORD,LPDWORD); |
| 452 | DWORD WINAPI RasEnumConnectionsW(LPRASCONNW,LPDWORD,LPDWORD); |
| 453 | #define RasEnumConnections WINELIB_NAME_AW(RasEnumConnections) |
Alexandre Julliard | 2fdc4dc | 2003-11-26 04:11:56 +0000 | [diff] [blame] | 454 | DWORD WINAPI RasEnumDevicesA(LPRASDEVINFOA,LPDWORD,LPDWORD); |
| 455 | DWORD WINAPI RasEnumDevicesW(LPRASDEVINFOW,LPDWORD,LPDWORD); |
| 456 | #define RasEnumDevices WINELIB_NAME_AW(RasEnumDevices) |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 457 | DWORD WINAPI RasEnumEntriesA(LPCSTR,LPCSTR,LPRASENTRYNAMEA,LPDWORD,LPDWORD); |
| 458 | DWORD WINAPI RasEnumEntriesW(LPCWSTR,LPCWSTR,LPRASENTRYNAMEW,LPDWORD,LPDWORD); |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 459 | #define RasEnumEntries WINELIB_NAME_AW(RasEnumEntries) |
Mike McCormack | 9484e56 | 2005-06-27 09:49:48 +0000 | [diff] [blame] | 460 | DWORD WINAPI RasGetAutodialAddressA(LPCSTR,LPDWORD,LPRASAUTODIALENTRYA,LPDWORD,LPDWORD); |
| 461 | DWORD WINAPI RasGetAutodialAddressW(LPCWSTR,LPDWORD,LPRASAUTODIALENTRYW,LPDWORD,LPDWORD); |
| 462 | #define RasGetAutodialAddresses WINELIB_NAME_AW(RasGetAutodialAddresses) |
| 463 | DWORD WINAPI RasGetAutodialEnableA(DWORD,LPBOOL); |
| 464 | DWORD WINAPI RasGetAutodialEnableW(DWORD,LPBOOL); |
| 465 | #define RasGetAutodialEnable WINELIB_NAME_AW(RasGetAutodialEnable) |
| 466 | DWORD WINAPI RasGetAutodialParamA(DWORD dwKey, LPVOID lpvValue, LPDWORD lpdwcbValue); |
| 467 | DWORD WINAPI RasGetAutodialParamW(DWORD dwKey, LPVOID lpvValue, LPDWORD lpdwcbValue); |
| 468 | #define RasGetAutodialParam WINELIB_NAME_AW(RasGetAutodialParam) |
Hans Leidekker | e121d50 | 2005-01-03 14:30:14 +0000 | [diff] [blame] | 469 | DWORD WINAPI RasGetConnectStatusA(HRASCONN,LPRASCONNSTATUSA); |
| 470 | DWORD WINAPI RasGetConnectStatusW(HRASCONN,LPRASCONNSTATUSW); |
| 471 | #define RasGetConnectStatus WINELIB_NAME_AW(RasGetConnectStatus) |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 472 | DWORD WINAPI RasGetEntryDialParamsA(LPCSTR,LPRASDIALPARAMSA,LPBOOL); |
| 473 | DWORD WINAPI RasGetEntryDialParamsW(LPCWSTR,LPRASDIALPARAMSW,LPBOOL); |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 474 | #define RasGetEntryDialParams WINELIB_NAME_AW(RasGetEntryDialParams) |
Hans Leidekker | e121d50 | 2005-01-03 14:30:14 +0000 | [diff] [blame] | 475 | DWORD WINAPI RasGetEntryPropertiesA(LPCSTR,LPCSTR,LPRASENTRYA,LPDWORD,LPBYTE,LPDWORD); |
| 476 | DWORD WINAPI RasGetEntryPropertiesW(LPCWSTR,LPCWSTR,LPRASENTRYW,LPDWORD,LPBYTE,LPDWORD); |
| 477 | #define RasGetEntryProperties WINELIB_NAME_AW(RasGetEntryProperties) |
| 478 | DWORD WINAPI RasGetErrorStringA(UINT,LPSTR,DWORD); |
| 479 | DWORD WINAPI RasGetErrorStringW(UINT,LPWSTR,DWORD); |
| 480 | #define RasGetErrorString WINELIB_NAME_AW(RasGetErrorString) |
| 481 | DWORD WINAPI RasGetProjectionInfoA(HRASCONN,RASPROJECTION,LPVOID,LPDWORD); |
| 482 | DWORD WINAPI RasGetProjectionInfoW(HRASCONN,RASPROJECTION,LPVOID,LPDWORD); |
| 483 | #define RasGetProjectionInfo WINELIB_NAME_AW(RasGetProjectionInfo) |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 484 | DWORD WINAPI RasHangUpA(HRASCONN); |
| 485 | DWORD WINAPI RasHangUpW(HRASCONN); |
| 486 | #define RasHangUp WINELIB_NAME_AW(RasHangUp) |
Hans Leidekker | e121d50 | 2005-01-03 14:30:14 +0000 | [diff] [blame] | 487 | DWORD WINAPI RasRenameEntryA(LPCSTR,LPCSTR,LPCSTR); |
| 488 | DWORD WINAPI RasRenameEntryW(LPCWSTR,LPCWSTR,LPCWSTR); |
| 489 | #define RasRenameEntry WINELIB_NAME_AW(RasRenameEntry) |
Mike McCormack | 9484e56 | 2005-06-27 09:49:48 +0000 | [diff] [blame] | 490 | DWORD WINAPI RasSetAutodialAddressA(LPCSTR,DWORD,LPRASAUTODIALENTRYA,DWORD,DWORD); |
| 491 | DWORD WINAPI RasSetAutodialAddressW(LPCWSTR,DWORD,LPRASAUTODIALENTRYW,DWORD,DWORD); |
| 492 | #define RasSetAutodialAddress WINELIB_NAME_AW(RasSetAutodialAddress) |
| 493 | DWORD WINAPI RasSetAutodialParamA(DWORD,LPVOID,DWORD); |
| 494 | DWORD WINAPI RasSetAutodialParamW(DWORD,LPVOID,DWORD); |
| 495 | #define RasSetAutodialParam WINELIB_NAME_AW(RasSetAutodialParam) |
Hans Leidekker | e121d50 | 2005-01-03 14:30:14 +0000 | [diff] [blame] | 496 | DWORD WINAPI RasSetEntryDialParamsA(LPCSTR,LPRASDIALPARAMSA,BOOL); |
| 497 | DWORD WINAPI RasSetEntryDialParamsW(LPCWSTR,LPRASDIALPARAMSW,BOOL); |
| 498 | #define RasSetEntryDialParams WINELIB_NAME_AW(RasSetEntryDialParams) |
| 499 | DWORD WINAPI RasSetSubEntryPropertiesA(LPCSTR,LPCSTR,DWORD,LPRASSUBENTRYA,DWORD,LPBYTE,DWORD); |
| 500 | DWORD WINAPI RasSetSubEntryPropertiesW(LPCWSTR,LPCWSTR,DWORD,LPRASSUBENTRYW,DWORD,LPBYTE,DWORD); |
| 501 | #define RasSetSubEntryProperties WINELIB_NAME_AW(RasSetSubEntryProperties) |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 502 | DWORD WINAPI RasValidateEntryNameA(LPCSTR lpszPhonebook, LPCSTR lpszEntry); |
| 503 | DWORD WINAPI RasValidateEntryNameW(LPCWSTR lpszPhonebook, LPCWSTR lpszEntry); |
| 504 | #define RasValidateEntryName WINELIB_NAME_AW(RasValidateEntryName) |
Mike McCormack | 9484e56 | 2005-06-27 09:49:48 +0000 | [diff] [blame] | 505 | DWORD WINAPI RasSetEntryPropertiesA(LPCSTR,LPCSTR,LPRASENTRYA,DWORD,LPBYTE,DWORD); |
| 506 | DWORD WINAPI RasSetEntryPropertiesW(LPCWSTR,LPCWSTR,LPRASENTRYW,DWORD,LPBYTE,DWORD); |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 507 | #define RasSetEntryProperties WINELIB_NAME_AW(RasSetEntryProperties) |
Marcus Meissner | d0a58e2 | 2002-11-08 18:53:19 +0000 | [diff] [blame] | 508 | DWORD WINAPI RasSetAutodialEnableA(DWORD dwDialingLocation, BOOL fEnabled); |
| 509 | DWORD WINAPI RasSetAutodialEnableW(DWORD dwDialingLocation, BOOL fEnabled); |
| 510 | #define RasSetAutodialEnable WINELIB_NAME_AW(RasSetAutodialEnable) |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 511 | |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 512 | #include <poppack.h> |
François Gouget | ce03ac8 | 2000-12-24 20:44:08 +0000 | [diff] [blame] | 513 | #ifdef __cplusplus |
| 514 | } |
| 515 | #endif |
Rein Klazes | 34a02f1 | 1999-11-07 05:49:28 +0000 | [diff] [blame] | 516 | |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 517 | #endif |