source: Daodan/MinGW/include/rasdlg.h@ 1054

Last change on this file since 1054 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 3.4 KB
RevLine 
[1046]1#ifndef _RASDLG_H
2#define _RASDLG_H
3#if __GNUC__ >= 3
4#pragma GCC system_header
5#endif
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11#include <ras.h>
12
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
20
21#define RASPBDFLAG_PositionDlg 1
22#define RASPBDFLAG_ForceCloseOnDial 2
23#define RASPBDFLAG_NoUser 16
24
25#define RASEDFLAG_PositionDlg 1
26#define RASEDFLAG_NewEntry 2
27#define RASEDFLAG_CloneEntry 4
28
29#define RASDDFLAG_PositionDlg 1
30
31#ifndef RC_INVOKED
32#include <pshpack4.h>
33
34typedef struct tagRASENTRYDLGA
35{
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;
46typedef struct tagRASENTRYDLGW
47{
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;
58
59typedef struct tagRASDIALDLG
60{
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;
71
72/* Application-defined callback functions */
73typedef VOID (WINAPI* RASPBDLGFUNCW)(DWORD, DWORD, LPWSTR, LPVOID);
74typedef VOID (WINAPI* RASPBDLGFUNCA)(DWORD, DWORD, LPSTR, LPVOID);
75
76typedef struct tagRASPBDLGA
77{
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;
89typedef struct tagRASPBDLGW
90{
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;
102
103typedef struct tagRASNOUSERA
104{
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;
112typedef struct tagRASNOUSERW
113{
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 ;
121
122#include <poppack.h>
123
124BOOL APIENTRY RasDialDlgA(LPSTR,LPSTR,LPSTR,LPRASDIALDLG);
125BOOL APIENTRY RasDialDlgW(LPWSTR,LPWSTR,LPWSTR,LPRASDIALDLG);
126BOOL APIENTRY RasEntryDlgA(LPSTR,LPSTR,LPRASENTRYDLGA);
127BOOL APIENTRY RasEntryDlgW(LPWSTR,LPWSTR,LPRASENTRYDLGW);
128BOOL APIENTRY RasPhonebookDlgA(LPSTR,LPSTR,LPRASPBDLGA);
129BOOL APIENTRY RasPhonebookDlgW(LPWSTR,LPWSTR,LPRASPBDLGW);
130
131#ifdef UNICODE
132typedef RASENTRYDLGW RASENTRYDLG, *LPRASENTRYDLG;
133typedef RASPBDLGW RASPBDLG, *LPRASPBDLG;
134typedef RASNOUSERW RASNOUSER, *LPRASNOUSER;
135#define RasDialDlg RasDialDlgW
136#define RasEntryDlg RasEntryDlgW
137#define RasPhonebookDlg RasPhonebookDlgW
138#else
139typedef RASENTRYDLGA RASENTRYDLG, *LPRASENTRYDLG;
140typedef RASPBDLGA RASPBDLG, *LPRASPBDLG;
141typedef RASNOUSERA RASNOUSER, *LPRASNOUSER;
142#define RasDialDlg RasDialDlgA
143#define RasEntryDlg RasEntryDlgA
144#define RasPhonebookDlg RasPhonebookDlgA
145#endif /* UNICODE */
146
147#endif /* RC_INVOKED */
148
149#ifdef __cplusplus
150}
151#endif
152#endif
Note: See TracBrowser for help on using the repository browser.