2 * Copyright (C) 1998 Marcus Meissner
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.
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.
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
30 #define RAS_MaxCallbackNumber RAS_MaxPhoneNumber
31 #define RAS_MaxDeviceName 128
32 #define RAS_MaxDeviceType 16
33 #define RAS_MaxEntryName 256
34 #define RAS_MaxPhoneNumber 128
36 DECLARE_HANDLE(HRASCONN
);
38 typedef struct tagRASCONNA
{
41 CHAR szEntryName
[ RAS_MaxEntryName
+ 1 ];
42 CHAR szDeviceType
[ RAS_MaxDeviceType
+ 1 ];
43 CHAR szDeviceName
[ RAS_MaxDeviceName
+ 1 ];
44 CHAR szPhonebook
[ MAX_PATH
];
46 } RASCONNA
,*LPRASCONNA
;
48 typedef struct tagRASCONNW
{
51 WCHAR szEntryName
[ RAS_MaxEntryName
+ 1 ];
52 WCHAR szDeviceType
[ RAS_MaxDeviceType
+ 1 ];
53 WCHAR szDeviceName
[ RAS_MaxDeviceName
+ 1 ];
54 WCHAR szPhonebook
[ MAX_PATH
];
56 } RASCONNW
,*LPRASCONNW
;
58 DECL_WINELIB_TYPE_AW(RASCONN
)
59 DECL_WINELIB_TYPE_AW(LPRASCONN
)
61 typedef struct tagRASENTRYNAMEA
{
63 CHAR szEntryName
[ RAS_MaxEntryName
+ 1 ];
64 } RASENTRYNAMEA
, *LPRASENTRYNAMEA
;
66 typedef struct tagRASENTRYNAMEW
{
68 WCHAR szEntryName
[ RAS_MaxEntryName
+ 1 ];
69 } RASENTRYNAMEW
, *LPRASENTRYNAMEW
;
71 DECL_WINELIB_TYPE_AW(RASENTRYNAME
)
72 DECL_WINELIB_TYPE_AW(LPRASENTRYNAME
)
74 typedef struct tagRASDIALPARAMSA
{
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 ];
84 } RASDIALPARAMSA
, *LPRASDIALPARAMSA
;
86 typedef struct tagRASDIALPARAMSW
{
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 ];
96 } RASDIALPARAMSW
, *LPRASDIALPARAMSW
;
98 DECL_WINELIB_TYPE_AW(RASDIALPARAMS
)
99 DECL_WINELIB_TYPE_AW(LPRASDIALPARAMS
)
102 DWORD WINAPI
RasEnumConnectionsA(LPRASCONNA
,LPDWORD
,LPDWORD
);
103 DWORD WINAPI
RasEnumConnectionsW(LPRASCONNW
,LPDWORD
,LPDWORD
);
104 #define RasEnumConnections WINELIB_NAME_AW(RasEnumConnections)
105 DWORD WINAPI
RasEnumEntriesA(LPCSTR
,LPCSTR
,LPRASENTRYNAMEA
,LPDWORD
,LPDWORD
);
106 DWORD WINAPI
RasEnumEntriesW(LPCWSTR
,LPCWSTR
,LPRASENTRYNAMEW
,LPDWORD
,LPDWORD
);
107 #define RasEnumEntries WINELIB_NAME_AW(RasEnumEntries)
108 DWORD WINAPI
RasGetEntryDialParamsA(LPCSTR
,LPRASDIALPARAMSA
,LPBOOL
);
109 DWORD WINAPI
RasGetEntryDialParamsW(LPCWSTR
,LPRASDIALPARAMSW
,LPBOOL
);
110 #define RasGetEntryDialParams WINELIB_NAME_AW(RasGetEntryDialParams)
111 DWORD WINAPI
RasHangUpA(HRASCONN
);
112 DWORD WINAPI
RasHangUpW(HRASCONN
);
113 #define RasHangUp WINELIB_NAME_AW(RasHangUp)