Merge commit 'origin/master' into msys
[msysgit.git] / mingw / include / rasdlg.h
blob6ba20da4b2172f8707467d64c0e9c186cd0334f5
1 #ifndef _RASDLG_H
2 #define _RASDLG_H
3 #if __GNUC__ >= 3
4 #pragma GCC system_header
5 #endif
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
11 #include <ras.h>
13 #define RASPBDEVENT_AddEntry 1
14 #define RASPBDEVENT_EditEntry 2
15 #define RASPBDEVENT_RemoveEntry 3
16 #define RASPBDEVENT_DialEntry 4
17 #define RASPBDEVENT_EditGlobals 5
18 #define RASPBDEVENT_NoUser 6
19 #define RASPBDEVENT_NoUserEdit 7
21 #define RASPBDFLAG_PositionDlg 1
22 #define RASPBDFLAG_ForceCloseOnDial 2
23 #define RASPBDFLAG_NoUser 16
25 #define RASEDFLAG_PositionDlg 1
26 #define RASEDFLAG_NewEntry 2
27 #define RASEDFLAG_CloneEntry 4
29 #define RASDDFLAG_PositionDlg 1
31 #ifndef RC_INVOKED
32 #include <pshpack4.h>
34 typedef struct tagRASENTRYDLGA
36 DWORD dwSize;
37 HWND hwndOwner;
38 DWORD dwFlags;
39 LONG xDlg;
40 LONG yDlg;
41 CHAR szEntry[RAS_MaxEntryName + 1];
42 DWORD dwError;
43 ULONG_PTR reserved;
44 ULONG_PTR reserved2;
45 } RASENTRYDLGA, *LPRASENTRYDLGA;
46 typedef struct tagRASENTRYDLGW
48 DWORD dwSize;
49 HWND hwndOwner;
50 DWORD dwFlags;
51 LONG xDlg;
52 LONG yDlg;
53 WCHAR szEntry[RAS_MaxEntryName + 1];
54 DWORD dwError;
55 ULONG_PTR reserved;
56 ULONG_PTR reserved2;
57 } RASENTRYDLGW, *LPRASENTRYDLGW;
59 typedef struct tagRASDIALDLG
61 DWORD dwSize;
62 HWND hwndOwner;
63 DWORD dwFlags;
64 LONG xDlg;
65 LONG yDlg;
66 DWORD dwSubEntry;
67 DWORD dwError;
68 ULONG_PTR reserved;
69 ULONG_PTR reserved2;
70 } RASDIALDLG, *LPRASDIALDLG;
72 /* Application-defined callback functions */
73 typedef VOID (WINAPI* RASPBDLGFUNCW)(DWORD, DWORD, LPWSTR, LPVOID);
74 typedef VOID (WINAPI* RASPBDLGFUNCA)(DWORD, DWORD, LPSTR, LPVOID);
76 typedef struct tagRASPBDLGA
78 DWORD dwSize;
79 HWND hwndOwner;
80 DWORD dwFlags;
81 LONG xDlg;
82 LONG yDlg;
83 ULONG_PTR dwCallbackId;
84 RASPBDLGFUNCA pCallback;
85 DWORD dwError;
86 ULONG_PTR reserved;
87 ULONG_PTR reserved2;
88 } RASPBDLGA, *LPRASPBDLGA;
89 typedef struct tagRASPBDLGW
91 DWORD dwSize;
92 HWND hwndOwner;
93 DWORD dwFlags;
94 LONG xDlg;
95 LONG yDlg;
96 ULONG_PTR dwCallbackId;
97 RASPBDLGFUNCW pCallback;
98 DWORD dwError;
99 ULONG_PTR reserved;
100 ULONG_PTR reserved2;
101 } RASPBDLGW, *LPRASPBDLGW;
103 typedef struct tagRASNOUSERA
105 DWORD dwSize;
106 DWORD dwFlags;
107 DWORD dwTimeoutMs;
108 CHAR szUserName[UNLEN + 1];
109 CHAR szPassword[PWLEN + 1];
110 CHAR szDomain[DNLEN + 1];
111 } RASNOUSERA, *LPRASNOUSERA;
112 typedef struct tagRASNOUSERW
114 DWORD dwSize;
115 DWORD dwFlags;
116 DWORD dwTimeoutMs;
117 WCHAR szUserName[UNLEN + 1];
118 WCHAR szPassword[PWLEN + 1];
119 WCHAR szDomain[DNLEN + 1];
120 } RASNOUSERW, *LPRASNOUSERW ;
122 #include <poppack.h>
124 BOOL APIENTRY RasDialDlgA(LPSTR,LPSTR,LPSTR,LPRASDIALDLG);
125 BOOL APIENTRY RasDialDlgW(LPWSTR,LPWSTR,LPWSTR,LPRASDIALDLG);
126 BOOL APIENTRY RasEntryDlgA(LPSTR,LPSTR,LPRASENTRYDLGA);
127 BOOL APIENTRY RasEntryDlgW(LPWSTR,LPWSTR,LPRASENTRYDLGW);
128 BOOL APIENTRY RasPhonebookDlgA(LPSTR,LPSTR,LPRASPBDLGA);
129 BOOL APIENTRY RasPhonebookDlgW(LPWSTR,LPWSTR,LPRASPBDLGW);
131 #ifdef UNICODE
132 typedef RASENTRYDLGW RASENTRYDLG, *LPRASENTRYDLG;
133 typedef RASPBDLGW RASPBDLG, *LPRASPBDLG;
134 typedef RASNOUSERW RASNOUSER, *LPRASNOUSER;
135 #define RasDialDlg RasDialDlgW
136 #define RasEntryDlg RasEntryDlgW
137 #define RasPhonebookDlg RasPhonebookDlgW
138 #else
139 typedef RASENTRYDLGA RASENTRYDLG, *LPRASENTRYDLG;
140 typedef RASPBDLGA RASPBDLG, *LPRASPBDLG;
141 typedef RASNOUSERA RASNOUSER, *LPRASNOUSER;
142 #define RasDialDlg RasDialDlgA
143 #define RasEntryDlg RasEntryDlgA
144 #define RasPhonebookDlg RasPhonebookDlgA
145 #endif /* UNICODE */
147 #endif /* RC_INVOKED */
149 #ifdef __cplusplus
151 #endif
152 #endif