1*c2c66affSColin Finck #ifndef _RASDLG_H_ 2*c2c66affSColin Finck #define _RASDLG_H_ 3*c2c66affSColin Finck #ifdef __cplusplus 4*c2c66affSColin Finck extern "C" { 5*c2c66affSColin Finck #endif 6*c2c66affSColin Finck 7*c2c66affSColin Finck #include <ras.h> 8*c2c66affSColin Finck 9*c2c66affSColin Finck #define RASPBDEVENT_AddEntry 1 10*c2c66affSColin Finck #define RASPBDEVENT_EditEntry 2 11*c2c66affSColin Finck #define RASPBDEVENT_RemoveEntry 3 12*c2c66affSColin Finck #define RASPBDEVENT_DialEntry 4 13*c2c66affSColin Finck #define RASPBDEVENT_EditGlobals 5 14*c2c66affSColin Finck #define RASPBDEVENT_NoUser 6 15*c2c66affSColin Finck #define RASPBDEVENT_NoUserEdit 7 16*c2c66affSColin Finck 17*c2c66affSColin Finck #define RASPBDFLAG_PositionDlg 0x00000001 18*c2c66affSColin Finck #define RASPBDFLAG_ForceCloseOnDial 0x00000002 19*c2c66affSColin Finck #define RASPBDFLAG_NoUser 0x00000010 20*c2c66affSColin Finck #define RASPBDFLAG_UpdateDefaults 0x80000000 21*c2c66affSColin Finck 22*c2c66affSColin Finck #define RASEDFLAG_PositionDlg 1 23*c2c66affSColin Finck #define RASEDFLAG_NewEntry 2 24*c2c66affSColin Finck #define RASEDFLAG_CloneEntry 4 25*c2c66affSColin Finck 26*c2c66affSColin Finck #define RASDDFLAG_PositionDlg 1 27*c2c66affSColin Finck 28*c2c66affSColin Finck #ifndef RC_INVOKED 29*c2c66affSColin Finck #include <pshpack4.h> 30*c2c66affSColin Finck 31*c2c66affSColin Finck typedef struct tagRASENTRYDLGA 32*c2c66affSColin Finck { 33*c2c66affSColin Finck DWORD dwSize; 34*c2c66affSColin Finck HWND hwndOwner; 35*c2c66affSColin Finck DWORD dwFlags; 36*c2c66affSColin Finck LONG xDlg; 37*c2c66affSColin Finck LONG yDlg; 38*c2c66affSColin Finck CHAR szEntry[RAS_MaxEntryName + 1]; 39*c2c66affSColin Finck DWORD dwError; 40*c2c66affSColin Finck ULONG_PTR reserved; 41*c2c66affSColin Finck ULONG_PTR reserved2; 42*c2c66affSColin Finck } RASENTRYDLGA, *LPRASENTRYDLGA; 43*c2c66affSColin Finck typedef struct tagRASENTRYDLGW 44*c2c66affSColin Finck { 45*c2c66affSColin Finck DWORD dwSize; 46*c2c66affSColin Finck HWND hwndOwner; 47*c2c66affSColin Finck DWORD dwFlags; 48*c2c66affSColin Finck LONG xDlg; 49*c2c66affSColin Finck LONG yDlg; 50*c2c66affSColin Finck WCHAR szEntry[RAS_MaxEntryName + 1]; 51*c2c66affSColin Finck DWORD dwError; 52*c2c66affSColin Finck ULONG_PTR reserved; 53*c2c66affSColin Finck ULONG_PTR reserved2; 54*c2c66affSColin Finck } RASENTRYDLGW, *LPRASENTRYDLGW; 55*c2c66affSColin Finck 56*c2c66affSColin Finck typedef struct tagRASDIALDLG 57*c2c66affSColin Finck { 58*c2c66affSColin Finck DWORD dwSize; 59*c2c66affSColin Finck HWND hwndOwner; 60*c2c66affSColin Finck DWORD dwFlags; 61*c2c66affSColin Finck LONG xDlg; 62*c2c66affSColin Finck LONG yDlg; 63*c2c66affSColin Finck DWORD dwSubEntry; 64*c2c66affSColin Finck DWORD dwError; 65*c2c66affSColin Finck ULONG_PTR reserved; 66*c2c66affSColin Finck ULONG_PTR reserved2; 67*c2c66affSColin Finck } RASDIALDLG, *LPRASDIALDLG; 68*c2c66affSColin Finck 69*c2c66affSColin Finck /* Application-defined callback functions */ 70*c2c66affSColin Finck typedef VOID (WINAPI* RASPBDLGFUNCW)(DWORD, DWORD, LPWSTR, LPVOID); 71*c2c66affSColin Finck typedef VOID (WINAPI* RASPBDLGFUNCA)(DWORD, DWORD, LPSTR, LPVOID); 72*c2c66affSColin Finck 73*c2c66affSColin Finck typedef struct tagRASPBDLGA 74*c2c66affSColin Finck { 75*c2c66affSColin Finck DWORD dwSize; 76*c2c66affSColin Finck HWND hwndOwner; 77*c2c66affSColin Finck DWORD dwFlags; 78*c2c66affSColin Finck LONG xDlg; 79*c2c66affSColin Finck LONG yDlg; 80*c2c66affSColin Finck ULONG_PTR dwCallbackId; 81*c2c66affSColin Finck RASPBDLGFUNCA pCallback; 82*c2c66affSColin Finck DWORD dwError; 83*c2c66affSColin Finck ULONG_PTR reserved; 84*c2c66affSColin Finck ULONG_PTR reserved2; 85*c2c66affSColin Finck } RASPBDLGA, *LPRASPBDLGA; 86*c2c66affSColin Finck typedef struct tagRASPBDLGW 87*c2c66affSColin Finck { 88*c2c66affSColin Finck DWORD dwSize; 89*c2c66affSColin Finck HWND hwndOwner; 90*c2c66affSColin Finck DWORD dwFlags; 91*c2c66affSColin Finck LONG xDlg; 92*c2c66affSColin Finck LONG yDlg; 93*c2c66affSColin Finck ULONG_PTR dwCallbackId; 94*c2c66affSColin Finck RASPBDLGFUNCW pCallback; 95*c2c66affSColin Finck DWORD dwError; 96*c2c66affSColin Finck ULONG_PTR reserved; 97*c2c66affSColin Finck ULONG_PTR reserved2; 98*c2c66affSColin Finck } RASPBDLGW, *LPRASPBDLGW; 99*c2c66affSColin Finck 100*c2c66affSColin Finck typedef struct tagRASMONITORDLG 101*c2c66affSColin Finck { 102*c2c66affSColin Finck DWORD dwSize; 103*c2c66affSColin Finck HWND hwndOwner; 104*c2c66affSColin Finck DWORD dwFlags; 105*c2c66affSColin Finck DWORD dwStartPage; 106*c2c66affSColin Finck LONG xDlg; 107*c2c66affSColin Finck LONG yDlg; 108*c2c66affSColin Finck OUT DWORD dwError; 109*c2c66affSColin Finck ULONG_PTR reserved; 110*c2c66affSColin Finck ULONG_PTR reserved2; 111*c2c66affSColin Finck } RASMONITORDLG, *LPRASMONITORDLG; 112*c2c66affSColin Finck 113*c2c66affSColin Finck typedef struct tagRASNOUSERA 114*c2c66affSColin Finck { 115*c2c66affSColin Finck DWORD dwSize; 116*c2c66affSColin Finck DWORD dwFlags; 117*c2c66affSColin Finck DWORD dwTimeoutMs; 118*c2c66affSColin Finck CHAR szUserName[UNLEN + 1]; 119*c2c66affSColin Finck CHAR szPassword[PWLEN + 1]; 120*c2c66affSColin Finck CHAR szDomain[DNLEN + 1]; 121*c2c66affSColin Finck } RASNOUSERA, *LPRASNOUSERA; 122*c2c66affSColin Finck typedef struct tagRASNOUSERW 123*c2c66affSColin Finck { 124*c2c66affSColin Finck DWORD dwSize; 125*c2c66affSColin Finck DWORD dwFlags; 126*c2c66affSColin Finck DWORD dwTimeoutMs; 127*c2c66affSColin Finck WCHAR szUserName[UNLEN + 1]; 128*c2c66affSColin Finck WCHAR szPassword[PWLEN + 1]; 129*c2c66affSColin Finck WCHAR szDomain[DNLEN + 1]; 130*c2c66affSColin Finck } RASNOUSERW, *LPRASNOUSERW ; 131*c2c66affSColin Finck 132*c2c66affSColin Finck #include <poppack.h> 133*c2c66affSColin Finck 134*c2c66affSColin Finck BOOL APIENTRY RasDialDlgA(LPSTR,LPSTR,LPSTR,LPRASDIALDLG); 135*c2c66affSColin Finck BOOL APIENTRY RasDialDlgW(LPWSTR,LPWSTR,LPWSTR,LPRASDIALDLG); 136*c2c66affSColin Finck BOOL APIENTRY RasEntryDlgA(LPSTR,LPSTR,LPRASENTRYDLGA); 137*c2c66affSColin Finck BOOL APIENTRY RasEntryDlgW(LPWSTR,LPWSTR,LPRASENTRYDLGW); 138*c2c66affSColin Finck BOOL APIENTRY RasPhonebookDlgA(LPSTR,LPSTR,LPRASPBDLGA); 139*c2c66affSColin Finck BOOL APIENTRY RasPhonebookDlgW(LPWSTR,LPWSTR,LPRASPBDLGW); 140*c2c66affSColin Finck #if (WINVER <= 0x500) 141*c2c66affSColin Finck BOOL APIENTRY RasMonitorDlgA(LPSTR, LPRASMONITORDLG); 142*c2c66affSColin Finck BOOL APIENTRY RasMonitorDlgW(LPWSTR, LPRASMONITORDLG); 143*c2c66affSColin Finck #endif /*(WINVER <= 0x500)*/ 144*c2c66affSColin Finck 145*c2c66affSColin Finck #ifdef UNICODE 146*c2c66affSColin Finck typedef RASENTRYDLGW RASENTRYDLG, *LPRASENTRYDLG; 147*c2c66affSColin Finck typedef RASPBDLGW RASPBDLG, *LPRASPBDLG; 148*c2c66affSColin Finck typedef RASNOUSERW RASNOUSER, *LPRASNOUSER; 149*c2c66affSColin Finck #define RasDialDlg RasDialDlgW 150*c2c66affSColin Finck #define RasEntryDlg RasEntryDlgW 151*c2c66affSColin Finck #if (WINVER <= 0x500) 152*c2c66affSColin Finck #define RasMonitorDlg RasMonitorDlgW 153*c2c66affSColin Finck #endif /*(WINVER <= 0x500)*/ 154*c2c66affSColin Finck #define RasPhonebookDlg RasPhonebookDlgW 155*c2c66affSColin Finck #else 156*c2c66affSColin Finck typedef RASENTRYDLGA RASENTRYDLG, *LPRASENTRYDLG; 157*c2c66affSColin Finck typedef RASPBDLGA RASPBDLG, *LPRASPBDLG; 158*c2c66affSColin Finck typedef RASNOUSERA RASNOUSER, *LPRASNOUSER; 159*c2c66affSColin Finck #define RasDialDlg RasDialDlgA 160*c2c66affSColin Finck #define RasEntryDlg RasEntryDlgA 161*c2c66affSColin Finck #if (WINVER <= 0x500) 162*c2c66affSColin Finck #define RasMonitorDlg RasMonitorDlgA 163*c2c66affSColin Finck #endif /*(WINVER <= 0x500)*/ 164*c2c66affSColin Finck #define RasPhonebookDlg RasPhonebookDlgA 165*c2c66affSColin Finck #endif /* UNICODE */ 166*c2c66affSColin Finck 167*c2c66affSColin Finck #endif /* RC_INVOKED */ 168*c2c66affSColin Finck 169*c2c66affSColin Finck #ifdef __cplusplus 170*c2c66affSColin Finck } 171*c2c66affSColin Finck #endif 172*c2c66affSColin Finck #endif 173