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