blob: ea4ae72fd4dc83b1278ced5bf4d81272007fce0e [file] [log] [blame]
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00001/*
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
Marcus Meissner30ef8771998-12-11 13:26:26 +000019#ifndef __WINE_RAS_H
20#define __WINE_RAS_H
21
Jim Aston2e1cafa1999-03-14 16:35:05 +000022#include "windef.h"
Rein Klazes34a02f11999-11-07 05:49:28 +000023#include "lmcons.h"
Marcus Meissner30ef8771998-12-11 13:26:26 +000024
François Gougetce03ac82000-12-24 20:44:08 +000025#ifdef __cplusplus
26extern "C" {
27#endif
28#include "pshpack4.h"
29
Rein Klazes34a02f11999-11-07 05:49:28 +000030#define RAS_MaxCallbackNumber RAS_MaxPhoneNumber
François Gougetce03ac82000-12-24 20:44:08 +000031#define RAS_MaxDeviceName 128
32#define RAS_MaxDeviceType 16
33#define RAS_MaxEntryName 256
34#define RAS_MaxPhoneNumber 128
35
36DECLARE_HANDLE(HRASCONN);
Marcus Meissner30ef8771998-12-11 13:26:26 +000037
Alexandre Julliarda3960291999-02-26 11:11:13 +000038typedef struct tagRASCONNA {
François Gougetce03ac82000-12-24 20:44:08 +000039 DWORD dwSize;
40 HRASCONN hRasConn;
41 CHAR szEntryName[ RAS_MaxEntryName + 1 ];
42 CHAR szDeviceType[ RAS_MaxDeviceType + 1 ];
43 CHAR szDeviceName[ RAS_MaxDeviceName + 1 ];
44 CHAR szPhonebook[ MAX_PATH ];
45 DWORD dwSubEntry;
Alexandre Julliarda3960291999-02-26 11:11:13 +000046} RASCONNA,*LPRASCONNA;
Marcus Meissner30ef8771998-12-11 13:26:26 +000047
François Gougetce03ac82000-12-24 20:44:08 +000048typedef struct tagRASCONNW {
49 DWORD dwSize;
50 HRASCONN hRasConn;
51 WCHAR szEntryName[ RAS_MaxEntryName + 1 ];
52 WCHAR szDeviceType[ RAS_MaxDeviceType + 1 ];
53 WCHAR szDeviceName[ RAS_MaxDeviceName + 1 ];
54 WCHAR szPhonebook[ MAX_PATH ];
55 DWORD dwSubEntry;
56} RASCONNW,*LPRASCONNW;
57
58DECL_WINELIB_TYPE_AW(RASCONN)
59DECL_WINELIB_TYPE_AW(LPRASCONN)
60
61typedef struct tagRASENTRYNAMEA {
Rein Klazes34a02f11999-11-07 05:49:28 +000062 DWORD dwSize;
63 CHAR szEntryName[ RAS_MaxEntryName + 1 ];
François Gougetce03ac82000-12-24 20:44:08 +000064} RASENTRYNAMEA, *LPRASENTRYNAMEA;
Rein Klazes34a02f11999-11-07 05:49:28 +000065
François Gougetce03ac82000-12-24 20:44:08 +000066typedef struct tagRASENTRYNAMEW {
67 DWORD dwSize;
68 WCHAR szEntryName[ RAS_MaxEntryName + 1 ];
69} RASENTRYNAMEW, *LPRASENTRYNAMEW;
70
71DECL_WINELIB_TYPE_AW(RASENTRYNAME)
72DECL_WINELIB_TYPE_AW(LPRASENTRYNAME)
73
74typedef struct tagRASDIALPARAMSA {
75 DWORD dwSize;
76 CHAR szEntryName[ RAS_MaxEntryName + 1 ];
77 CHAR szPhoneNumber[ RAS_MaxPhoneNumber + 1 ];
78 CHAR szCallbackNumber[ RAS_MaxCallbackNumber + 1 ];
79 CHAR szUserName[ UNLEN + 1 ];
80 CHAR szPassword[ PWLEN + 1 ];
81 CHAR szDomain[ DNLEN + 1 ];
82 DWORD dwSubEntry;
83 DWORD dwCallbackId;
84} RASDIALPARAMSA, *LPRASDIALPARAMSA;
85
86typedef struct tagRASDIALPARAMSW {
Rein Klazes34a02f11999-11-07 05:49:28 +000087 DWORD dwSize;
88 WCHAR szEntryName[ RAS_MaxEntryName + 1 ];
89 WCHAR szPhoneNumber[ RAS_MaxPhoneNumber + 1 ];
90 WCHAR szCallbackNumber[ RAS_MaxCallbackNumber + 1 ];
91 WCHAR szUserName[ UNLEN + 1 ];
92 WCHAR szPassword[ PWLEN + 1 ];
93 WCHAR szDomain[ DNLEN + 1 ];
94 DWORD dwSubEntry;
95 DWORD dwCallbackId;
François Gougetce03ac82000-12-24 20:44:08 +000096} RASDIALPARAMSW, *LPRASDIALPARAMSW;
97
98DECL_WINELIB_TYPE_AW(RASDIALPARAMS)
99DECL_WINELIB_TYPE_AW(LPRASDIALPARAMS)
Rein Klazes34a02f11999-11-07 05:49:28 +0000100
101
François Gougetce03ac82000-12-24 20:44:08 +0000102DWORD WINAPI RasEnumConnectionsA(LPRASCONNA,LPDWORD,LPDWORD);
103DWORD WINAPI RasEnumConnectionsW(LPRASCONNW,LPDWORD,LPDWORD);
104#define RasEnumConnections WINELIB_NAME_AW(RasEnumConnections)
Vincent Béron9a624912002-05-31 23:06:46 +0000105DWORD WINAPI RasEnumEntriesA(LPCSTR,LPCSTR,LPRASENTRYNAMEA,LPDWORD,LPDWORD);
106DWORD WINAPI RasEnumEntriesW(LPCWSTR,LPCWSTR,LPRASENTRYNAMEW,LPDWORD,LPDWORD);
François Gougetce03ac82000-12-24 20:44:08 +0000107#define RasEnumEntries WINELIB_NAME_AW(RasEnumEntries)
Vincent Béron9a624912002-05-31 23:06:46 +0000108DWORD WINAPI RasGetEntryDialParamsA(LPCSTR,LPRASDIALPARAMSA,LPBOOL);
109DWORD WINAPI RasGetEntryDialParamsW(LPCWSTR,LPRASDIALPARAMSW,LPBOOL);
François Gougetce03ac82000-12-24 20:44:08 +0000110#define RasGetEntryDialParams WINELIB_NAME_AW(RasGetEntryDialParams)
111DWORD WINAPI RasHangUpA(HRASCONN);
112DWORD WINAPI RasHangUpW(HRASCONN);
113#define RasHangUp WINELIB_NAME_AW(RasHangUp)
Rein Klazes34a02f11999-11-07 05:49:28 +0000114
François Gougetce03ac82000-12-24 20:44:08 +0000115#include "poppack.h"
116#ifdef __cplusplus
117}
118#endif
Rein Klazes34a02f11999-11-07 05:49:28 +0000119
Marcus Meissner30ef8771998-12-11 13:26:26 +0000120#endif