Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/ras.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /** | |
| 2 * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 * This file is part of the w64 mingw-runtime package. | |
| 4 * No warranty is given; refer to the file DISCLAIMER within this package. | |
| 5 */ | |
| 6 #ifndef _RAS_H_ | |
| 7 #define _RAS_H_ | |
| 8 | |
| 9 #ifdef __cplusplus | |
| 10 extern "C" { | |
| 11 #endif | |
| 12 | |
| 13 #ifndef UNLEN | |
| 14 #include <lmcons.h> | |
| 15 #endif | |
| 16 | |
| 17 #include <pshpack4.h> | |
| 18 | |
| 19 #define RAS_MaxDeviceType 16 | |
| 20 #define RAS_MaxPhoneNumber 128 | |
| 21 #define RAS_MaxIpAddress 15 | |
| 22 #define RAS_MaxIpxAddress 21 | |
| 23 | |
| 24 #define RAS_MaxEntryName 256 | |
| 25 #define RAS_MaxDeviceName 128 | |
| 26 #define RAS_MaxCallbackNumber RAS_MaxPhoneNumber | |
| 27 #define RAS_MaxAreaCode 10 | |
| 28 #define RAS_MaxPadType 32 | |
| 29 #define RAS_MaxX25Address 200 | |
| 30 #define RAS_MaxFacilities 200 | |
| 31 #define RAS_MaxUserData 200 | |
| 32 #define RAS_MaxReplyMessage 1024 | |
| 33 #define RAS_MaxDnsSuffix 256 | |
| 34 | |
| 35 DECLARE_HANDLE(HRASCONN); | |
| 36 #define LPHRASCONN HRASCONN* | |
| 37 | |
| 38 #define RASCF_AllUsers 0x00000001 | |
| 39 #define RASCF_GlobalCreds 0x00000002 | |
| 40 | |
| 41 #define RASCONNW struct tagRASCONNW | |
| 42 RASCONNW { | |
| 43 DWORD dwSize; | |
| 44 HRASCONN hrasconn; | |
| 45 WCHAR szEntryName[RAS_MaxEntryName + 1 ]; | |
| 46 | |
| 47 WCHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 48 WCHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 49 WCHAR szPhonebook [MAX_PATH ]; | |
| 50 DWORD dwSubEntry; | |
| 51 GUID guidEntry; | |
| 52 DWORD dwFlags; | |
| 53 LUID luid; | |
| 54 }; | |
| 55 | |
| 56 #define RASCONNA struct tagRASCONNA | |
| 57 RASCONNA { | |
| 58 DWORD dwSize; | |
| 59 HRASCONN hrasconn; | |
| 60 CHAR szEntryName[RAS_MaxEntryName + 1 ]; | |
| 61 CHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 62 CHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 63 CHAR szPhonebook [MAX_PATH ]; | |
| 64 DWORD dwSubEntry; | |
| 65 GUID guidEntry; | |
| 66 DWORD dwFlags; | |
| 67 LUID luid; | |
| 68 }; | |
| 69 | |
| 70 #ifdef UNICODE | |
| 71 #define RASCONN RASCONNW | |
| 72 #else | |
| 73 #define RASCONN RASCONNA | |
| 74 #endif | |
| 75 | |
| 76 #define LPRASCONNW RASCONNW* | |
| 77 #define LPRASCONNA RASCONNA* | |
| 78 #define LPRASCONN RASCONN* | |
| 79 | |
| 80 #define RASCS_PAUSED 0x1000 | |
| 81 #define RASCS_DONE 0x2000 | |
| 82 | |
| 83 #define RASCONNSTATE enum tagRASCONNSTATE | |
| 84 RASCONNSTATE { | |
| 85 RASCS_OpenPort = 0,RASCS_PortOpened,RASCS_ConnectDevice,RASCS_DeviceConnected,RASCS_AllDevicesConnected,RASCS_Authenticate, | |
| 86 RASCS_AuthNotify,RASCS_AuthRetry,RASCS_AuthCallback,RASCS_AuthChangePassword,RASCS_AuthProject,RASCS_AuthLinkSpeed, | |
| 87 RASCS_AuthAck,RASCS_ReAuthenticate,RASCS_Authenticated,RASCS_PrepareForCallback,RASCS_WaitForModemReset,RASCS_WaitForCallback,RASCS_Projected, | |
| 88 RASCS_StartAuthentication,RASCS_CallbackComplete,RASCS_LogonNetwork,RASCS_SubEntryConnected, | |
| 89 RASCS_SubEntryDisconnected,RASCS_Interactive = RASCS_PAUSED,RASCS_RetryAuthentication,RASCS_CallbackSetByCaller,RASCS_PasswordExpired, | |
| 90 RASCS_InvokeEapUI,RASCS_Connected = RASCS_DONE,RASCS_Disconnected | |
| 91 }; | |
| 92 | |
| 93 #define LPRASCONNSTATE RASCONNSTATE* | |
| 94 | |
| 95 #define RASCONNSTATUSW struct tagRASCONNSTATUSW | |
| 96 RASCONNSTATUSW { | |
| 97 DWORD dwSize; | |
| 98 RASCONNSTATE rasconnstate; | |
| 99 DWORD dwError; | |
| 100 WCHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 101 WCHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 102 WCHAR szPhoneNumber[RAS_MaxPhoneNumber + 1 ]; | |
| 103 }; | |
| 104 | |
| 105 #define RASCONNSTATUSA struct tagRASCONNSTATUSA | |
| 106 RASCONNSTATUSA { | |
| 107 DWORD dwSize; | |
| 108 RASCONNSTATE rasconnstate; | |
| 109 DWORD dwError; | |
| 110 CHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 111 CHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 112 CHAR szPhoneNumber[RAS_MaxPhoneNumber + 1 ]; | |
| 113 }; | |
| 114 | |
| 115 #ifdef UNICODE | |
| 116 #define RASCONNSTATUS RASCONNSTATUSW | |
| 117 #else | |
| 118 #define RASCONNSTATUS RASCONNSTATUSA | |
| 119 #endif | |
| 120 | |
| 121 #define LPRASCONNSTATUSW RASCONNSTATUSW* | |
| 122 #define LPRASCONNSTATUSA RASCONNSTATUSA* | |
| 123 #define LPRASCONNSTATUS RASCONNSTATUS* | |
| 124 | |
| 125 #define RASDIALPARAMSW struct tagRASDIALPARAMSW | |
| 126 RASDIALPARAMSW { | |
| 127 DWORD dwSize; | |
| 128 WCHAR szEntryName[RAS_MaxEntryName + 1 ]; | |
| 129 WCHAR szPhoneNumber[RAS_MaxPhoneNumber + 1 ]; | |
| 130 WCHAR szCallbackNumber[RAS_MaxCallbackNumber + 1 ]; | |
| 131 WCHAR szUserName[UNLEN + 1 ]; | |
| 132 WCHAR szPassword[PWLEN + 1 ]; | |
| 133 WCHAR szDomain[DNLEN + 1 ]; | |
| 134 DWORD dwSubEntry; | |
| 135 ULONG_PTR dwCallbackId; | |
| 136 }; | |
| 137 | |
| 138 #define RASDIALPARAMSA struct tagRASDIALPARAMSA | |
| 139 RASDIALPARAMSA { | |
| 140 DWORD dwSize; | |
| 141 CHAR szEntryName[RAS_MaxEntryName + 1 ]; | |
| 142 CHAR szPhoneNumber[RAS_MaxPhoneNumber + 1 ]; | |
| 143 CHAR szCallbackNumber[RAS_MaxCallbackNumber + 1 ]; | |
| 144 CHAR szUserName[UNLEN + 1 ]; | |
| 145 CHAR szPassword[PWLEN + 1 ]; | |
| 146 CHAR szDomain[DNLEN + 1 ]; | |
| 147 DWORD dwSubEntry; | |
| 148 ULONG_PTR dwCallbackId; | |
| 149 }; | |
| 150 | |
| 151 #ifdef UNICODE | |
| 152 #define RASDIALPARAMS RASDIALPARAMSW | |
| 153 #else | |
| 154 #define RASDIALPARAMS RASDIALPARAMSA | |
| 155 #endif | |
| 156 | |
| 157 #define LPRASDIALPARAMSW RASDIALPARAMSW* | |
| 158 #define LPRASDIALPARAMSA RASDIALPARAMSA* | |
| 159 #define LPRASDIALPARAMS RASDIALPARAMS* | |
| 160 | |
| 161 #define RASEAPINFO struct tagRASEAPINFO | |
| 162 RASEAPINFO { | |
| 163 DWORD dwSizeofEapInfo; | |
| 164 BYTE *pbEapInfo; | |
| 165 }; | |
| 166 | |
| 167 #define RASDIALEXTENSIONS struct tagRASDIALEXTENSIONS | |
| 168 RASDIALEXTENSIONS { | |
| 169 DWORD dwSize; | |
| 170 DWORD dwfOptions; | |
| 171 HWND hwndParent; | |
| 172 ULONG_PTR reserved; | |
| 173 ULONG_PTR reserved1; | |
| 174 RASEAPINFO RasEapInfo; | |
| 175 }; | |
| 176 | |
| 177 #define LPRASDIALEXTENSIONS RASDIALEXTENSIONS* | |
| 178 | |
| 179 #define RDEOPT_UsePrefixSuffix 0x00000001 | |
| 180 #define RDEOPT_PausedStates 0x00000002 | |
| 181 #define RDEOPT_IgnoreModemSpeaker 0x00000004 | |
| 182 #define RDEOPT_SetModemSpeaker 0x00000008 | |
| 183 #define RDEOPT_IgnoreSoftwareCompression 0x00000010 | |
| 184 #define RDEOPT_SetSoftwareCompression 0x00000020 | |
| 185 #define RDEOPT_DisableConnectedUI 0x00000040 | |
| 186 #define RDEOPT_DisableReconnectUI 0x00000080 | |
| 187 #define RDEOPT_DisableReconnect 0x00000100 | |
| 188 #define RDEOPT_NoUser 0x00000200 | |
| 189 #define RDEOPT_PauseOnScript 0x00000400 | |
| 190 #define RDEOPT_Router 0x00000800 | |
| 191 #define RDEOPT_CustomDial 0x00001000 | |
| 192 #define RDEOPT_UseCustomScripting 0x00002000 | |
| 193 | |
| 194 #define REN_User 0x00000000 | |
| 195 #define REN_AllUsers 0x00000001 | |
| 196 | |
| 197 #define RASENTRYNAMEW struct tagRASENTRYNAMEW | |
| 198 RASENTRYNAMEW { | |
| 199 DWORD dwSize; | |
| 200 WCHAR szEntryName[RAS_MaxEntryName + 1 ]; | |
| 201 DWORD dwFlags; | |
| 202 WCHAR szPhonebookPath[MAX_PATH + 1]; | |
| 203 }; | |
| 204 | |
| 205 #define RASENTRYNAMEA struct tagRASENTRYNAMEA | |
| 206 RASENTRYNAMEA { | |
| 207 DWORD dwSize; | |
| 208 CHAR szEntryName[RAS_MaxEntryName + 1 ]; | |
| 209 DWORD dwFlags; | |
| 210 CHAR szPhonebookPath[MAX_PATH + 1]; | |
| 211 }; | |
| 212 | |
| 213 #ifdef UNICODE | |
| 214 #define RASENTRYNAME RASENTRYNAMEW | |
| 215 #else | |
| 216 #define RASENTRYNAME RASENTRYNAMEA | |
| 217 #endif | |
| 218 | |
| 219 #define LPRASENTRYNAMEW RASENTRYNAMEW* | |
| 220 #define LPRASENTRYNAMEA RASENTRYNAMEA* | |
| 221 #define LPRASENTRYNAME RASENTRYNAME* | |
| 222 | |
| 223 #define RASPROJECTION enum tagRASPROJECTION | |
| 224 RASPROJECTION { | |
| 225 RASP_Amb = 0x10000,RASP_PppNbf = 0x803F,RASP_PppIpx = 0x802B,RASP_PppIp = 0x8021, | |
| 226 RASP_PppCcp = 0x80FD,RASP_PppLcp = 0xC021,RASP_Slip = 0x20000 | |
| 227 }; | |
| 228 | |
| 229 #define LPRASPROJECTION RASPROJECTION * | |
| 230 | |
| 231 #define RASAMBW struct tagRASAMBW | |
| 232 RASAMBW { | |
| 233 DWORD dwSize; | |
| 234 DWORD dwError; | |
| 235 WCHAR szNetBiosError[NETBIOS_NAME_LEN + 1 ]; | |
| 236 BYTE bLana; | |
| 237 }; | |
| 238 | |
| 239 #define RASAMBA struct tagRASAMBA | |
| 240 RASAMBA { | |
| 241 DWORD dwSize; | |
| 242 DWORD dwError; | |
| 243 CHAR szNetBiosError[NETBIOS_NAME_LEN + 1 ]; | |
| 244 BYTE bLana; | |
| 245 }; | |
| 246 | |
| 247 #ifdef UNICODE | |
| 248 #define RASAMB RASAMBW | |
| 249 #else | |
| 250 #define RASAMB RASAMBA | |
| 251 #endif | |
| 252 | |
| 253 #define LPRASAMBW RASAMBW* | |
| 254 #define LPRASAMBA RASAMBA* | |
| 255 #define LPRASAMB RASAMB* | |
| 256 | |
| 257 #define RASPPPNBFW struct tagRASPPPNBFW | |
| 258 RASPPPNBFW { | |
| 259 DWORD dwSize; | |
| 260 DWORD dwError; | |
| 261 DWORD dwNetBiosError; | |
| 262 WCHAR szNetBiosError[NETBIOS_NAME_LEN + 1 ]; | |
| 263 WCHAR szWorkstationName[NETBIOS_NAME_LEN + 1 ]; | |
| 264 BYTE bLana; | |
| 265 }; | |
| 266 | |
| 267 #define RASPPPNBFA struct tagRASPPPNBFA | |
| 268 RASPPPNBFA { | |
| 269 DWORD dwSize; | |
| 270 DWORD dwError; | |
| 271 DWORD dwNetBiosError; | |
| 272 CHAR szNetBiosError[NETBIOS_NAME_LEN + 1 ]; | |
| 273 CHAR szWorkstationName[NETBIOS_NAME_LEN + 1 ]; | |
| 274 BYTE bLana; | |
| 275 }; | |
| 276 | |
| 277 #ifdef UNICODE | |
| 278 #define RASPPPNBF RASPPPNBFW | |
| 279 #else | |
| 280 #define RASPPPNBF RASPPPNBFA | |
| 281 #endif | |
| 282 | |
| 283 #define LPRASPPPNBFW RASPPPNBFW* | |
| 284 #define LPRASPPPNBFA RASPPPNBFA* | |
| 285 #define LPRASPPPNBF RASPPPNBF* | |
| 286 | |
| 287 #define RASPPPIPXW struct tagRASIPXW | |
| 288 RASPPPIPXW { | |
| 289 DWORD dwSize; | |
| 290 DWORD dwError; | |
| 291 WCHAR szIpxAddress[RAS_MaxIpxAddress + 1 ]; | |
| 292 }; | |
| 293 | |
| 294 #define RASPPPIPXA struct tagRASPPPIPXA | |
| 295 RASPPPIPXA { | |
| 296 DWORD dwSize; | |
| 297 DWORD dwError; | |
| 298 CHAR szIpxAddress[RAS_MaxIpxAddress + 1 ]; | |
| 299 }; | |
| 300 | |
| 301 #ifdef UNICODE | |
| 302 #define RASPPPIPX RASPPPIPXW | |
| 303 #else | |
| 304 #define RASPPPIPX RASPPPIPXA | |
| 305 #endif | |
| 306 | |
| 307 #define LPRASPPPIPXW RASPPPIPXW * | |
| 308 #define LPRASPPPIPXA RASPPPIPXA * | |
| 309 #define LPRASPPPIPX RASPPPIPX * | |
| 310 | |
| 311 #define RASIPO_VJ 0x00000001 | |
| 312 | |
| 313 #define RASPPPIPW struct tagRASPPPIPW | |
| 314 RASPPPIPW { | |
| 315 DWORD dwSize; | |
| 316 DWORD dwError; | |
| 317 WCHAR szIpAddress[RAS_MaxIpAddress + 1 ]; | |
| 318 | |
| 319 #ifndef WINNT35COMPATIBLE | |
| 320 | |
| 321 WCHAR szServerIpAddress[RAS_MaxIpAddress + 1 ]; | |
| 322 #endif | |
| 323 DWORD dwOptions; | |
| 324 DWORD dwServerOptions; | |
| 325 }; | |
| 326 | |
| 327 #define RASPPPIPA struct tagRASPPPIPA | |
| 328 RASPPPIPA { | |
| 329 DWORD dwSize; | |
| 330 DWORD dwError; | |
| 331 CHAR szIpAddress[RAS_MaxIpAddress + 1 ]; | |
| 332 #ifndef WINNT35COMPATIBLE | |
| 333 CHAR szServerIpAddress[RAS_MaxIpAddress + 1 ]; | |
| 334 #endif | |
| 335 DWORD dwOptions; | |
| 336 DWORD dwServerOptions; | |
| 337 }; | |
| 338 | |
| 339 #ifdef UNICODE | |
| 340 #define RASPPPIP RASPPPIPW | |
| 341 #else | |
| 342 #define RASPPPIP RASPPPIPA | |
| 343 #endif | |
| 344 | |
| 345 #define LPRASPPPIPW RASPPPIPW* | |
| 346 #define LPRASPPPIPA RASPPPIPA* | |
| 347 #define LPRASPPPIP RASPPPIP* | |
| 348 | |
| 349 #define RASLCPAP_PAP 0xC023 | |
| 350 #define RASLCPAP_SPAP 0xC027 | |
| 351 #define RASLCPAP_CHAP 0xC223 | |
| 352 #define RASLCPAP_EAP 0xC227 | |
| 353 | |
| 354 #define RASLCPAD_CHAP_MD5 0x05 | |
| 355 #define RASLCPAD_CHAP_MS 0x80 | |
| 356 #define RASLCPAD_CHAP_MSV2 0x81 | |
| 357 | |
| 358 #define RASLCPO_PFC 0x00000001 | |
| 359 #define RASLCPO_ACFC 0x00000002 | |
| 360 #define RASLCPO_SSHF 0x00000004 | |
| 361 #define RASLCPO_DES_56 0x00000008 | |
| 362 #define RASLCPO_3_DES 0x00000010 | |
| 363 | |
| 364 #define RASPPPLCPW struct tagRASPPPLCPW | |
| 365 RASPPPLCPW { | |
| 366 DWORD dwSize; | |
| 367 WINBOOL fBundled; | |
| 368 DWORD dwError; | |
| 369 DWORD dwAuthenticationProtocol; | |
| 370 DWORD dwAuthenticationData; | |
| 371 DWORD dwEapTypeId; | |
| 372 DWORD dwServerAuthenticationProtocol; | |
| 373 DWORD dwServerAuthenticationData; | |
| 374 DWORD dwServerEapTypeId; | |
| 375 WINBOOL fMultilink; | |
| 376 DWORD dwTerminateReason; | |
| 377 DWORD dwServerTerminateReason; | |
| 378 WCHAR szReplyMessage[RAS_MaxReplyMessage]; | |
| 379 DWORD dwOptions; | |
| 380 DWORD dwServerOptions; | |
| 381 }; | |
| 382 | |
| 383 #define RASPPPLCPA struct tagRASPPPLCPA | |
| 384 RASPPPLCPA { | |
| 385 DWORD dwSize; | |
| 386 WINBOOL fBundled; | |
| 387 DWORD dwError; | |
| 388 DWORD dwAuthenticationProtocol; | |
| 389 DWORD dwAuthenticationData; | |
| 390 DWORD dwEapTypeId; | |
| 391 DWORD dwServerAuthenticationProtocol; | |
| 392 DWORD dwServerAuthenticationData; | |
| 393 DWORD dwServerEapTypeId; | |
| 394 WINBOOL fMultilink; | |
| 395 DWORD dwTerminateReason; | |
| 396 DWORD dwServerTerminateReason; | |
| 397 CHAR szReplyMessage[RAS_MaxReplyMessage]; | |
| 398 DWORD dwOptions; | |
| 399 DWORD dwServerOptions; | |
| 400 }; | |
| 401 | |
| 402 #ifdef UNICODE | |
| 403 #define RASPPPLCP RASPPPLCPW | |
| 404 #else | |
| 405 #define RASPPPLCP RASPPPLCPA | |
| 406 #endif | |
| 407 | |
| 408 #define LPRASPPPLCPW RASPPPLCPW * | |
| 409 #define LPRASPPPLCPA RASPPPLCPA * | |
| 410 #define LPRASPPPLCP RASPPPLCP * | |
| 411 | |
| 412 #define RASSLIPW struct tagRASSLIPW | |
| 413 RASSLIPW { | |
| 414 DWORD dwSize; | |
| 415 DWORD dwError; | |
| 416 WCHAR szIpAddress[RAS_MaxIpAddress + 1 ]; | |
| 417 }; | |
| 418 | |
| 419 #define RASSLIPA struct tagRASSLIPA | |
| 420 RASSLIPA { | |
| 421 DWORD dwSize; | |
| 422 DWORD dwError; | |
| 423 CHAR szIpAddress[RAS_MaxIpAddress + 1 ]; | |
| 424 }; | |
| 425 | |
| 426 #ifdef UNICODE | |
| 427 #define RASSLIP RASSLIPW | |
| 428 #else | |
| 429 #define RASSLIP RASSLIPA | |
| 430 #endif | |
| 431 | |
| 432 #define LPRASSLIPW RASSLIPW* | |
| 433 #define LPRASSLIPA RASSLIPA* | |
| 434 #define LPRASSLIP RASSLIP* | |
| 435 | |
| 436 #define RASCCPCA_MPPC 0x00000006 | |
| 437 #define RASCCPCA_STAC 0x00000005 | |
| 438 | |
| 439 #define RASCCPO_Compression 0x00000001 | |
| 440 #define RASCCPO_HistoryLess 0x00000002 | |
| 441 #define RASCCPO_Encryption56bit 0x00000010 | |
| 442 #define RASCCPO_Encryption40bit 0x00000020 | |
| 443 #define RASCCPO_Encryption128bit 0x00000040 | |
| 444 | |
| 445 #define RASPPPCCP struct tagRASPPPCCP | |
| 446 RASPPPCCP { | |
| 447 DWORD dwSize; | |
| 448 DWORD dwError; | |
| 449 DWORD dwCompressionAlgorithm; | |
| 450 DWORD dwOptions; | |
| 451 DWORD dwServerCompressionAlgorithm; | |
| 452 DWORD dwServerOptions; | |
| 453 }; | |
| 454 | |
| 455 #define LPRASPPPCCP RASPPPCCP * | |
| 456 | |
| 457 #define RASDIALEVENT "RasDialEvent" | |
| 458 #define WM_RASDIALEVENT 0xCCCD | |
| 459 | |
| 460 typedef VOID (WINAPI *RASDIALFUNC)(UINT,RASCONNSTATE,DWORD); | |
| 461 typedef VOID (WINAPI *RASDIALFUNC1)(HRASCONN,UINT,RASCONNSTATE,DWORD,DWORD); | |
| 462 typedef DWORD (WINAPI *RASDIALFUNC2)(ULONG_PTR,DWORD,HRASCONN,UINT,RASCONNSTATE,DWORD,DWORD); | |
| 463 | |
| 464 #define RASDEVINFOW struct tagRASDEVINFOW | |
| 465 RASDEVINFOW { | |
| 466 DWORD dwSize; | |
| 467 WCHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 468 WCHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 469 }; | |
| 470 | |
| 471 #define RASDEVINFOA struct tagRASDEVINFOA | |
| 472 RASDEVINFOA { | |
| 473 DWORD dwSize; | |
| 474 CHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 475 CHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 476 }; | |
| 477 | |
| 478 #ifdef UNICODE | |
| 479 #define RASDEVINFO RASDEVINFOW | |
| 480 #else | |
| 481 #define RASDEVINFO RASDEVINFOA | |
| 482 #endif | |
| 483 | |
| 484 #define LPRASDEVINFOW RASDEVINFOW* | |
| 485 #define LPRASDEVINFOA RASDEVINFOA* | |
| 486 #define LPRASDEVINFO RASDEVINFO* | |
| 487 | |
| 488 #define RASCTRYINFO struct RASCTRYINFO | |
| 489 RASCTRYINFO { | |
| 490 DWORD dwSize; | |
| 491 DWORD dwCountryID; | |
| 492 DWORD dwNextCountryID; | |
| 493 DWORD dwCountryCode; | |
| 494 DWORD dwCountryNameOffset; | |
| 495 }; | |
| 496 | |
| 497 #define RASCTRYINFOW RASCTRYINFO | |
| 498 #define RASCTRYINFOA RASCTRYINFO | |
| 499 | |
| 500 #define LPRASCTRYINFOW RASCTRYINFOW* | |
| 501 #define LPRASCTRYINFOA RASCTRYINFOW* | |
| 502 #define LPRASCTRYINFO RASCTRYINFO* | |
| 503 | |
| 504 #define RASIPADDR struct RASIPADDR | |
| 505 RASIPADDR { | |
| 506 BYTE a; | |
| 507 BYTE b; | |
| 508 BYTE c; | |
| 509 BYTE d; | |
| 510 }; | |
| 511 | |
| 512 #define ET_None 0 | |
| 513 #define ET_Require 1 | |
| 514 #define ET_RequireMax 2 | |
| 515 #define ET_Optional 3 | |
| 516 | |
| 517 #define VS_Default 0 | |
| 518 #define VS_PptpOnly 1 | |
| 519 #define VS_PptpFirst 2 | |
| 520 #define VS_L2tpOnly 3 | |
| 521 #define VS_L2tpFirst 4 | |
| 522 | |
| 523 #define RASENTRYA struct tagRASENTRYA | |
| 524 RASENTRYA { | |
| 525 DWORD dwSize; | |
| 526 DWORD dwfOptions; | |
| 527 DWORD dwCountryID; | |
| 528 DWORD dwCountryCode; | |
| 529 CHAR szAreaCode[RAS_MaxAreaCode + 1 ]; | |
| 530 CHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1 ]; | |
| 531 DWORD dwAlternateOffset; | |
| 532 RASIPADDR ipaddr; | |
| 533 RASIPADDR ipaddrDns; | |
| 534 RASIPADDR ipaddrDnsAlt; | |
| 535 RASIPADDR ipaddrWins; | |
| 536 RASIPADDR ipaddrWinsAlt; | |
| 537 DWORD dwFrameSize; | |
| 538 DWORD dwfNetProtocols; | |
| 539 DWORD dwFramingProtocol; | |
| 540 CHAR szScript[MAX_PATH ]; | |
| 541 CHAR szAutodialDll[MAX_PATH ]; | |
| 542 CHAR szAutodialFunc[MAX_PATH ]; | |
| 543 CHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 544 CHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 545 CHAR szX25PadType[RAS_MaxPadType + 1 ]; | |
| 546 CHAR szX25Address[RAS_MaxX25Address + 1 ]; | |
| 547 CHAR szX25Facilities[RAS_MaxFacilities + 1 ]; | |
| 548 CHAR szX25UserData[RAS_MaxUserData + 1 ]; | |
| 549 DWORD dwChannels; | |
| 550 DWORD dwReserved1; | |
| 551 DWORD dwReserved2; | |
| 552 DWORD dwSubEntries; | |
| 553 DWORD dwDialMode; | |
| 554 DWORD dwDialExtraPercent; | |
| 555 DWORD dwDialExtraSampleSeconds; | |
| 556 DWORD dwHangUpExtraPercent; | |
| 557 DWORD dwHangUpExtraSampleSeconds; | |
| 558 DWORD dwIdleDisconnectSeconds; | |
| 559 DWORD dwType; | |
| 560 DWORD dwEncryptionType; | |
| 561 DWORD dwCustomAuthKey; | |
| 562 GUID guidId; | |
| 563 CHAR szCustomDialDll[MAX_PATH]; | |
| 564 DWORD dwVpnStrategy; | |
| 565 DWORD dwfOptions2; | |
| 566 DWORD dwfOptions3; | |
| 567 CHAR szDnsSuffix[RAS_MaxDnsSuffix]; | |
| 568 DWORD dwTcpWindowSize; | |
| 569 CHAR szPrerequisitePbk[MAX_PATH]; | |
| 570 CHAR szPrerequisiteEntry[RAS_MaxEntryName + 1]; | |
| 571 DWORD dwRedialCount; | |
| 572 DWORD dwRedialPause; | |
| 573 }; | |
| 574 | |
| 575 #define RASENTRYW struct tagRASENTRYW | |
| 576 RASENTRYW { | |
| 577 DWORD dwSize; | |
| 578 DWORD dwfOptions; | |
| 579 DWORD dwCountryID; | |
| 580 DWORD dwCountryCode; | |
| 581 WCHAR szAreaCode[RAS_MaxAreaCode + 1 ]; | |
| 582 WCHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1 ]; | |
| 583 DWORD dwAlternateOffset; | |
| 584 RASIPADDR ipaddr; | |
| 585 RASIPADDR ipaddrDns; | |
| 586 RASIPADDR ipaddrDnsAlt; | |
| 587 RASIPADDR ipaddrWins; | |
| 588 RASIPADDR ipaddrWinsAlt; | |
| 589 DWORD dwFrameSize; | |
| 590 DWORD dwfNetProtocols; | |
| 591 DWORD dwFramingProtocol; | |
| 592 WCHAR szScript[MAX_PATH ]; | |
| 593 WCHAR szAutodialDll[MAX_PATH ]; | |
| 594 WCHAR szAutodialFunc[MAX_PATH ]; | |
| 595 WCHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 596 WCHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 597 WCHAR szX25PadType[RAS_MaxPadType + 1 ]; | |
| 598 WCHAR szX25Address[RAS_MaxX25Address + 1 ]; | |
| 599 WCHAR szX25Facilities[RAS_MaxFacilities + 1 ]; | |
| 600 WCHAR szX25UserData[RAS_MaxUserData + 1 ]; | |
| 601 DWORD dwChannels; | |
| 602 DWORD dwReserved1; | |
| 603 DWORD dwReserved2; | |
| 604 DWORD dwSubEntries; | |
| 605 DWORD dwDialMode; | |
| 606 DWORD dwDialExtraPercent; | |
| 607 DWORD dwDialExtraSampleSeconds; | |
| 608 DWORD dwHangUpExtraPercent; | |
| 609 DWORD dwHangUpExtraSampleSeconds; | |
| 610 DWORD dwIdleDisconnectSeconds; | |
| 611 DWORD dwType; | |
| 612 DWORD dwEncryptionType; | |
| 613 DWORD dwCustomAuthKey; | |
| 614 GUID guidId; | |
| 615 WCHAR szCustomDialDll[MAX_PATH]; | |
| 616 DWORD dwVpnStrategy; | |
| 617 DWORD dwfOptions2; | |
| 618 DWORD dwfOptions3; | |
| 619 WCHAR szDnsSuffix[RAS_MaxDnsSuffix]; | |
| 620 DWORD dwTcpWindowSize; | |
| 621 WCHAR szPrerequisitePbk[MAX_PATH]; | |
| 622 WCHAR szPrerequisiteEntry[RAS_MaxEntryName + 1]; | |
| 623 DWORD dwRedialCount; | |
| 624 DWORD dwRedialPause; | |
| 625 }; | |
| 626 | |
| 627 #ifdef UNICODE | |
| 628 #define RASENTRY RASENTRYW | |
| 629 #else | |
| 630 #define RASENTRY RASENTRYA | |
| 631 #endif | |
| 632 | |
| 633 #define LPRASENTRYW RASENTRYW* | |
| 634 #define LPRASENTRYA RASENTRYA* | |
| 635 #define LPRASENTRY RASENTRY* | |
| 636 | |
| 637 #define RASEO_UseCountryAndAreaCodes 0x00000001 | |
| 638 #define RASEO_SpecificIpAddr 0x00000002 | |
| 639 #define RASEO_SpecificNameServers 0x00000004 | |
| 640 #define RASEO_IpHeaderCompression 0x00000008 | |
| 641 #define RASEO_RemoteDefaultGateway 0x00000010 | |
| 642 #define RASEO_DisableLcpExtensions 0x00000020 | |
| 643 #define RASEO_TerminalBeforeDial 0x00000040 | |
| 644 #define RASEO_TerminalAfterDial 0x00000080 | |
| 645 #define RASEO_ModemLights 0x00000100 | |
| 646 #define RASEO_SwCompression 0x00000200 | |
| 647 #define RASEO_RequireEncryptedPw 0x00000400 | |
| 648 #define RASEO_RequireMsEncryptedPw 0x00000800 | |
| 649 #define RASEO_RequireDataEncryption 0x00001000 | |
| 650 #define RASEO_NetworkLogon 0x00002000 | |
| 651 #define RASEO_UseLogonCredentials 0x00004000 | |
| 652 #define RASEO_PromoteAlternates 0x00008000 | |
| 653 #define RASEO_SecureLocalFiles 0x00010000 | |
| 654 #define RASEO_RequireEAP 0x00020000 | |
| 655 #define RASEO_RequirePAP 0x00040000 | |
| 656 #define RASEO_RequireSPAP 0x00080000 | |
| 657 #define RASEO_Custom 0x00100000 | |
| 658 #define RASEO_PreviewPhoneNumber 0x00200000 | |
| 659 #define RASEO_SharedPhoneNumbers 0x00800000 | |
| 660 #define RASEO_PreviewUserPw 0x01000000 | |
| 661 #define RASEO_PreviewDomain 0x02000000 | |
| 662 #define RASEO_ShowDialingProgress 0x04000000 | |
| 663 #define RASEO_RequireCHAP 0x08000000 | |
| 664 #define RASEO_RequireMsCHAP 0x10000000 | |
| 665 #define RASEO_RequireMsCHAP2 0x20000000 | |
| 666 #define RASEO_RequireW95MSCHAP 0x40000000 | |
| 667 #define RASEO_CustomScript 0x80000000 | |
| 668 | |
| 669 #define RASEO2_SecureFileAndPrint 0x00000001 | |
| 670 #define RASEO2_SecureClientForMSNet 0x00000002 | |
| 671 #define RASEO2_DontNegotiateMultilink 0x00000004 | |
| 672 #define RASEO2_DontUseRasCredentials 0x00000008 | |
| 673 #define RASEO2_UsePreSharedKey 0x00000010 | |
| 674 #define RASEO2_Internet 0x00000020 | |
| 675 #define RASEO2_DisableNbtOverIP 0x00000040 | |
| 676 #define RASEO2_UseGlobalDeviceSettings 0x00000080 | |
| 677 #define RASEO2_ReconnectIfDropped 0x00000100 | |
| 678 #define RASEO2_SharePhoneNumbers 0x00000200 | |
| 679 | |
| 680 #define RASNP_NetBEUI 0x00000001 | |
| 681 #define RASNP_Ipx 0x00000002 | |
| 682 #define RASNP_Ip 0x00000004 | |
| 683 | |
| 684 #define RASFP_Ppp 0x00000001 | |
| 685 #define RASFP_Slip 0x00000002 | |
| 686 #define RASFP_Ras 0x00000004 | |
| 687 | |
| 688 #define RASDT_Modem TEXT("modem") | |
| 689 #define RASDT_Isdn TEXT("isdn") | |
| 690 #define RASDT_X25 TEXT("x25") | |
| 691 #define RASDT_Vpn TEXT("vpn") | |
| 692 #define RASDT_Pad TEXT("pad") | |
| 693 #define RASDT_Generic TEXT("GENERIC") | |
| 694 #define RASDT_Serial TEXT("SERIAL") | |
| 695 #define RASDT_FrameRelay TEXT("FRAMERELAY") | |
| 696 #define RASDT_Atm TEXT("ATM") | |
| 697 #define RASDT_Sonet TEXT("SONET") | |
| 698 #define RASDT_SW56 TEXT("SW56") | |
| 699 #define RASDT_Irda TEXT("IRDA") | |
| 700 #define RASDT_Parallel TEXT("PARALLEL") | |
| 701 #define RASDT_PPPoE TEXT("PPPoE") | |
| 702 | |
| 703 #define RASET_Phone 1 | |
| 704 #define RASET_Vpn 2 | |
| 705 #define RASET_Direct 3 | |
| 706 #define RASET_Internet 4 | |
| 707 #define RASET_Broadband 5 | |
| 708 | |
| 709 typedef WINBOOL (WINAPI *ORASADFUNC)(HWND,LPSTR,DWORD,LPDWORD); | |
| 710 | |
| 711 #define RASCN_Connection 0x00000001 | |
| 712 #define RASCN_Disconnection 0x00000002 | |
| 713 #define RASCN_BandwidthAdded 0x00000004 | |
| 714 #define RASCN_BandwidthRemoved 0x00000008 | |
| 715 | |
| 716 #define RASEDM_DialAll 1 | |
| 717 #define RASEDM_DialAsNeeded 2 | |
| 718 | |
| 719 #define RASIDS_Disabled 0xffffffff | |
| 720 #define RASIDS_UseGlobalValue 0 | |
| 721 | |
| 722 #define RASADPARAMS struct tagRASADPARAMS | |
| 723 RASADPARAMS { | |
| 724 DWORD dwSize; | |
| 725 HWND hwndOwner; | |
| 726 DWORD dwFlags; | |
| 727 LONG xDlg; | |
| 728 LONG yDlg; | |
| 729 }; | |
| 730 | |
| 731 #define LPRASADPARAMS RASADPARAMS* | |
| 732 | |
| 733 #define RASADFLG_PositionDlg 0x00000001 | |
| 734 | |
| 735 typedef WINBOOL (WINAPI *RASADFUNCA)(LPSTR,LPSTR,LPRASADPARAMS,LPDWORD); | |
| 736 typedef WINBOOL (WINAPI *RASADFUNCW)(LPWSTR,LPWSTR,LPRASADPARAMS,LPDWORD); | |
| 737 | |
| 738 #ifdef UNICODE | |
| 739 #define RASADFUNC RASADFUNCW | |
| 740 #else | |
| 741 #define RASADFUNC RASADFUNCA | |
| 742 #endif | |
| 743 | |
| 744 #define RASSUBENTRYA struct tagRASSUBENTRYA | |
| 745 RASSUBENTRYA { | |
| 746 DWORD dwSize; | |
| 747 DWORD dwfFlags; | |
| 748 CHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 749 CHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 750 CHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1 ]; | |
| 751 DWORD dwAlternateOffset; | |
| 752 }; | |
| 753 | |
| 754 #define RASSUBENTRYW struct tagRASSUBENTRYW | |
| 755 RASSUBENTRYW { | |
| 756 DWORD dwSize; | |
| 757 DWORD dwfFlags; | |
| 758 WCHAR szDeviceType[RAS_MaxDeviceType + 1 ]; | |
| 759 WCHAR szDeviceName[RAS_MaxDeviceName + 1 ]; | |
| 760 WCHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1 ]; | |
| 761 DWORD dwAlternateOffset; | |
| 762 }; | |
| 763 | |
| 764 #ifdef UNICODE | |
| 765 #define RASSUBENTRY RASSUBENTRYW | |
| 766 #else | |
| 767 #define RASSUBENTRY RASSUBENTRYA | |
| 768 #endif | |
| 769 | |
| 770 #define LPRASSUBENTRYW RASSUBENTRYW* | |
| 771 #define LPRASSUBENTRYA RASSUBENTRYA* | |
| 772 #define LPRASSUBENTRY RASSUBENTRY* | |
| 773 | |
| 774 #define RASCREDENTIALSA struct tagRASCREDENTIALSA | |
| 775 RASCREDENTIALSA { | |
| 776 DWORD dwSize; | |
| 777 DWORD dwMask; | |
| 778 CHAR szUserName[UNLEN + 1 ]; | |
| 779 CHAR szPassword[PWLEN + 1 ]; | |
| 780 CHAR szDomain[DNLEN + 1 ]; | |
| 781 }; | |
| 782 | |
| 783 #define RASCREDENTIALSW struct tagRASCREDENTIALSW | |
| 784 RASCREDENTIALSW { | |
| 785 DWORD dwSize; | |
| 786 DWORD dwMask; | |
| 787 WCHAR szUserName[UNLEN + 1 ]; | |
| 788 WCHAR szPassword[PWLEN + 1 ]; | |
| 789 WCHAR szDomain[DNLEN + 1 ]; | |
| 790 }; | |
| 791 | |
| 792 #ifdef UNICODE | |
| 793 #define RASCREDENTIALS RASCREDENTIALSW | |
| 794 #else | |
| 795 #define RASCREDENTIALS RASCREDENTIALSA | |
| 796 #endif | |
| 797 | |
| 798 #define LPRASCREDENTIALSW RASCREDENTIALSW* | |
| 799 #define LPRASCREDENTIALSA RASCREDENTIALSA* | |
| 800 #define LPRASCREDENTIALS RASCREDENTIALS* | |
| 801 | |
| 802 #define RASCM_UserName 0x00000001 | |
| 803 #define RASCM_Password 0x00000002 | |
| 804 #define RASCM_Domain 0x00000004 | |
| 805 #define RASCM_DefaultCreds 0x00000008 | |
| 806 #define RASCM_PreSharedKey 0x00000010 | |
| 807 #define RASCM_ServerPreSharedKey 0x00000020 | |
| 808 #define RASCM_DDMPreSharedKey 0x00000040 | |
| 809 | |
| 810 #define RASAUTODIALENTRYA struct tagRASAUTODIALENTRYA | |
| 811 RASAUTODIALENTRYA { | |
| 812 DWORD dwSize; | |
| 813 DWORD dwFlags; | |
| 814 DWORD dwDialingLocation; | |
| 815 CHAR szEntry[RAS_MaxEntryName + 1]; | |
| 816 }; | |
| 817 | |
| 818 #define RASAUTODIALENTRYW struct tagRASAUTODIALENTRYW | |
| 819 RASAUTODIALENTRYW { | |
| 820 DWORD dwSize; | |
| 821 DWORD dwFlags; | |
| 822 DWORD dwDialingLocation; | |
| 823 WCHAR szEntry[RAS_MaxEntryName + 1]; | |
| 824 }; | |
| 825 | |
| 826 #ifdef UNICODE | |
| 827 #define RASAUTODIALENTRY RASAUTODIALENTRYW | |
| 828 #else | |
| 829 #define RASAUTODIALENTRY RASAUTODIALENTRYA | |
| 830 #endif | |
| 831 | |
| 832 #define LPRASAUTODIALENTRYW RASAUTODIALENTRYW* | |
| 833 #define LPRASAUTODIALENTRYA RASAUTODIALENTRYA* | |
| 834 #define LPRASAUTODIALENTRY RASAUTODIALENTRY* | |
| 835 | |
| 836 #define RASADP_DisableConnectionQuery 0 | |
| 837 #define RASADP_LoginSessionDisable 1 | |
| 838 #define RASADP_SavedAddressesLimit 2 | |
| 839 #define RASADP_FailedConnectionTimeout 3 | |
| 840 #define RASADP_ConnectionQueryTimeout 4 | |
| 841 | |
| 842 #define RASEAPF_NonInteractive 0x00000002 | |
| 843 #define RASEAPF_Logon 0x00000004 | |
| 844 #define RASEAPF_Preview 0x00000008 | |
| 845 | |
| 846 #define RASEAPUSERIDENTITYA struct tagRASEAPUSERIDENTITYA | |
| 847 RASEAPUSERIDENTITYA { | |
| 848 CHAR szUserName[UNLEN + 1 ]; | |
| 849 DWORD dwSizeofEapInfo; | |
| 850 BYTE pbEapInfo[1 ]; | |
| 851 }; | |
| 852 | |
| 853 #define RASEAPUSERIDENTITYW struct tagRASEAPUSERIDENTITYW | |
| 854 RASEAPUSERIDENTITYW { | |
| 855 WCHAR szUserName[UNLEN + 1 ]; | |
| 856 DWORD dwSizeofEapInfo; | |
| 857 BYTE pbEapInfo[1 ]; | |
| 858 }; | |
| 859 | |
| 860 #ifdef UNICODE | |
| 861 #define RASEAPUSERIDENTITY RASEAPUSERIDENTITYW | |
| 862 #else | |
| 863 #define RASEAPUSERIDENTITY RASEAPUSERIDENTITYA | |
| 864 #endif | |
| 865 | |
| 866 #define LPRASEAPUSERIDENTITYW RASEAPUSERIDENTITYW* | |
| 867 #define LPRASEAPUSERIDENTITYA RASEAPUSERIDENTITYA* | |
| 868 | |
| 869 typedef DWORD (WINAPI *PFNRASGETBUFFER) (PBYTE *ppBuffer,PDWORD pdwSize); | |
| 870 typedef DWORD (WINAPI *PFNRASFREEBUFFER) (PBYTE pBufer); | |
| 871 typedef DWORD (WINAPI *PFNRASSENDBUFFER) (HANDLE hPort,PBYTE pBuffer,DWORD dwSize); | |
| 872 typedef DWORD (WINAPI *PFNRASRECEIVEBUFFER) (HANDLE hPort,PBYTE pBuffer,PDWORD pdwSize,DWORD dwTimeOut,HANDLE hEvent); | |
| 873 typedef DWORD (WINAPI *PFNRASRETRIEVEBUFFER) (HANDLE hPort,PBYTE pBuffer,PDWORD pdwSize); | |
| 874 typedef DWORD (WINAPI *RasCustomScriptExecuteFn) (HANDLE hPort,LPCWSTR lpszPhonebook,LPCWSTR lpszEntryName,PFNRASGETBUFFER pfnRasGetBuffer,PFNRASFREEBUFFER pfnRasFreeBuffer,PFNRASSENDBUFFER pfnRasSendBuffer,PFNRASRECEIVEBUFFER pfnRasReceiveBuffer,PFNRASRETRIEVEBUFFER pfnRasRetrieveBuffer,HWND hWnd,RASDIALPARAMS *pRasDialParams,PVOID pvReserved); | |
| 875 | |
| 876 #define RASCOMMSETTINGS struct tagRASCOMMSETTINGS | |
| 877 RASCOMMSETTINGS { | |
| 878 DWORD dwSize; | |
| 879 BYTE bParity; | |
| 880 BYTE bStop; | |
| 881 BYTE bByteSize; | |
| 882 BYTE bAlign; | |
| 883 }; | |
| 884 | |
| 885 typedef DWORD (WINAPI *PFNRASSETCOMMSETTINGS) (HANDLE hPort,RASCOMMSETTINGS *pRasCommSettings,PVOID pvReserved); | |
| 886 | |
| 887 #define RASCUSTOMSCRIPTEXTENSIONS struct tagRASCUSTOMSCRIPTEXTENSIONS | |
| 888 RASCUSTOMSCRIPTEXTENSIONS { | |
| 889 DWORD dwSize; | |
| 890 PFNRASSETCOMMSETTINGS pfnRasSetCommSettings; | |
| 891 }; | |
| 892 | |
| 893 DWORD WINAPI RasDialA(LPRASDIALEXTENSIONS,LPCSTR,LPRASDIALPARAMSA,DWORD,LPVOID,LPHRASCONN); | |
| 894 DWORD WINAPI RasDialW(LPRASDIALEXTENSIONS,LPCWSTR,LPRASDIALPARAMSW,DWORD,LPVOID,LPHRASCONN); | |
| 895 DWORD WINAPI RasEnumConnectionsA(LPRASCONNA,LPDWORD,LPDWORD); | |
| 896 DWORD WINAPI RasEnumConnectionsW(LPRASCONNW,LPDWORD,LPDWORD); | |
| 897 DWORD WINAPI RasEnumEntriesA(LPCSTR,LPCSTR,LPRASENTRYNAMEA,LPDWORD,LPDWORD); | |
| 898 DWORD WINAPI RasEnumEntriesW(LPCWSTR,LPCWSTR,LPRASENTRYNAMEW,LPDWORD,LPDWORD); | |
| 899 DWORD WINAPI RasGetConnectStatusA(HRASCONN,LPRASCONNSTATUSA); | |
| 900 DWORD WINAPI RasGetConnectStatusW(HRASCONN,LPRASCONNSTATUSW); | |
| 901 DWORD WINAPI RasGetErrorStringA(UINT,LPSTR,DWORD); | |
| 902 DWORD WINAPI RasGetErrorStringW(UINT,LPWSTR,DWORD); | |
| 903 DWORD WINAPI RasHangUpA(HRASCONN); | |
| 904 DWORD WINAPI RasHangUpW(HRASCONN); | |
| 905 DWORD WINAPI RasGetProjectionInfoA(HRASCONN,RASPROJECTION,LPVOID,LPDWORD); | |
| 906 DWORD WINAPI RasGetProjectionInfoW(HRASCONN,RASPROJECTION,LPVOID,LPDWORD); | |
| 907 DWORD WINAPI RasCreatePhonebookEntryA(HWND,LPCSTR); | |
| 908 DWORD WINAPI RasCreatePhonebookEntryW(HWND,LPCWSTR); | |
| 909 DWORD WINAPI RasEditPhonebookEntryA(HWND,LPCSTR,LPCSTR); | |
| 910 DWORD WINAPI RasEditPhonebookEntryW(HWND,LPCWSTR,LPCWSTR); | |
| 911 DWORD WINAPI RasSetEntryDialParamsA(LPCSTR,LPRASDIALPARAMSA,WINBOOL); | |
| 912 DWORD WINAPI RasSetEntryDialParamsW(LPCWSTR,LPRASDIALPARAMSW,WINBOOL); | |
| 913 DWORD WINAPI RasGetEntryDialParamsA(LPCSTR,LPRASDIALPARAMSA,LPBOOL); | |
| 914 DWORD WINAPI RasGetEntryDialParamsW(LPCWSTR,LPRASDIALPARAMSW,LPBOOL); | |
| 915 DWORD WINAPI RasEnumDevicesA(LPRASDEVINFOA,LPDWORD,LPDWORD); | |
| 916 DWORD WINAPI RasEnumDevicesW(LPRASDEVINFOW,LPDWORD,LPDWORD); | |
| 917 DWORD WINAPI RasGetCountryInfoA(LPRASCTRYINFOA,LPDWORD); | |
| 918 DWORD WINAPI RasGetCountryInfoW(LPRASCTRYINFOW,LPDWORD); | |
| 919 DWORD WINAPI RasGetEntryPropertiesA(LPCSTR,LPCSTR,LPRASENTRYA,LPDWORD,LPBYTE,LPDWORD); | |
| 920 DWORD WINAPI RasGetEntryPropertiesW(LPCWSTR,LPCWSTR,LPRASENTRYW,LPDWORD,LPBYTE,LPDWORD); | |
| 921 DWORD WINAPI RasSetEntryPropertiesA(LPCSTR,LPCSTR,LPRASENTRYA,DWORD,LPBYTE,DWORD); | |
| 922 DWORD WINAPI RasSetEntryPropertiesW(LPCWSTR,LPCWSTR,LPRASENTRYW,DWORD,LPBYTE,DWORD); | |
| 923 DWORD WINAPI RasRenameEntryA(LPCSTR,LPCSTR,LPCSTR); | |
| 924 DWORD WINAPI RasRenameEntryW(LPCWSTR,LPCWSTR,LPCWSTR); | |
| 925 DWORD WINAPI RasDeleteEntryA(LPCSTR,LPCSTR); | |
| 926 DWORD WINAPI RasDeleteEntryW(LPCWSTR,LPCWSTR); | |
| 927 DWORD WINAPI RasValidateEntryNameA(LPCSTR,LPCSTR); | |
| 928 DWORD WINAPI RasValidateEntryNameW(LPCWSTR,LPCWSTR); | |
| 929 DWORD WINAPI RasConnectionNotificationA(HRASCONN,HANDLE,DWORD); | |
| 930 DWORD WINAPI RasConnectionNotificationW(HRASCONN,HANDLE,DWORD); | |
| 931 DWORD WINAPI RasGetSubEntryHandleA(HRASCONN,DWORD,LPHRASCONN); | |
| 932 DWORD WINAPI RasGetSubEntryHandleW(HRASCONN,DWORD,LPHRASCONN); | |
| 933 DWORD WINAPI RasGetCredentialsA(LPCSTR,LPCSTR,LPRASCREDENTIALSA); | |
| 934 DWORD WINAPI RasGetCredentialsW(LPCWSTR,LPCWSTR,LPRASCREDENTIALSW); | |
| 935 DWORD WINAPI RasSetCredentialsA(LPCSTR,LPCSTR,LPRASCREDENTIALSA,WINBOOL); | |
| 936 DWORD WINAPI RasSetCredentialsW(LPCWSTR,LPCWSTR,LPRASCREDENTIALSW,WINBOOL); | |
| 937 DWORD WINAPI RasGetSubEntryPropertiesA(LPCSTR,LPCSTR,DWORD,LPRASSUBENTRYA,LPDWORD,LPBYTE,LPDWORD); | |
| 938 DWORD WINAPI RasGetSubEntryPropertiesW(LPCWSTR,LPCWSTR,DWORD,LPRASSUBENTRYW,LPDWORD,LPBYTE,LPDWORD); | |
| 939 DWORD WINAPI RasSetSubEntryPropertiesA(LPCSTR,LPCSTR,DWORD,LPRASSUBENTRYA,DWORD,LPBYTE,DWORD); | |
| 940 DWORD WINAPI RasSetSubEntryPropertiesW(LPCWSTR,LPCWSTR,DWORD,LPRASSUBENTRYW,DWORD,LPBYTE,DWORD); | |
| 941 DWORD WINAPI RasGetAutodialAddressA(LPCSTR,LPDWORD,LPRASAUTODIALENTRYA,LPDWORD,LPDWORD); | |
| 942 DWORD WINAPI RasGetAutodialAddressW(LPCWSTR,LPDWORD,LPRASAUTODIALENTRYW,LPDWORD,LPDWORD); | |
| 943 DWORD WINAPI RasSetAutodialAddressA(LPCSTR,DWORD,LPRASAUTODIALENTRYA,DWORD,DWORD); | |
| 944 DWORD WINAPI RasSetAutodialAddressW(LPCWSTR,DWORD,LPRASAUTODIALENTRYW,DWORD,DWORD); | |
| 945 DWORD WINAPI RasEnumAutodialAddressesA(LPSTR *,LPDWORD,LPDWORD); | |
| 946 DWORD WINAPI RasEnumAutodialAddressesW(LPWSTR *,LPDWORD,LPDWORD); | |
| 947 DWORD WINAPI RasGetAutodialEnableA(DWORD,LPBOOL); | |
| 948 DWORD WINAPI RasGetAutodialEnableW(DWORD,LPBOOL); | |
| 949 DWORD WINAPI RasSetAutodialEnableA(DWORD,WINBOOL); | |
| 950 DWORD WINAPI RasSetAutodialEnableW(DWORD,WINBOOL); | |
| 951 DWORD WINAPI RasGetAutodialParamA(DWORD,LPVOID,LPDWORD); | |
| 952 DWORD WINAPI RasGetAutodialParamW(DWORD,LPVOID,LPDWORD); | |
| 953 DWORD WINAPI RasSetAutodialParamA(DWORD,LPVOID,DWORD); | |
| 954 DWORD WINAPI RasSetAutodialParamW(DWORD,LPVOID,DWORD); | |
| 955 | |
| 956 typedef struct _RAS_STATS { | |
| 957 DWORD dwSize; | |
| 958 DWORD dwBytesXmited; | |
| 959 DWORD dwBytesRcved; | |
| 960 DWORD dwFramesXmited; | |
| 961 DWORD dwFramesRcved; | |
| 962 DWORD dwCrcErr; | |
| 963 DWORD dwTimeoutErr; | |
| 964 DWORD dwAlignmentErr; | |
| 965 DWORD dwHardwareOverrunErr; | |
| 966 DWORD dwFramingErr; | |
| 967 DWORD dwBufferOverrunErr; | |
| 968 DWORD dwCompressionRatioIn; | |
| 969 DWORD dwCompressionRatioOut; | |
| 970 DWORD dwBps; | |
| 971 DWORD dwConnectDuration; | |
| 972 } RAS_STATS,*PRAS_STATS; | |
| 973 | |
| 974 typedef DWORD (WINAPI *RasCustomHangUpFn)(HRASCONN hRasConn); | |
| 975 typedef DWORD (WINAPI *RasCustomDialFn)(HINSTANCE hInstDll,LPRASDIALEXTENSIONS lpRasDialExtensions,LPCWSTR lpszPhonebook,LPRASDIALPARAMS lpRasDialParams,DWORD dwNotifierType,LPVOID lpvNotifier,LPHRASCONN lphRasConn,DWORD dwFlags); | |
| 976 typedef DWORD (WINAPI *RasCustomDeleteEntryNotifyFn)(LPCWSTR lpszPhonebook,LPCWSTR lpszEntry,DWORD dwFlags); | |
| 977 | |
| 978 #define RCD_SingleUser 0 | |
| 979 #define RCD_AllUsers 0x00000001 | |
| 980 #define RCD_Eap 0x00000002 | |
| 981 #define RCD_Logon 0x00000004 | |
| 982 | |
| 983 DWORD WINAPI RasInvokeEapUI(HRASCONN,DWORD,LPRASDIALEXTENSIONS,HWND); | |
| 984 DWORD WINAPI RasGetLinkStatistics(HRASCONN hRasConn,DWORD dwSubEntry,RAS_STATS *lpStatistics); | |
| 985 DWORD WINAPI RasGetConnectionStatistics(HRASCONN hRasConn,RAS_STATS *lpStatistics); | |
| 986 DWORD WINAPI RasClearLinkStatistics(HRASCONN hRasConn,DWORD dwSubEntry); | |
| 987 DWORD WINAPI RasClearConnectionStatistics(HRASCONN hRasConn); | |
| 988 DWORD WINAPI RasGetEapUserDataA(HANDLE hToken,LPCSTR pszPhonebook,LPCSTR pszEntry,BYTE *pbEapData,DWORD *pdwSizeofEapData); | |
| 989 DWORD WINAPI RasGetEapUserDataW(HANDLE hToken,LPCWSTR pszPhonebook,LPCWSTR pszEntry,BYTE *pbEapData,DWORD *pdwSizeofEapData); | |
| 990 DWORD WINAPI RasSetEapUserDataA(HANDLE hToken,LPCSTR pszPhonebook,LPCSTR pszEntry,BYTE *pbEapData,DWORD dwSizeofEapData); | |
| 991 DWORD WINAPI RasSetEapUserDataW(HANDLE hToken,LPCWSTR pszPhonebook,LPCWSTR pszEntry,BYTE *pbEapData,DWORD dwSizeofEapData); | |
| 992 DWORD WINAPI RasGetCustomAuthDataA(LPCSTR pszPhonebook,LPCSTR pszEntry,BYTE *pbCustomAuthData,DWORD *pdwSizeofCustomAuthData); | |
| 993 DWORD WINAPI RasGetCustomAuthDataW(LPCWSTR pszPhonebook,LPCWSTR pszEntry,BYTE *pbCustomAuthData,DWORD *pdwSizeofCustomAuthData); | |
| 994 DWORD WINAPI RasSetCustomAuthDataA(LPCSTR pszPhonebook,LPCSTR pszEntry,BYTE *pbCustomAuthData,DWORD dwSizeofCustomAuthData); | |
| 995 DWORD WINAPI RasSetCustomAuthDataW(LPCWSTR pszPhonebook,LPCWSTR pszEntry,BYTE *pbCustomAuthData,DWORD dwSizeofCustomAuthData); | |
| 996 DWORD WINAPI RasGetEapUserIdentityW(LPCWSTR pszPhonebook,LPCWSTR pszEntry,DWORD dwFlags,HWND hwnd,LPRASEAPUSERIDENTITYW *ppRasEapUserIdentity); | |
| 997 DWORD WINAPI RasGetEapUserIdentityA(LPCSTR pszPhonebook,LPCSTR pszEntry,DWORD dwFlags,HWND hwnd,LPRASEAPUSERIDENTITYA *ppRasEapUserIdentity); | |
| 998 VOID WINAPI RasFreeEapUserIdentityW(LPRASEAPUSERIDENTITYW pRasEapUserIdentity); | |
| 999 VOID WINAPI RasFreeEapUserIdentityA(LPRASEAPUSERIDENTITYA pRasEapUserIdentity); | |
| 1000 DWORD WINAPI RasDeleteSubEntryA(LPCSTR pszPhonebook,LPCSTR pszEntry,DWORD dwSubentryId); | |
| 1001 DWORD WINAPI RasDeleteSubEntryW(LPCWSTR pszPhonebook,LPCWSTR pszEntry,DWORD dwSubEntryId); | |
| 1002 | |
| 1003 #ifdef UNICODE | |
| 1004 #define RasDial RasDialW | |
| 1005 #define RasEnumConnections RasEnumConnectionsW | |
| 1006 #define RasEnumEntries RasEnumEntriesW | |
| 1007 #define RasGetConnectStatus RasGetConnectStatusW | |
| 1008 #define RasGetErrorString RasGetErrorStringW | |
| 1009 #define RasHangUp RasHangUpW | |
| 1010 #define RasGetProjectionInfo RasGetProjectionInfoW | |
| 1011 #define RasCreatePhonebookEntry RasCreatePhonebookEntryW | |
| 1012 #define RasEditPhonebookEntry RasEditPhonebookEntryW | |
| 1013 #define RasSetEntryDialParams RasSetEntryDialParamsW | |
| 1014 #define RasGetEntryDialParams RasGetEntryDialParamsW | |
| 1015 #define RasEnumDevices RasEnumDevicesW | |
| 1016 #define RasGetCountryInfo RasGetCountryInfoW | |
| 1017 #define RasGetEntryProperties RasGetEntryPropertiesW | |
| 1018 #define RasSetEntryProperties RasSetEntryPropertiesW | |
| 1019 #define RasRenameEntry RasRenameEntryW | |
| 1020 #define RasDeleteEntry RasDeleteEntryW | |
| 1021 #define RasValidateEntryName RasValidateEntryNameW | |
| 1022 #define RasGetSubEntryHandle RasGetSubEntryHandleW | |
| 1023 #define RasConnectionNotification RasConnectionNotificationW | |
| 1024 #define RasGetSubEntryProperties RasGetSubEntryPropertiesW | |
| 1025 #define RasSetSubEntryProperties RasSetSubEntryPropertiesW | |
| 1026 #define RasGetCredentials RasGetCredentialsW | |
| 1027 #define RasSetCredentials RasSetCredentialsW | |
| 1028 #define RasGetAutodialAddress RasGetAutodialAddressW | |
| 1029 #define RasSetAutodialAddress RasSetAutodialAddressW | |
| 1030 #define RasEnumAutodialAddresses RasEnumAutodialAddressesW | |
| 1031 #define RasGetAutodialEnable RasGetAutodialEnableW | |
| 1032 #define RasSetAutodialEnable RasSetAutodialEnableW | |
| 1033 #define RasGetAutodialParam RasGetAutodialParamW | |
| 1034 #define RasSetAutodialParam RasSetAutodialParamW | |
| 1035 #define RasGetEapUserData RasGetEapUserDataW | |
| 1036 #define RasSetEapUserData RasSetEapUserDataW | |
| 1037 #define RasGetCustomAuthData RasGetCustomAuthDataW | |
| 1038 #define RasSetCustomAuthData RasSetCustomAuthDataW | |
| 1039 #define RasGetEapUserIdentity RasGetEapUserIdentityW | |
| 1040 #define RasFreeEapUserIdentity RasFreeEapUserIdentityW | |
| 1041 #define RasDeleteSubEntry RasDeleteSubEntryW | |
| 1042 #else | |
| 1043 #define RasDial RasDialA | |
| 1044 #define RasEnumConnections RasEnumConnectionsA | |
| 1045 #define RasEnumEntries RasEnumEntriesA | |
| 1046 #define RasGetConnectStatus RasGetConnectStatusA | |
| 1047 #define RasGetErrorString RasGetErrorStringA | |
| 1048 #define RasHangUp RasHangUpA | |
| 1049 #define RasGetProjectionInfo RasGetProjectionInfoA | |
| 1050 #define RasCreatePhonebookEntry RasCreatePhonebookEntryA | |
| 1051 #define RasEditPhonebookEntry RasEditPhonebookEntryA | |
| 1052 #define RasSetEntryDialParams RasSetEntryDialParamsA | |
| 1053 #define RasGetEntryDialParams RasGetEntryDialParamsA | |
| 1054 #define RasEnumDevices RasEnumDevicesA | |
| 1055 #define RasGetCountryInfo RasGetCountryInfoA | |
| 1056 #define RasGetEntryProperties RasGetEntryPropertiesA | |
| 1057 #define RasSetEntryProperties RasSetEntryPropertiesA | |
| 1058 #define RasRenameEntry RasRenameEntryA | |
| 1059 #define RasDeleteEntry RasDeleteEntryA | |
| 1060 #define RasValidateEntryName RasValidateEntryNameA | |
| 1061 #define RasGetSubEntryHandle RasGetSubEntryHandleA | |
| 1062 #define RasConnectionNotification RasConnectionNotificationA | |
| 1063 #define RasGetSubEntryProperties RasGetSubEntryPropertiesA | |
| 1064 #define RasSetSubEntryProperties RasSetSubEntryPropertiesA | |
| 1065 #define RasGetCredentials RasGetCredentialsA | |
| 1066 #define RasSetCredentials RasSetCredentialsA | |
| 1067 #define RasGetAutodialAddress RasGetAutodialAddressA | |
| 1068 #define RasSetAutodialAddress RasSetAutodialAddressA | |
| 1069 #define RasEnumAutodialAddresses RasEnumAutodialAddressesA | |
| 1070 #define RasGetAutodialEnable RasGetAutodialEnableA | |
| 1071 #define RasSetAutodialEnable RasSetAutodialEnableA | |
| 1072 #define RasGetAutodialParam RasGetAutodialParamA | |
| 1073 #define RasSetAutodialParam RasSetAutodialParamA | |
| 1074 #define RasGetEapUserData RasGetEapUserDataA | |
| 1075 #define RasSetEapUserData RasSetEapUserDataA | |
| 1076 #define RasGetCustomAuthData RasGetCustomAuthDataA | |
| 1077 #define RasSetCustomAuthData RasSetCustomAuthDataA | |
| 1078 #define RasGetEapUserIdentity RasGetEapUserIdentityA | |
| 1079 #define RasFreeEapUserIdentity RasFreeEapUserIdentityA | |
| 1080 #define RasDeleteSubEntry RasDeleteSubEntryA | |
| 1081 #endif | |
| 1082 | |
| 1083 #ifdef __cplusplus | |
| 1084 } | |
| 1085 #endif | |
| 1086 | |
| 1087 #include <poppack.h> | |
| 1088 #endif |
