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