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