Diff

Not logged in

Differences From Artifact [4c380b195643fbdf]:

To Artifact [d951e56f7ba4f779]:


4 * Windows API header module * 4 * Windows API header module * 5 * * 5 * * 6 * Translated from MinGW Windows headers * 6 * Translated from MinGW Windows headers * 7 * * 7 * * 8 * Placed into public domain * 8 * Placed into public domain * 9 \***********************************************************************/ 9 \***********************************************************************/ 10 module win32.ras; 10 module win32.ras; 11 pragma(lib, "rasapi32.lib"); | 11 pragma(lib, "rasapi32"); 12 12 13 private import win32.basetyps, win32.lmcons, win32.w32api, win32.windef; 13 private import win32.basetyps, win32.lmcons, win32.w32api, win32.windef; 14 14 15 align(4): 15 align(4): 16 16 17 const RAS_MaxDeviceType = 16; 17 const RAS_MaxDeviceType = 16; 18 const RAS_MaxPhoneNumber = 128; 18 const RAS_MaxPhoneNumber = 128; ................................................................................................................................................................................ 91 RASDT_Parallel = "PARALLEL"; 91 RASDT_Parallel = "PARALLEL"; 92 92 93 const RASET_Phone = 1; 93 const RASET_Phone = 1; 94 const RASET_Vpn = 2; 94 const RASET_Vpn = 2; 95 const RASET_Direct = 3; 95 const RASET_Direct = 3; 96 const RASET_Internet = 4; 96 const RASET_Internet = 4; 97 97 98 static if (WINVER >= 0x0401) { | 98 static if (_WIN32_WINNT >= 0x401) { 99 const RASEO_SecureLocalFiles = 0x00010000; 99 const RASEO_SecureLocalFiles = 0x00010000; 100 const RASCN_Connection = 0x00000001; 100 const RASCN_Connection = 0x00000001; 101 const RASCN_Disconnection = 0x00000002; 101 const RASCN_Disconnection = 0x00000002; 102 const RASCN_BandwidthAdded = 0x00000004; 102 const RASCN_BandwidthAdded = 0x00000004; 103 const RASCN_BandwidthRemoved = 0x00000008; 103 const RASCN_BandwidthRemoved = 0x00000008; 104 const RASEDM_DialAll = 1; 104 const RASEDM_DialAll = 1; 105 const RASEDM_DialAsNeeded = 2; 105 const RASEDM_DialAsNeeded = 2; ................................................................................................................................................................................ 111 const RASCM_Domain = 0x00000004; 111 const RASCM_Domain = 0x00000004; 112 const RASADP_DisableConnectionQuery = 0; 112 const RASADP_DisableConnectionQuery = 0; 113 const RASADP_LoginSessionDisable = 1; 113 const RASADP_LoginSessionDisable = 1; 114 const RASADP_SavedAddressesLimit = 2; 114 const RASADP_SavedAddressesLimit = 2; 115 const RASADP_FailedConnectionTimeout = 3; 115 const RASADP_FailedConnectionTimeout = 3; 116 const RASADP_ConnectionQueryTimeout = 4; 116 const RASADP_ConnectionQueryTimeout = 4; 117 } 117 } 118 static if (WINVER >= 0x0500) { | 118 static if (_WIN32_WINNT >= 0x500) { 119 const RDEOPT_CustomDial = 0x00001000; 119 const RDEOPT_CustomDial = 0x00001000; 120 const RASLCPAP_PAP = 0xC023; 120 const RASLCPAP_PAP = 0xC023; 121 const RASLCPAP_SPAP = 0xC027; 121 const RASLCPAP_SPAP = 0xC027; 122 const RASLCPAP_CHAP = 0xC223; 122 const RASLCPAP_CHAP = 0xC223; 123 const RASLCPAP_EAP = 0xC227; 123 const RASLCPAP_EAP = 0xC227; 124 const RASLCPAD_CHAP_MD5 = 0x05; 124 const RASLCPAD_CHAP_MD5 = 0x05; 125 const RASLCPAD_CHAP_MS = 0x80; 125 const RASLCPAD_CHAP_MS = 0x80; ................................................................................................................................................................................ 196 RASCS_LogonNetwork, 196 RASCS_LogonNetwork, 197 RASCS_SubEntryConnected, 197 RASCS_SubEntryConnected, 198 RASCS_SubEntryDisconnected, 198 RASCS_SubEntryDisconnected, 199 RASCS_Interactive = RASCS_PAUSED, 199 RASCS_Interactive = RASCS_PAUSED, 200 RASCS_RetryAuthentication, 200 RASCS_RetryAuthentication, 201 RASCS_CallbackSetByCaller, 201 RASCS_CallbackSetByCaller, 202 RASCS_PasswordExpired, 202 RASCS_PasswordExpired, 203 // static if (WINVER >= 0x0500) { | 203 // static if (_WIN32_WINNT >= 0x500) { 204 RASCS_InvokeEapUI, 204 RASCS_InvokeEapUI, 205 // } 205 // } 206 RASCS_Connected = RASCS_DONE, 206 RASCS_Connected = RASCS_DONE, 207 RASCS_Disconnected 207 RASCS_Disconnected 208 } 208 } 209 alias RASCONNSTATE* LPRASCONNSTATE; 209 alias RASCONNSTATE* LPRASCONNSTATE; 210 210 211 enum RASPROJECTION { 211 enum RASPROJECTION { 212 RASP_Amb = 0x10000, 212 RASP_Amb = 0x10000, 213 RASP_PppNbf = 0x803F, 213 RASP_PppNbf = 0x803F, 214 RASP_PppIpx = 0x802B, 214 RASP_PppIpx = 0x802B, 215 RASP_PppIp = 0x8021, 215 RASP_PppIp = 0x8021, 216 // static if (WINVER >= 0x0500) { | 216 // static if (_WIN32_WINNT >= 0x500) { 217 RASP_PppCcp = 0x80FD, 217 RASP_PppCcp = 0x80FD, 218 // } 218 // } 219 RASP_PppLcp = 0xC021, 219 RASP_PppLcp = 0xC021, 220 RASP_Slip = 0x20000 220 RASP_Slip = 0x20000 221 } 221 } 222 alias RASPROJECTION* LPRASPROJECTION; 222 alias RASPROJECTION* LPRASPROJECTION; 223 223 224 alias HANDLE HRASCONN; | 224 alias TypeDef!(HANDLE) HRASCONN; 225 alias HRASCONN* LPHRASCONN; 225 alias HRASCONN* LPHRASCONN; 226 226 227 struct RASCONNW { 227 struct RASCONNW { 228 DWORD dwSize; 228 DWORD dwSize; 229 HRASCONN hrasconn; 229 HRASCONN hrasconn; 230 WCHAR szEntryName[RAS_MaxEntryName + 1]; | 230 WCHAR[RAS_MaxEntryName + 1] szEntryName; 231 static if (WINVER >= 0x0400) { < 232 WCHAR szDeviceType[RAS_MaxDeviceType + 1]; | 231 WCHAR[RAS_MaxDeviceType + 1] szDeviceType; 233 WCHAR szDeviceName[RAS_MaxDeviceName + 1]; | 232 WCHAR[RAS_MaxDeviceName + 1] szDeviceName; 234 } < 235 static if (WINVER >= 0x0401) { | 233 static if (_WIN32_WINNT >= 0x401) { 236 WCHAR szPhonebook[MAX_PATH]; | 234 WCHAR[MAX_PATH] szPhonebook; 237 DWORD dwSubEntry; 235 DWORD dwSubEntry; 238 } 236 } 239 static if (WINVER >= 0x0500) { | 237 static if (_WIN32_WINNT >= 0x500) { 240 GUID guidEntry; 238 GUID guidEntry; 241 } 239 } 242 static if (WINVER >= 0x0501) { | 240 static if (_WIN32_WINNT >= 0x501) { 243 DWORD dwFlags; 241 DWORD dwFlags; 244 LUID luid; 242 LUID luid; 245 } 243 } 246 } 244 } 247 alias RASCONNW* LPRASCONNW; 245 alias RASCONNW* LPRASCONNW; 248 246 249 struct RASCONNA { 247 struct RASCONNA { 250 DWORD dwSize; 248 DWORD dwSize; 251 HRASCONN hrasconn; 249 HRASCONN hrasconn; 252 CHAR szEntryName[RAS_MaxEntryName + 1]; | 250 CHAR[RAS_MaxEntryName + 1] szEntryName; 253 static if (WINVER >= 0x0400) { < 254 CHAR szDeviceType[RAS_MaxDeviceType + 1]; | 251 CHAR[RAS_MaxDeviceType + 1] szDeviceType; 255 CHAR szDeviceName[RAS_MaxDeviceName + 1]; | 252 CHAR[RAS_MaxDeviceName + 1] szDeviceName; 256 } < 257 static if (WINVER >= 0x0401) { | 253 static if (_WIN32_WINNT >= 0x401) { 258 CHAR szPhonebook[MAX_PATH]; | 254 CHAR[MAX_PATH] szPhonebook; 259 DWORD dwSubEntry; 255 DWORD dwSubEntry; 260 } 256 } 261 static if (WINVER >= 0x0500) { | 257 static if (_WIN32_WINNT >= 0x500) { 262 GUID guidEntry; 258 GUID guidEntry; 263 } 259 } 264 static if (WINVER >= 0x0501) { | 260 static if (_WIN32_WINNT >= 0x501) { 265 DWORD dwFlags; 261 DWORD dwFlags; 266 LUID luid; 262 LUID luid; 267 } 263 } 268 } 264 } 269 alias RASCONNA* LPRASCONNA; 265 alias RASCONNA* LPRASCONNA; 270 266 271 struct RASCONNSTATUSW { 267 struct RASCONNSTATUSW { 272 DWORD dwSize; 268 DWORD dwSize; 273 RASCONNSTATE rasconnstate; 269 RASCONNSTATE rasconnstate; 274 DWORD dwError; 270 DWORD dwError; 275 WCHAR szDeviceType[RAS_MaxDeviceType + 1]; | 271 WCHAR[RAS_MaxDeviceType + 1] szDeviceType; 276 WCHAR szDeviceName[RAS_MaxDeviceName + 1]; | 272 WCHAR[RAS_MaxDeviceName + 1] szDeviceName; 277 static if (WINVER >= 0x0401) { | 273 static if (_WIN32_WINNT >= 0x401) { 278 WCHAR szPhoneNumber[RAS_MaxPhoneNumber + 1]; | 274 WCHAR[RAS_MaxPhoneNumber + 1] szPhoneNumber; 279 } 275 } 280 } 276 } 281 alias RASCONNSTATUSW* LPRASCONNSTATUSW; 277 alias RASCONNSTATUSW* LPRASCONNSTATUSW; 282 278 283 struct RASCONNSTATUSA { 279 struct RASCONNSTATUSA { 284 DWORD dwSize; 280 DWORD dwSize; 285 RASCONNSTATE rasconnstate; 281 RASCONNSTATE rasconnstate; 286 DWORD dwError; 282 DWORD dwError; 287 CHAR szDeviceType[RAS_MaxDeviceType + 1]; | 283 CHAR[RAS_MaxDeviceType + 1] szDeviceType; 288 CHAR szDeviceName[RAS_MaxDeviceName + 1]; | 284 CHAR[RAS_MaxDeviceName + 1] szDeviceName; 289 static if (WINVER >= 0x0401) { | 285 static if (_WIN32_WINNT >= 0x401) { 290 CHAR szPhoneNumber[RAS_MaxPhoneNumber + 1]; | 286 CHAR[RAS_MaxPhoneNumber + 1] szPhoneNumber; 291 } 287 } 292 } 288 } 293 alias RASCONNSTATUSA* LPRASCONNSTATUSA; 289 alias RASCONNSTATUSA* LPRASCONNSTATUSA; 294 290 295 struct RASDIALPARAMSW { 291 struct RASDIALPARAMSW { 296 DWORD dwSize; 292 DWORD dwSize; 297 WCHAR szEntryName[RAS_MaxEntryName + 1]; | 293 WCHAR[RAS_MaxEntryName + 1] szEntryName; 298 WCHAR szPhoneNumber[RAS_MaxPhoneNumber + 1]; | 294 WCHAR[RAS_MaxPhoneNumber + 1] szPhoneNumber; 299 WCHAR szCallbackNumber[RAS_MaxCallbackNumber + 1]; | 295 WCHAR[RAS_MaxCallbackNumber + 1] szCallbackNumber; 300 WCHAR szUserName[UNLEN + 1]; | 296 WCHAR[UNLEN + 1] szUserName; 301 WCHAR szPassword[PWLEN + 1]; | 297 WCHAR[PWLEN + 1] szPassword; 302 WCHAR szDomain[DNLEN + 1]; | 298 WCHAR[DNLEN + 1] szDomain; 303 static if (WINVER >= 0x0401) { | 299 static if (_WIN32_WINNT >= 0x401) { 304 DWORD dwSubEntry; 300 DWORD dwSubEntry; 305 ULONG_PTR dwCallbackId; 301 ULONG_PTR dwCallbackId; 306 } 302 } 307 } 303 } 308 alias RASDIALPARAMSW* LPRASDIALPARAMSW; 304 alias RASDIALPARAMSW* LPRASDIALPARAMSW; 309 305 310 struct RASDIALPARAMSA{ 306 struct RASDIALPARAMSA{ 311 DWORD dwSize; 307 DWORD dwSize; 312 CHAR szEntryName[RAS_MaxEntryName + 1]; | 308 CHAR[RAS_MaxEntryName + 1] szEntryName; 313 CHAR szPhoneNumber[RAS_MaxPhoneNumber + 1]; | 309 CHAR[RAS_MaxPhoneNumber + 1] szPhoneNumber; 314 CHAR szCallbackNumber[RAS_MaxCallbackNumber + 1]; | 310 CHAR[RAS_MaxCallbackNumber + 1] szCallbackNumber; 315 CHAR szUserName[UNLEN + 1]; | 311 CHAR[UNLEN + 1] szUserName; 316 CHAR szPassword[PWLEN + 1]; | 312 CHAR[PWLEN + 1] szPassword; 317 CHAR szDomain[DNLEN + 1]; | 313 CHAR[DNLEN + 1] szDomain; 318 static if (WINVER >= 0x0401) { | 314 static if (_WIN32_WINNT >= 0x401) { 319 DWORD dwSubEntry; 315 DWORD dwSubEntry; 320 ULONG_PTR dwCallbackId; 316 ULONG_PTR dwCallbackId; 321 } 317 } 322 } 318 } 323 alias RASDIALPARAMSA* LPRASDIALPARAMSA; 319 alias RASDIALPARAMSA* LPRASDIALPARAMSA; 324 320 325 static if (WINVER >= 0x0500) { | 321 static if (_WIN32_WINNT >= 0x500) { 326 struct RASEAPINFO { 322 struct RASEAPINFO { 327 DWORD dwSizeofEapInfo; 323 DWORD dwSizeofEapInfo; 328 BYTE *pbEapInfo; 324 BYTE *pbEapInfo; 329 } 325 } 330 } 326 } 331 327 332 struct RASDIALEXTENSIONS { 328 struct RASDIALEXTENSIONS { 333 DWORD dwSize; 329 DWORD dwSize; 334 DWORD dwfOptions; 330 DWORD dwfOptions; 335 HWND hwndParent; 331 HWND hwndParent; 336 ULONG_PTR reserved; 332 ULONG_PTR reserved; 337 static if (WINVER >= 0x0500) { | 333 static if (_WIN32_WINNT >= 0x500) { 338 ULONG_PTR reserved1; 334 ULONG_PTR reserved1; 339 RASEAPINFO RasEapInfo; 335 RASEAPINFO RasEapInfo; 340 } 336 } 341 } 337 } 342 alias RASDIALEXTENSIONS* LPRASDIALEXTENSIONS; 338 alias RASDIALEXTENSIONS* LPRASDIALEXTENSIONS; 343 339 344 struct RASENTRYNAMEW { 340 struct RASENTRYNAMEW { 345 DWORD dwSize; 341 DWORD dwSize; 346 WCHAR szEntryName[RAS_MaxEntryName + 1]; | 342 WCHAR[RAS_MaxEntryName + 1] szEntryName; 347 static if (WINVER >= 0x0500) { | 343 static if (_WIN32_WINNT >= 0x500) { 348 DWORD dwFlags; 344 DWORD dwFlags; 349 WCHAR szPhonebookPath[MAX_PATH + 1]; | 345 WCHAR[MAX_PATH + 1] szPhonebookPath; 350 } 346 } 351 } 347 } 352 alias RASENTRYNAMEW* LPRASENTRYNAMEW; 348 alias RASENTRYNAMEW* LPRASENTRYNAMEW; 353 349 354 struct RASENTRYNAMEA{ 350 struct RASENTRYNAMEA{ 355 DWORD dwSize; 351 DWORD dwSize; 356 CHAR szEntryName[RAS_MaxEntryName + 1]; | 352 CHAR[RAS_MaxEntryName + 1] szEntryName; 357 static if (WINVER >= 0x0500) { | 353 static if (_WIN32_WINNT >= 0x500) { 358 DWORD dwFlags; 354 DWORD dwFlags; 359 CHAR szPhonebookPath[MAX_PATH + 1]; | 355 CHAR[MAX_PATH + 1] szPhonebookPath; 360 } 356 } 361 } 357 } 362 alias RASENTRYNAMEA* LPRASENTRYNAMEA; 358 alias RASENTRYNAMEA* LPRASENTRYNAMEA; 363 359 364 struct RASAMBW{ 360 struct RASAMBW{ 365 DWORD dwSize; 361 DWORD dwSize; 366 DWORD dwError; 362 DWORD dwError; 367 WCHAR szNetBiosError[NETBIOS_NAME_LEN + 1]; | 363 WCHAR[NETBIOS_NAME_LEN + 1] szNetBiosError; 368 BYTE bLana; 364 BYTE bLana; 369 } 365 } 370 alias RASAMBW* LPRASAMBW; 366 alias RASAMBW* LPRASAMBW; 371 367 372 struct RASAMBA{ 368 struct RASAMBA{ 373 DWORD dwSize; 369 DWORD dwSize; 374 DWORD dwError; 370 DWORD dwError; 375 CHAR szNetBiosError[NETBIOS_NAME_LEN + 1]; | 371 CHAR[NETBIOS_NAME_LEN + 1] szNetBiosError; 376 BYTE bLana; 372 BYTE bLana; 377 } 373 } 378 alias RASAMBA* LPRASAMBA; 374 alias RASAMBA* LPRASAMBA; 379 375 380 struct RASPPPNBFW{ 376 struct RASPPPNBFW{ 381 DWORD dwSize; 377 DWORD dwSize; 382 DWORD dwError; 378 DWORD dwError; 383 DWORD dwNetBiosError; 379 DWORD dwNetBiosError; 384 WCHAR szNetBiosError[NETBIOS_NAME_LEN + 1]; | 380 WCHAR[NETBIOS_NAME_LEN + 1] szNetBiosError; 385 WCHAR szWorkstationName[NETBIOS_NAME_LEN + 1]; | 381 WCHAR[NETBIOS_NAME_LEN + 1] szWorkstationName; 386 BYTE bLana; 382 BYTE bLana; 387 } 383 } 388 alias RASPPPNBFW* LPRASPPPNBFW; 384 alias RASPPPNBFW* LPRASPPPNBFW; 389 385 390 struct RASPPPNBFA{ 386 struct RASPPPNBFA{ 391 DWORD dwSize; 387 DWORD dwSize; 392 DWORD dwError; 388 DWORD dwError; 393 DWORD dwNetBiosError; 389 DWORD dwNetBiosError; 394 CHAR szNetBiosError[NETBIOS_NAME_LEN + 1]; | 390 CHAR[NETBIOS_NAME_LEN + 1] szNetBiosError; 395 CHAR szWorkstationName[NETBIOS_NAME_LEN + 1]; | 391 CHAR[NETBIOS_NAME_LEN + 1] szWorkstationName; 396 BYTE bLana; 392 BYTE bLana; 397 } 393 } 398 alias RASPPPNBFA* LPRASPPPNBFA; 394 alias RASPPPNBFA* LPRASPPPNBFA; 399 395 400 struct RASPPPIPXW { 396 struct RASPPPIPXW { 401 DWORD dwSize; 397 DWORD dwSize; 402 DWORD dwError; 398 DWORD dwError; 403 WCHAR szIpxAddress[RAS_MaxIpxAddress + 1]; | 399 WCHAR[RAS_MaxIpxAddress + 1] szIpxAddress; 404 } 400 } 405 alias RASPPPIPXW* LPRASPPPIPXW; 401 alias RASPPPIPXW* LPRASPPPIPXW; 406 402 407 struct RASPPPIPXA { 403 struct RASPPPIPXA { 408 DWORD dwSize; 404 DWORD dwSize; 409 DWORD dwError; 405 DWORD dwError; 410 CHAR szIpxAddress[RAS_MaxIpxAddress + 1]; | 406 CHAR[RAS_MaxIpxAddress + 1] szIpxAddress; 411 } 407 } 412 alias RASPPPIPXA* LPRASPPPIPXA; 408 alias RASPPPIPXA* LPRASPPPIPXA; 413 409 414 struct RASPPPIPW{ 410 struct RASPPPIPW{ 415 DWORD dwSize; 411 DWORD dwSize; 416 DWORD dwError; 412 DWORD dwError; 417 WCHAR szIpAddress[RAS_MaxIpAddress + 1]; | 413 WCHAR[RAS_MaxIpAddress + 1] szIpAddress; 418 //#ifndef WINNT35COMPATIBLE 414 //#ifndef WINNT35COMPATIBLE 419 WCHAR szServerIpAddress[RAS_MaxIpAddress + 1]; | 415 WCHAR[RAS_MaxIpAddress + 1] szServerIpAddress; 420 //#endif 416 //#endif 421 static if (WINVER >= 0x0500) { | 417 static if (_WIN32_WINNT >= 0x500) { 422 DWORD dwOptions; 418 DWORD dwOptions; 423 DWORD dwServerOptions; 419 DWORD dwServerOptions; 424 } 420 } 425 } 421 } 426 alias RASPPPIPW* LPRASPPPIPW; 422 alias RASPPPIPW* LPRASPPPIPW; 427 423 428 struct RASPPPIPA{ 424 struct RASPPPIPA{ 429 DWORD dwSize; 425 DWORD dwSize; 430 DWORD dwError; 426 DWORD dwError; 431 CHAR szIpAddress[RAS_MaxIpAddress + 1]; | 427 CHAR[RAS_MaxIpAddress + 1] szIpAddress; 432 //#ifndef WINNT35COMPATIBLE 428 //#ifndef WINNT35COMPATIBLE 433 CHAR szServerIpAddress[RAS_MaxIpAddress + 1]; | 429 CHAR[RAS_MaxIpAddress + 1] szServerIpAddress; 434 //#endif 430 //#endif 435 static if (WINVER >= 0x0500) { | 431 static if (_WIN32_WINNT >= 0x500) { 436 DWORD dwOptions; 432 DWORD dwOptions; 437 DWORD dwServerOptions; 433 DWORD dwServerOptions; 438 } 434 } 439 } 435 } 440 alias RASPPPIPA* LPRASPPPIPA; 436 alias RASPPPIPA* LPRASPPPIPA; 441 437 442 struct RASPPPLCPW{ 438 struct RASPPPLCPW{ 443 DWORD dwSize; 439 DWORD dwSize; 444 BOOL fBundled; 440 BOOL fBundled; 445 static if (WINVER >= 0x0500) { | 441 static if (_WIN32_WINNT >= 0x500) { 446 DWORD dwError; 442 DWORD dwError; 447 DWORD dwAuthenticationProtocol; 443 DWORD dwAuthenticationProtocol; 448 DWORD dwAuthenticationData; 444 DWORD dwAuthenticationData; 449 DWORD dwEapTypeId; 445 DWORD dwEapTypeId; 450 DWORD dwServerAuthenticationProtocol; 446 DWORD dwServerAuthenticationProtocol; 451 DWORD dwServerAuthenticationData; 447 DWORD dwServerAuthenticationData; 452 DWORD dwServerEapTypeId; 448 DWORD dwServerEapTypeId; 453 BOOL fMultilink; 449 BOOL fMultilink; 454 DWORD dwTerminateReason; 450 DWORD dwTerminateReason; 455 DWORD dwServerTerminateReason; 451 DWORD dwServerTerminateReason; 456 WCHAR szReplyMessage[RAS_MaxReplyMessage]; | 452 WCHAR[RAS_MaxReplyMessage] szReplyMessage; 457 DWORD dwOptions; 453 DWORD dwOptions; 458 DWORD dwServerOptions; 454 DWORD dwServerOptions; 459 } 455 } 460 } 456 } 461 alias RASPPPLCPW* LPRASPPPLCPW; 457 alias RASPPPLCPW* LPRASPPPLCPW; 462 458 463 struct RASPPPLCPA{ 459 struct RASPPPLCPA{ 464 DWORD dwSize; 460 DWORD dwSize; 465 BOOL fBundled; 461 BOOL fBundled; 466 static if (WINVER >= 0x0500) { | 462 static if (_WIN32_WINNT >= 0x500) { 467 DWORD dwError; 463 DWORD dwError; 468 DWORD dwAuthenticationProtocol; 464 DWORD dwAuthenticationProtocol; 469 DWORD dwAuthenticationData; 465 DWORD dwAuthenticationData; 470 DWORD dwEapTypeId; 466 DWORD dwEapTypeId; 471 DWORD dwServerAuthenticationProtocol; 467 DWORD dwServerAuthenticationProtocol; 472 DWORD dwServerAuthenticationData; 468 DWORD dwServerAuthenticationData; 473 DWORD dwServerEapTypeId; 469 DWORD dwServerEapTypeId; 474 BOOL fMultilink; 470 BOOL fMultilink; 475 DWORD dwTerminateReason; 471 DWORD dwTerminateReason; 476 DWORD dwServerTerminateReason; 472 DWORD dwServerTerminateReason; 477 CHAR szReplyMessage[RAS_MaxReplyMessage]; | 473 CHAR[RAS_MaxReplyMessage] szReplyMessage; 478 DWORD dwOptions; 474 DWORD dwOptions; 479 DWORD dwServerOptions; 475 DWORD dwServerOptions; 480 } 476 } 481 } 477 } 482 alias RASPPPLCPA* LPRASPPPLCPA; 478 alias RASPPPLCPA* LPRASPPPLCPA; 483 479 484 struct RASSLIPW{ 480 struct RASSLIPW{ 485 DWORD dwSize; 481 DWORD dwSize; 486 DWORD dwError; 482 DWORD dwError; 487 WCHAR szIpAddress[RAS_MaxIpAddress + 1]; | 483 WCHAR[RAS_MaxIpAddress + 1] szIpAddress; 488 } 484 } 489 alias RASSLIPW* LPRASSLIPW; 485 alias RASSLIPW* LPRASSLIPW; 490 486 491 struct RASSLIPA{ 487 struct RASSLIPA{ 492 DWORD dwSize; 488 DWORD dwSize; 493 DWORD dwError; 489 DWORD dwError; 494 CHAR szIpAddress[RAS_MaxIpAddress + 1]; | 490 CHAR[RAS_MaxIpAddress + 1] szIpAddress; 495 } 491 } 496 alias RASSLIPA* LPRASSLIPA; 492 alias RASSLIPA* LPRASSLIPA; 497 493 498 struct RASDEVINFOW{ 494 struct RASDEVINFOW{ 499 DWORD dwSize; 495 DWORD dwSize; 500 WCHAR szDeviceType[RAS_MaxDeviceType + 1]; | 496 WCHAR[RAS_MaxDeviceType + 1] szDeviceType; 501 WCHAR szDeviceName[RAS_MaxDeviceName + 1]; | 497 WCHAR[RAS_MaxDeviceName + 1] szDeviceName; 502 } 498 } 503 alias RASDEVINFOW* LPRASDEVINFOW; 499 alias RASDEVINFOW* LPRASDEVINFOW; 504 500 505 struct RASDEVINFOA{ 501 struct RASDEVINFOA{ 506 DWORD dwSize; 502 DWORD dwSize; 507 CHAR szDeviceType[RAS_MaxDeviceType + 1]; | 503 CHAR[RAS_MaxDeviceType + 1] szDeviceType; 508 CHAR szDeviceName[RAS_MaxDeviceName + 1]; | 504 CHAR[RAS_MaxDeviceName + 1] szDeviceName; 509 } 505 } 510 alias RASDEVINFOA* LPRASDEVINFOA; 506 alias RASDEVINFOA* LPRASDEVINFOA; 511 507 512 struct RASCTRYINFO { 508 struct RASCTRYINFO { 513 DWORD dwSize; 509 DWORD dwSize; 514 DWORD dwCountryID; 510 DWORD dwCountryID; 515 DWORD dwNextCountryID; 511 DWORD dwNextCountryID; ................................................................................................................................................................................ 529 } 525 } 530 526 531 struct RASENTRYW { 527 struct RASENTRYW { 532 DWORD dwSize; 528 DWORD dwSize; 533 DWORD dwfOptions; 529 DWORD dwfOptions; 534 DWORD dwCountryID; 530 DWORD dwCountryID; 535 DWORD dwCountryCode; 531 DWORD dwCountryCode; 536 WCHAR szAreaCode[RAS_MaxAreaCode + 1]; | 532 WCHAR[RAS_MaxAreaCode + 1] szAreaCode; 537 WCHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1]; | 533 WCHAR[RAS_MaxPhoneNumber + 1] szLocalPhoneNumber; 538 DWORD dwAlternateOffset; 534 DWORD dwAlternateOffset; 539 RASIPADDR ipaddr; 535 RASIPADDR ipaddr; 540 RASIPADDR ipaddrDns; 536 RASIPADDR ipaddrDns; 541 RASIPADDR ipaddrDnsAlt; 537 RASIPADDR ipaddrDnsAlt; 542 RASIPADDR ipaddrWins; 538 RASIPADDR ipaddrWins; 543 RASIPADDR ipaddrWinsAlt; 539 RASIPADDR ipaddrWinsAlt; 544 DWORD dwFrameSize; 540 DWORD dwFrameSize; 545 DWORD dwfNetProtocols; 541 DWORD dwfNetProtocols; 546 DWORD dwFramingProtocol; 542 DWORD dwFramingProtocol; 547 WCHAR szScript[MAX_PATH]; | 543 WCHAR[MAX_PATH] szScript; 548 WCHAR szAutodialDll[MAX_PATH]; | 544 WCHAR[MAX_PATH] szAutodialDll; 549 WCHAR szAutodialFunc[MAX_PATH]; | 545 WCHAR[MAX_PATH] szAutodialFunc; 550 WCHAR szDeviceType[RAS_MaxDeviceType + 1]; | 546 WCHAR[RAS_MaxDeviceType + 1] szDeviceType; 551 WCHAR szDeviceName[RAS_MaxDeviceName + 1]; | 547 WCHAR[RAS_MaxDeviceName + 1] szDeviceName; 552 WCHAR szX25PadType[RAS_MaxPadType + 1]; | 548 WCHAR[RAS_MaxPadType + 1] szX25PadType; 553 WCHAR szX25Address[RAS_MaxX25Address + 1]; | 549 WCHAR[RAS_MaxX25Address + 1] szX25Address; 554 WCHAR szX25Facilities[RAS_MaxFacilities + 1]; | 550 WCHAR[RAS_MaxFacilities + 1] szX25Facilities; 555 WCHAR szX25UserData[RAS_MaxUserData + 1]; | 551 WCHAR[RAS_MaxUserData + 1] szX25UserData; 556 DWORD dwChannels; 552 DWORD dwChannels; 557 DWORD dwReserved1; 553 DWORD dwReserved1; 558 DWORD dwReserved2; 554 DWORD dwReserved2; 559 static if (WINVER >= 0x0401) { | 555 static if (_WIN32_WINNT >= 0x401) { 560 DWORD dwSubEntries; 556 DWORD dwSubEntries; 561 DWORD dwDialMode; 557 DWORD dwDialMode; 562 DWORD dwDialExtraPercent; 558 DWORD dwDialExtraPercent; 563 DWORD dwDialExtraSampleSeconds; 559 DWORD dwDialExtraSampleSeconds; 564 DWORD dwHangUpExtraPercent; 560 DWORD dwHangUpExtraPercent; 565 DWORD dwHangUpExtraSampleSeconds; 561 DWORD dwHangUpExtraSampleSeconds; 566 DWORD dwIdleDisconnectSeconds; 562 DWORD dwIdleDisconnectSeconds; 567 } 563 } 568 static if (WINVER >= 0x0500) { | 564 static if (_WIN32_WINNT >= 0x500) { 569 DWORD dwType; 565 DWORD dwType; 570 DWORD dwEncryptionType; 566 DWORD dwEncryptionType; 571 DWORD dwCustomAuthKey; 567 DWORD dwCustomAuthKey; 572 GUID guidId; 568 GUID guidId; 573 WCHAR szCustomDialDll[MAX_PATH]; | 569 WCHAR[MAX_PATH] szCustomDialDll; 574 DWORD dwVpnStrategy; 570 DWORD dwVpnStrategy; 575 } 571 } 576 } 572 } 577 alias RASENTRYW* LPRASENTRYW; 573 alias RASENTRYW* LPRASENTRYW; 578 574 579 struct RASENTRYA { 575 struct RASENTRYA { 580 DWORD dwSize; 576 DWORD dwSize; 581 DWORD dwfOptions; 577 DWORD dwfOptions; 582 DWORD dwCountryID; 578 DWORD dwCountryID; 583 DWORD dwCountryCode; 579 DWORD dwCountryCode; 584 CHAR szAreaCode[RAS_MaxAreaCode + 1]; | 580 CHAR[RAS_MaxAreaCode + 1] szAreaCode; 585 CHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1]; | 581 CHAR[RAS_MaxPhoneNumber + 1] szLocalPhoneNumber; 586 DWORD dwAlternateOffset; 582 DWORD dwAlternateOffset; 587 RASIPADDR ipaddr; 583 RASIPADDR ipaddr; 588 RASIPADDR ipaddrDns; 584 RASIPADDR ipaddrDns; 589 RASIPADDR ipaddrDnsAlt; 585 RASIPADDR ipaddrDnsAlt; 590 RASIPADDR ipaddrWins; 586 RASIPADDR ipaddrWins; 591 RASIPADDR ipaddrWinsAlt; 587 RASIPADDR ipaddrWinsAlt; 592 DWORD dwFrameSize; 588 DWORD dwFrameSize; 593 DWORD dwfNetProtocols; 589 DWORD dwfNetProtocols; 594 DWORD dwFramingProtocol; 590 DWORD dwFramingProtocol; 595 CHAR szScript[MAX_PATH]; | 591 CHAR[MAX_PATH] szScript; 596 CHAR szAutodialDll[MAX_PATH]; | 592 CHAR[MAX_PATH] szAutodialDll; 597 CHAR szAutodialFunc[MAX_PATH]; | 593 CHAR[MAX_PATH] szAutodialFunc; 598 CHAR szDeviceType[RAS_MaxDeviceType + 1]; | 594 CHAR[RAS_MaxDeviceType + 1] szDeviceType; 599 CHAR szDeviceName[RAS_MaxDeviceName + 1]; | 595 CHAR[RAS_MaxDeviceName + 1] szDeviceName; 600 CHAR szX25PadType[RAS_MaxPadType + 1]; | 596 CHAR[RAS_MaxPadType + 1] szX25PadType; 601 CHAR szX25Address[RAS_MaxX25Address + 1]; | 597 CHAR[RAS_MaxX25Address + 1] szX25Address; 602 CHAR szX25Facilities[RAS_MaxFacilities + 1]; | 598 CHAR[RAS_MaxFacilities + 1] szX25Facilities; 603 CHAR szX25UserData[RAS_MaxUserData + 1]; | 599 CHAR[RAS_MaxUserData + 1] szX25UserData; 604 DWORD dwChannels; 600 DWORD dwChannels; 605 DWORD dwReserved1; 601 DWORD dwReserved1; 606 DWORD dwReserved2; 602 DWORD dwReserved2; 607 static if (WINVER >= 0x0401) { | 603 static if (_WIN32_WINNT >= 0x401) { 608 DWORD dwSubEntries; 604 DWORD dwSubEntries; 609 DWORD dwDialMode; 605 DWORD dwDialMode; 610 DWORD dwDialExtraPercent; 606 DWORD dwDialExtraPercent; 611 DWORD dwDialExtraSampleSeconds; 607 DWORD dwDialExtraSampleSeconds; 612 DWORD dwHangUpExtraPercent; 608 DWORD dwHangUpExtraPercent; 613 DWORD dwHangUpExtraSampleSeconds; 609 DWORD dwHangUpExtraSampleSeconds; 614 DWORD dwIdleDisconnectSeconds; 610 DWORD dwIdleDisconnectSeconds; 615 } 611 } 616 static if (WINVER >= 0x0500) { | 612 static if (_WIN32_WINNT >= 0x500) { 617 DWORD dwType; 613 DWORD dwType; 618 DWORD dwEncryptionType; 614 DWORD dwEncryptionType; 619 DWORD dwCustomAuthKey; 615 DWORD dwCustomAuthKey; 620 GUID guidId; 616 GUID guidId; 621 CHAR szCustomDialDll[MAX_PATH]; | 617 CHAR[MAX_PATH] szCustomDialDll; 622 DWORD dwVpnStrategy; 618 DWORD dwVpnStrategy; 623 } 619 } 624 } 620 } 625 alias RASENTRYA* LPRASENTRYA; 621 alias RASENTRYA* LPRASENTRYA; 626 622 627 623 628 static if (WINVER >= 0x0401) { | 624 static if (_WIN32_WINNT >= 0x401) { 629 struct RASADPARAMS { 625 struct RASADPARAMS { 630 DWORD dwSize; 626 DWORD dwSize; 631 HWND hwndOwner; 627 HWND hwndOwner; 632 DWORD dwFlags; 628 DWORD dwFlags; 633 LONG xDlg; 629 LONG xDlg; 634 LONG yDlg; 630 LONG yDlg; 635 } 631 } 636 alias RASADPARAMS* LPRASADPARAMS; 632 alias RASADPARAMS* LPRASADPARAMS; 637 633 638 struct RASSUBENTRYW{ 634 struct RASSUBENTRYW{ 639 DWORD dwSize; 635 DWORD dwSize; 640 DWORD dwfFlags; 636 DWORD dwfFlags; 641 WCHAR szDeviceType[RAS_MaxDeviceType + 1]; | 637 WCHAR[RAS_MaxDeviceType + 1] szDeviceType; 642 WCHAR szDeviceName[RAS_MaxDeviceName + 1]; | 638 WCHAR[RAS_MaxDeviceName + 1] szDeviceName; 643 WCHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1]; | 639 WCHAR[RAS_MaxPhoneNumber + 1] szLocalPhoneNumber; 644 DWORD dwAlternateOffset; 640 DWORD dwAlternateOffset; 645 } 641 } 646 alias RASSUBENTRYW* LPRASSUBENTRYW; 642 alias RASSUBENTRYW* LPRASSUBENTRYW; 647 643 648 struct RASSUBENTRYA{ 644 struct RASSUBENTRYA{ 649 DWORD dwSize; 645 DWORD dwSize; 650 DWORD dwfFlags; 646 DWORD dwfFlags; 651 CHAR szDeviceType[RAS_MaxDeviceType + 1]; | 647 CHAR[RAS_MaxDeviceType + 1] szDeviceType; 652 CHAR szDeviceName[RAS_MaxDeviceName + 1]; | 648 CHAR[RAS_MaxDeviceName + 1] szDeviceName; 653 CHAR szLocalPhoneNumber[RAS_MaxPhoneNumber + 1]; | 649 CHAR[RAS_MaxPhoneNumber + 1] szLocalPhoneNumber; 654 DWORD dwAlternateOffset; 650 DWORD dwAlternateOffset; 655 } 651 } 656 alias RASSUBENTRYA* LPRASSUBENTRYA; 652 alias RASSUBENTRYA* LPRASSUBENTRYA; 657 653 658 struct RASCREDENTIALSW{ 654 struct RASCREDENTIALSW{ 659 DWORD dwSize; 655 DWORD dwSize; 660 DWORD dwMask; 656 DWORD dwMask; 661 WCHAR szUserName[UNLEN + 1]; | 657 WCHAR[UNLEN + 1] szUserName; 662 WCHAR szPassword[PWLEN + 1]; | 658 WCHAR[PWLEN + 1] szPassword; 663 WCHAR szDomain[DNLEN + 1]; | 659 WCHAR[DNLEN + 1] szDomain; 664 } 660 } 665 alias RASCREDENTIALSW* LPRASCREDENTIALSW; 661 alias RASCREDENTIALSW* LPRASCREDENTIALSW; 666 662 667 struct RASCREDENTIALSA{ 663 struct RASCREDENTIALSA{ 668 DWORD dwSize; 664 DWORD dwSize; 669 DWORD dwMask; 665 DWORD dwMask; 670 CHAR szUserName[UNLEN + 1]; | 666 CHAR[UNLEN + 1] szUserName; 671 CHAR szPassword[PWLEN + 1]; | 667 CHAR[PWLEN + 1] szPassword; 672 CHAR szDomain[DNLEN + 1]; | 668 CHAR[DNLEN + 1] szDomain; 673 } 669 } 674 alias RASCREDENTIALSA* LPRASCREDENTIALSA; 670 alias RASCREDENTIALSA* LPRASCREDENTIALSA; 675 671 676 struct RASAUTODIALENTRYW{ 672 struct RASAUTODIALENTRYW{ 677 DWORD dwSize; 673 DWORD dwSize; 678 DWORD dwFlags; 674 DWORD dwFlags; 679 DWORD dwDialingLocation; 675 DWORD dwDialingLocation; 680 WCHAR szEntry[RAS_MaxEntryName + 1]; | 676 WCHAR[RAS_MaxEntryName + 1] szEntry; 681 } 677 } 682 alias RASAUTODIALENTRYW* LPRASAUTODIALENTRYW; 678 alias RASAUTODIALENTRYW* LPRASAUTODIALENTRYW; 683 679 684 struct RASAUTODIALENTRYA{ 680 struct RASAUTODIALENTRYA{ 685 DWORD dwSize; 681 DWORD dwSize; 686 DWORD dwFlags; 682 DWORD dwFlags; 687 DWORD dwDialingLocation; 683 DWORD dwDialingLocation; 688 CHAR szEntry[RAS_MaxEntryName + 1]; | 684 CHAR[RAS_MaxEntryName + 1] szEntry; 689 } 685 } 690 alias RASAUTODIALENTRYA* LPRASAUTODIALENTRYA; 686 alias RASAUTODIALENTRYA* LPRASAUTODIALENTRYA; 691 } 687 } 692 688 693 static if (WINVER >= 0x0500) { | 689 static if (_WIN32_WINNT >= 0x500) { 694 struct RASPPPCCP{ 690 struct RASPPPCCP{ 695 DWORD dwSize; 691 DWORD dwSize; 696 DWORD dwError; 692 DWORD dwError; 697 DWORD dwCompressionAlgorithm; 693 DWORD dwCompressionAlgorithm; 698 DWORD dwOptions; 694 DWORD dwOptions; 699 DWORD dwServerCompressionAlgorithm; 695 DWORD dwServerCompressionAlgorithm; 700 DWORD dwServerOptions; 696 DWORD dwServerOptions; 701 } 697 } 702 alias RASPPPCCP* LPRASPPPCCP; 698 alias RASPPPCCP* LPRASPPPCCP; 703 699 704 struct RASEAPUSERIDENTITYW{ 700 struct RASEAPUSERIDENTITYW{ 705 WCHAR szUserName[UNLEN + 1]; | 701 WCHAR[UNLEN + 1] szUserName; 706 DWORD dwSizeofEapInfo; 702 DWORD dwSizeofEapInfo; 707 BYTE pbEapInfo[1]; | 703 BYTE[1] pbEapInfo; 708 } 704 } 709 alias RASEAPUSERIDENTITYW* LPRASEAPUSERIDENTITYW; 705 alias RASEAPUSERIDENTITYW* LPRASEAPUSERIDENTITYW; 710 706 711 struct RASEAPUSERIDENTITYA{ 707 struct RASEAPUSERIDENTITYA{ 712 CHAR szUserName[UNLEN + 1]; | 708 CHAR[UNLEN + 1] szUserName; 713 DWORD dwSizeofEapInfo; 709 DWORD dwSizeofEapInfo; 714 BYTE pbEapInfo[1]; | 710 BYTE[1] pbEapInfo; 715 } 711 } 716 alias RASEAPUSERIDENTITYA* LPRASEAPUSERIDENTITYA; 712 alias RASEAPUSERIDENTITYA* LPRASEAPUSERIDENTITYA; 717 713 718 struct RAS_STATS{ 714 struct RAS_STATS{ 719 DWORD dwSize; 715 DWORD dwSize; 720 DWORD dwBytesXmited; 716 DWORD dwBytesXmited; 721 DWORD dwBytesRcved; 717 DWORD dwBytesRcved; ................................................................................................................................................................................ 747 alias RASPPPIPXW RASPPPIPX; 743 alias RASPPPIPXW RASPPPIPX; 748 alias RASPPPIPW RASPPPIP; 744 alias RASPPPIPW RASPPPIP; 749 alias RASPPPLCPW RASPPPLCP; 745 alias RASPPPLCPW RASPPPLCP; 750 alias RASSLIPW RASSLIP; 746 alias RASSLIPW RASSLIP; 751 alias RASDEVINFOW RASDEVINFO; 747 alias RASDEVINFOW RASDEVINFO; 752 alias RASENTRYNAMEW RASENTRYNAME; 748 alias RASENTRYNAMEW RASENTRYNAME; 753 749 754 static if (WINVER >= 0x0401) { | 750 static if (_WIN32_WINNT >= 0x401) { 755 alias RASSUBENTRYW RASSUBENTRY; 751 alias RASSUBENTRYW RASSUBENTRY; 756 alias RASCREDENTIALSW RASCREDENTIALS; 752 alias RASCREDENTIALSW RASCREDENTIALS; 757 alias RASAUTODIALENTRYW RASAUTODIALENTRY; 753 alias RASAUTODIALENTRYW RASAUTODIALENTRY; 758 } 754 } 759 755 760 static if (WINVER >= 0x0500) { | 756 static if (_WIN32_WINNT >= 0x500) { 761 alias RASEAPUSERIDENTITYW RASEAPUSERIDENTITY; 757 alias RASEAPUSERIDENTITYW RASEAPUSERIDENTITY; 762 } 758 } 763 759 764 } else { // ! defined UNICODE 760 } else { // ! defined UNICODE 765 761 766 alias RASCONNA RASCONN; 762 alias RASCONNA RASCONN; 767 alias RASENTRYA RASENTRY; 763 alias RASENTRYA RASENTRY; ................................................................................................................................................................................ 772 alias RASPPPIPXA RASPPPIPX; 768 alias RASPPPIPXA RASPPPIPX; 773 alias RASPPPIPA RASPPPIP; 769 alias RASPPPIPA RASPPPIP; 774 alias RASPPPLCPA RASPPPLCP; 770 alias RASPPPLCPA RASPPPLCP; 775 alias RASSLIPA RASSLIP; 771 alias RASSLIPA RASSLIP; 776 alias RASDEVINFOA RASDEVINFO; 772 alias RASDEVINFOA RASDEVINFO; 777 alias RASENTRYNAMEA RASENTRYNAME; 773 alias RASENTRYNAMEA RASENTRYNAME; 778 774 779 static if (WINVER >= 0x0401) { | 775 static if (_WIN32_WINNT >= 0x401) { 780 alias RASSUBENTRYA RASSUBENTRY; 776 alias RASSUBENTRYA RASSUBENTRY; 781 alias RASCREDENTIALSA RASCREDENTIALS; 777 alias RASCREDENTIALSA RASCREDENTIALS; 782 alias RASAUTODIALENTRYA RASAUTODIALENTRY; 778 alias RASAUTODIALENTRYA RASAUTODIALENTRY; 783 } 779 } 784 static if (WINVER >= 0x0500) { | 780 static if (_WIN32_WINNT >= 0x500) { 785 alias RASEAPUSERIDENTITYA RASEAPUSERIDENTITY; 781 alias RASEAPUSERIDENTITYA RASEAPUSERIDENTITY; 786 } 782 } 787 }// ! UNICODE 783 }// ! UNICODE 788 784 789 785 790 alias RASCONN* LPRASCONN; 786 alias RASCONN* LPRASCONN; 791 alias RASENTRY* LPRASENTRY; 787 alias RASENTRY* LPRASENTRY; ................................................................................................................................................................................ 796 alias RASPPPIPX* LPRASPPPIPX; 792 alias RASPPPIPX* LPRASPPPIPX; 797 alias RASPPPIP* LPRASPPPIP; 793 alias RASPPPIP* LPRASPPPIP; 798 alias RASPPPLCP* LPRASPPPLCP; 794 alias RASPPPLCP* LPRASPPPLCP; 799 alias RASSLIP* LPRASSLIP; 795 alias RASSLIP* LPRASSLIP; 800 alias RASDEVINFO* LPRASDEVINFO; 796 alias RASDEVINFO* LPRASDEVINFO; 801 alias RASENTRYNAME* LPRASENTRYNAME; 797 alias RASENTRYNAME* LPRASENTRYNAME; 802 798 803 static if (WINVER >= 0x0401) { | 799 static if (_WIN32_WINNT >= 0x401) { 804 alias RASSUBENTRY* LPRASSUBENTRY; 800 alias RASSUBENTRY* LPRASSUBENTRY; 805 alias RASCREDENTIALS* LPRASCREDENTIALS; 801 alias RASCREDENTIALS* LPRASCREDENTIALS; 806 alias RASAUTODIALENTRY* LPRASAUTODIALENTRY; 802 alias RASAUTODIALENTRY* LPRASAUTODIALENTRY; 807 } 803 } 808 static if (WINVER >= 0x0500) { | 804 static if (_WIN32_WINNT >= 0x500) { 809 alias RASEAPUSERIDENTITY* LPRASEAPUSERIDENTITY; 805 alias RASEAPUSERIDENTITY* LPRASEAPUSERIDENTITY; 810 } 806 } 811 807 812 /* Callback prototypes */ 808 /* Callback prototypes */ 813 deprecated { 809 deprecated { 814 alias BOOL function (HWND, LPSTR, DWORD, LPDWORD) ORASADFUNC; 810 alias BOOL function (HWND, LPSTR, DWORD, LPDWORD) ORASADFUNC; 815 } 811 } ................................................................................................................................................................................ 864 DWORD RasRenameEntryA (LPCSTR, LPCSTR, LPCSTR); 860 DWORD RasRenameEntryA (LPCSTR, LPCSTR, LPCSTR); 865 DWORD RasRenameEntryW (LPCWSTR, LPCWSTR, LPCWSTR); 861 DWORD RasRenameEntryW (LPCWSTR, LPCWSTR, LPCWSTR); 866 DWORD RasDeleteEntryA (LPCSTR, LPCSTR); 862 DWORD RasDeleteEntryA (LPCSTR, LPCSTR); 867 DWORD RasDeleteEntryW (LPCWSTR, LPCWSTR); 863 DWORD RasDeleteEntryW (LPCWSTR, LPCWSTR); 868 DWORD RasValidateEntryNameA (LPCSTR, LPCSTR); 864 DWORD RasValidateEntryNameA (LPCSTR, LPCSTR); 869 DWORD RasValidateEntryNameW (LPCWSTR, LPCWSTR); 865 DWORD RasValidateEntryNameW (LPCWSTR, LPCWSTR); 870 866 871 static if (WINVER >= 0x0401) { | 867 static if (_WIN32_WINNT >= 0x401) { 872 alias BOOL function (LPSTR, LPSTR, LPRASADPARAMS, LPDWORD) RASADFUNCA; 868 alias BOOL function (LPSTR, LPSTR, LPRASADPARAMS, LPDWORD) RASADFUNCA; 873 alias BOOL function (LPWSTR, LPWSTR, LPRASADPARAMS, LPDWORD) RASADFUNCW; 869 alias BOOL function (LPWSTR, LPWSTR, LPRASADPARAMS, LPDWORD) RASADFUNCW; 874 870 875 DWORD RasGetSubEntryHandleA (HRASCONN, DWORD, LPHRASCONN); 871 DWORD RasGetSubEntryHandleA (HRASCONN, DWORD, LPHRASCONN); 876 DWORD RasGetSubEntryHandleW (HRASCONN, DWORD, LPHRASCONN); 872 DWORD RasGetSubEntryHandleW (HRASCONN, DWORD, LPHRASCONN); 877 DWORD RasGetCredentialsA (LPCSTR, LPCSTR, LPRASCREDENTIALSA); 873 DWORD RasGetCredentialsA (LPCSTR, LPCSTR, LPRASCREDENTIALSA); 878 DWORD RasGetCredentialsW (LPCWSTR, LPCWSTR, LPRASCREDENTIALSW); 874 DWORD RasGetCredentialsW (LPCWSTR, LPCWSTR, LPRASCREDENTIALSW); ................................................................................................................................................................................ 904 DWORD RasSetAutodialEnableW (DWORD, BOOL); 900 DWORD RasSetAutodialEnableW (DWORD, BOOL); 905 DWORD RasGetAutodialParamA (DWORD, LPVOID, LPDWORD); 901 DWORD RasGetAutodialParamA (DWORD, LPVOID, LPDWORD); 906 DWORD RasGetAutodialParamW (DWORD, LPVOID, LPDWORD); 902 DWORD RasGetAutodialParamW (DWORD, LPVOID, LPDWORD); 907 DWORD RasSetAutodialParamA (DWORD, LPVOID, DWORD); 903 DWORD RasSetAutodialParamA (DWORD, LPVOID, DWORD); 908 DWORD RasSetAutodialParamW (DWORD, LPVOID, DWORD); 904 DWORD RasSetAutodialParamW (DWORD, LPVOID, DWORD); 909 } 905 } 910 906 911 static if (WINVER >= 0x0500) { | 907 static if (_WIN32_WINNT >= 0x500) { 912 alias DWORD function (HRASCONN) RasCustomHangUpFn; 908 alias DWORD function (HRASCONN) RasCustomHangUpFn; 913 alias DWORD function (LPCTSTR, LPCTSTR, DWORD) RasCustomDeleteEntryNoti 909 alias DWORD function (LPCTSTR, LPCTSTR, DWORD) RasCustomDeleteEntryNoti 914 alias DWORD function (HINSTANCE, LPRASDIALEXTENSIONS, 910 alias DWORD function (HINSTANCE, LPRASDIALEXTENSIONS, 915 LPCTSTR, LPRASDIALPARAMS, DWORD, LPVOID, LPHRASCONN, DWORD) RasCustomDia 911 LPCTSTR, LPRASDIALPARAMS, DWORD, LPVOID, LPHRASCONN, DWORD) RasCustomDia 916 912 917 DWORD RasInvokeEapUI (HRASCONN, DWORD, LPRASDIALEXTENSIONS, HWND); 913 DWORD RasInvokeEapUI (HRASCONN, DWORD, LPRASDIALEXTENSIONS, HWND); 918 DWORD RasGetLinkStatistics (HRASCONN, DWORD, RAS_STATS*); 914 DWORD RasGetLinkStatistics (HRASCONN, DWORD, RAS_STATS*); ................................................................................................................................................................................ 951 alias RasGetCountryInfoW RasGetCountryInfo; 947 alias RasGetCountryInfoW RasGetCountryInfo; 952 alias RasGetEntryPropertiesW RasGetEntryProperties; 948 alias RasGetEntryPropertiesW RasGetEntryProperties; 953 alias RasSetEntryPropertiesW RasSetEntryProperties; 949 alias RasSetEntryPropertiesW RasSetEntryProperties; 954 alias RasRenameEntryW RasRenameEntry; 950 alias RasRenameEntryW RasRenameEntry; 955 alias RasDeleteEntryW RasDeleteEntry; 951 alias RasDeleteEntryW RasDeleteEntry; 956 alias RasValidateEntryNameW RasValidateEntryName; 952 alias RasValidateEntryNameW RasValidateEntryName; 957 953 958 static if (WINVER >= 0x0401) { | 954 static if (_WIN32_WINNT >= 0x401) { 959 alias RASADFUNCW RASADFUNC; 955 alias RASADFUNCW RASADFUNC; 960 alias RasGetSubEntryHandleW RasGetSubEntryHandle; 956 alias RasGetSubEntryHandleW RasGetSubEntryHandle; 961 alias RasConnectionNotificationW RasConnectionNotification; 957 alias RasConnectionNotificationW RasConnectionNotification; 962 alias RasGetSubEntryPropertiesW RasGetSubEntryProperties; 958 alias RasGetSubEntryPropertiesW RasGetSubEntryProperties; 963 alias RasSetSubEntryPropertiesW RasSetSubEntryProperties; 959 alias RasSetSubEntryPropertiesW RasSetSubEntryProperties; 964 alias RasGetCredentialsW RasGetCredentials; 960 alias RasGetCredentialsW RasGetCredentials; 965 alias RasSetCredentialsW RasSetCredentials; 961 alias RasSetCredentialsW RasSetCredentials; ................................................................................................................................................................................ 968 alias RasEnumAutodialAddressesW RasEnumAutodialAddresses; 964 alias RasEnumAutodialAddressesW RasEnumAutodialAddresses; 969 alias RasGetAutodialEnableW RasGetAutodialEnable; 965 alias RasGetAutodialEnableW RasGetAutodialEnable; 970 alias RasSetAutodialEnableW RasSetAutodialEnable; 966 alias RasSetAutodialEnableW RasSetAutodialEnable; 971 alias RasGetAutodialParamW RasGetAutodialParam; 967 alias RasGetAutodialParamW RasGetAutodialParam; 972 alias RasSetAutodialParamW RasSetAutodialParam; 968 alias RasSetAutodialParamW RasSetAutodialParam; 973 } 969 } 974 970 975 static if (WINVER >= 0x0500) { | 971 static if (_WIN32_WINNT >= 0x500) { 976 alias RasGetEapUserDataW RasGetEapUserData; 972 alias RasGetEapUserDataW RasGetEapUserData; 977 alias RasSetEapUserDataW RasSetEapUserData; 973 alias RasSetEapUserDataW RasSetEapUserData; 978 alias RasGetCustomAuthDataW RasGetCustomAuthData; 974 alias RasGetCustomAuthDataW RasGetCustomAuthData; 979 alias RasSetCustomAuthDataW RasSetCustomAuthData; 975 alias RasSetCustomAuthDataW RasSetCustomAuthData; 980 alias RasGetEapUserIdentityW RasGetEapUserIdentity; 976 alias RasGetEapUserIdentityW RasGetEapUserIdentity; 981 alias RasFreeEapUserIdentityW RasFreeEapUserIdentity; 977 alias RasFreeEapUserIdentityW RasFreeEapUserIdentity; 982 } 978 } 983 979 984 } else { // ! defined UNICODE | 980 } else { // !Unicode 985 alias RasDialA RasDial; 981 alias RasDialA RasDial; 986 alias RasEnumConnectionsA RasEnumConnections; 982 alias RasEnumConnectionsA RasEnumConnections; 987 alias RasEnumEntriesA RasEnumEntries; 983 alias RasEnumEntriesA RasEnumEntries; 988 alias RasGetConnectStatusA RasGetConnectStatus; 984 alias RasGetConnectStatusA RasGetConnectStatus; 989 alias RasGetErrorStringA RasGetErrorString; 985 alias RasGetErrorStringA RasGetErrorString; 990 alias RasHangUpA RasHangUp; 986 alias RasHangUpA RasHangUp; 991 alias RasGetProjectionInfoA RasGetProjectionInfo; 987 alias RasGetProjectionInfoA RasGetProjectionInfo; ................................................................................................................................................................................ 997 alias RasGetCountryInfoA RasGetCountryInfo; 993 alias RasGetCountryInfoA RasGetCountryInfo; 998 alias RasGetEntryPropertiesA RasGetEntryProperties; 994 alias RasGetEntryPropertiesA RasGetEntryProperties; 999 alias RasSetEntryPropertiesA RasSetEntryProperties; 995 alias RasSetEntryPropertiesA RasSetEntryProperties; 1000 alias RasRenameEntryA RasRenameEntry; 996 alias RasRenameEntryA RasRenameEntry; 1001 alias RasDeleteEntryA RasDeleteEntry; 997 alias RasDeleteEntryA RasDeleteEntry; 1002 alias RasValidateEntryNameA RasValidateEntryName; 998 alias RasValidateEntryNameA RasValidateEntryName; 1003 999 1004 static if (WINVER >= 0x0401) { | 1000 static if (_WIN32_WINNT >= 0x401) { 1005 alias RASADFUNCA RASADFUNC; 1001 alias RASADFUNCA RASADFUNC; 1006 alias RasGetSubEntryHandleA RasGetSubEntryHandle; 1002 alias RasGetSubEntryHandleA RasGetSubEntryHandle; 1007 alias RasConnectionNotificationA RasConnectionNotification; 1003 alias RasConnectionNotificationA RasConnectionNotification; 1008 alias RasGetSubEntryPropertiesA RasGetSubEntryProperties; 1004 alias RasGetSubEntryPropertiesA RasGetSubEntryProperties; 1009 alias RasSetSubEntryPropertiesA RasSetSubEntryProperties; 1005 alias RasSetSubEntryPropertiesA RasSetSubEntryProperties; 1010 alias RasGetCredentialsA RasGetCredentials; 1006 alias RasGetCredentialsA RasGetCredentials; 1011 alias RasSetCredentialsA RasSetCredentials; 1007 alias RasSetCredentialsA RasSetCredentials; ................................................................................................................................................................................ 1014 alias RasEnumAutodialAddressesA RasEnumAutodialAddresses; 1010 alias RasEnumAutodialAddressesA RasEnumAutodialAddresses; 1015 alias RasGetAutodialEnableA RasGetAutodialEnable; 1011 alias RasGetAutodialEnableA RasGetAutodialEnable; 1016 alias RasSetAutodialEnableA RasSetAutodialEnable; 1012 alias RasSetAutodialEnableA RasSetAutodialEnable; 1017 alias RasGetAutodialParamA RasGetAutodialParam; 1013 alias RasGetAutodialParamA RasGetAutodialParam; 1018 alias RasSetAutodialParamA RasSetAutodialParam; 1014 alias RasSetAutodialParamA RasSetAutodialParam; 1019 } 1015 } 1020 1016 1021 static if (WINVER >= 0x0500) { | 1017 static if (_WIN32_WINNT >= 0x500) { 1022 alias RasGetEapUserDataA RasGetEapUserData; 1018 alias RasGetEapUserDataA RasGetEapUserData; 1023 alias RasSetEapUserDataA RasSetEapUserData; 1019 alias RasSetEapUserDataA RasSetEapUserData; 1024 alias RasGetCustomAuthDataA RasGetCustomAuthData; 1020 alias RasGetCustomAuthDataA RasGetCustomAuthData; 1025 alias RasSetCustomAuthDataA RasSetCustomAuthData; 1021 alias RasSetCustomAuthDataA RasSetCustomAuthData; 1026 alias RasGetEapUserIdentityA RasGetEapUserIdentity; 1022 alias RasGetEapUserIdentityA RasGetEapUserIdentity; 1027 alias RasFreeEapUserIdentityA RasFreeEapUserIdentity; 1023 alias RasFreeEapUserIdentityA RasFreeEapUserIdentity; 1028 } 1024 } 1029 } //#endif // ! UNICODE | 1025 } //#endif // !Unicode