Cleaned up some inter-dll dependencies in palette management.
[wine] / include / ras.h
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef __WINE_RAS_H
20 #define __WINE_RAS_H
21
22 #include "windef.h"
23 #include "lmcons.h"
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 #include "pshpack4.h"
29
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
35
36 DECLARE_HANDLE(HRASCONN);
37
38 typedef struct tagRASCONNA {
39     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;
46 } RASCONNA,*LPRASCONNA;
47
48 typedef 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
58 DECL_WINELIB_TYPE_AW(RASCONN)
59 DECL_WINELIB_TYPE_AW(LPRASCONN)
60
61 typedef struct tagRASENTRYNAMEA {
62     DWORD dwSize;
63     CHAR  szEntryName[ RAS_MaxEntryName + 1 ];
64 } RASENTRYNAMEA, *LPRASENTRYNAMEA;
65
66 typedef struct tagRASENTRYNAMEW {
67     DWORD dwSize;
68     WCHAR szEntryName[ RAS_MaxEntryName + 1 ];
69 } RASENTRYNAMEW, *LPRASENTRYNAMEW;
70
71 DECL_WINELIB_TYPE_AW(RASENTRYNAME)
72 DECL_WINELIB_TYPE_AW(LPRASENTRYNAME)
73
74 typedef 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
86 typedef struct tagRASDIALPARAMSW {
87     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;
96 } RASDIALPARAMSW, *LPRASDIALPARAMSW;
97
98 DECL_WINELIB_TYPE_AW(RASDIALPARAMS)
99 DECL_WINELIB_TYPE_AW(LPRASDIALPARAMS)
100
101
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)
114
115 #include "poppack.h"
116 #ifdef __cplusplus
117 }
118 #endif
119
120 #endif