3 * @copy 2012 MinGW.org project
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
26 #pragma GCC system_header
35 #define RASPBDEVENT_AddEntry 1
36 #define RASPBDEVENT_EditEntry 2
37 #define RASPBDEVENT_RemoveEntry 3
38 #define RASPBDEVENT_DialEntry 4
39 #define RASPBDEVENT_EditGlobals 5
40 #define RASPBDEVENT_NoUser 6
41 #define RASPBDEVENT_NoUserEdit 7
43 #define RASPBDFLAG_PositionDlg 1
44 #define RASPBDFLAG_ForceCloseOnDial 2
45 #define RASPBDFLAG_NoUser 16
47 #define RASEDFLAG_PositionDlg 1
48 #define RASEDFLAG_NewEntry 2
49 #define RASEDFLAG_CloneEntry 4
51 #define RASDDFLAG_PositionDlg 1
56 typedef struct tagRASENTRYDLGA
63 CHAR szEntry[RAS_MaxEntryName + 1];
67 } RASENTRYDLGA, *LPRASENTRYDLGA;
68 typedef struct tagRASENTRYDLGW
75 WCHAR szEntry[RAS_MaxEntryName + 1];
79 } RASENTRYDLGW, *LPRASENTRYDLGW;
81 typedef struct tagRASDIALDLG
92 } RASDIALDLG, *LPRASDIALDLG;
94 /* Application-defined callback functions */
95 typedef VOID (WINAPI* RASPBDLGFUNCW)(DWORD, DWORD, LPWSTR, LPVOID);
96 typedef VOID (WINAPI* RASPBDLGFUNCA)(DWORD, DWORD, LPSTR, LPVOID);
98 typedef struct tagRASPBDLGA
105 ULONG_PTR dwCallbackId;
106 RASPBDLGFUNCA pCallback;
110 } RASPBDLGA, *LPRASPBDLGA;
111 typedef struct tagRASPBDLGW
118 ULONG_PTR dwCallbackId;
119 RASPBDLGFUNCW pCallback;
123 } RASPBDLGW, *LPRASPBDLGW;
125 typedef struct tagRASNOUSERA
130 CHAR szUserName[UNLEN + 1];
131 CHAR szPassword[PWLEN + 1];
132 CHAR szDomain[DNLEN + 1];
133 } RASNOUSERA, *LPRASNOUSERA;
134 typedef struct tagRASNOUSERW
139 WCHAR szUserName[UNLEN + 1];
140 WCHAR szPassword[PWLEN + 1];
141 WCHAR szDomain[DNLEN + 1];
142 } RASNOUSERW, *LPRASNOUSERW ;
146 BOOL APIENTRY RasDialDlgA(LPSTR,LPSTR,LPSTR,LPRASDIALDLG);
147 BOOL APIENTRY RasDialDlgW(LPWSTR,LPWSTR,LPWSTR,LPRASDIALDLG);
148 BOOL APIENTRY RasEntryDlgA(LPSTR,LPSTR,LPRASENTRYDLGA);
149 BOOL APIENTRY RasEntryDlgW(LPWSTR,LPWSTR,LPRASENTRYDLGW);
150 BOOL APIENTRY RasPhonebookDlgA(LPSTR,LPSTR,LPRASPBDLGA);
151 BOOL APIENTRY RasPhonebookDlgW(LPWSTR,LPWSTR,LPRASPBDLGW);
153 typedef __AW(RASENTRYDLG) RASENTRYDLG, *LPRASENTRYDLG;
154 typedef __AW(RASPBDLG) RASPBDLG, *LPRASPBDLG;
155 typedef __AW(RASNOUSER) RASNOUSER, *LPRASNOUSER;
156 #define RasDialDlg __AW(RasDialDlg)
157 #define RasEntryDlg __AW(RasEntryDlg)
158 #define RasPhonebookDlg __AW(RasPhonebookDlg)
160 #endif /* RC_INVOKED */