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