Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.1 KiB

  1. // ############################################################################
  2. #ifndef WIN16
  3. #include <ras.h>
  4. #endif
  5. #ifndef _ICWDIAL
  6. #define _ICWDIAL
  7. // ############################################################################
  8. typedef HRESULT(WINAPI *PFNSTATUSCALLBACK)(DWORD dwStatus, LPTSTR pszBuffer, DWORD dwBufferSize);
  9. typedef struct tagDIALDLGDATA
  10. {
  11. DWORD dwSize;
  12. LPTSTR pszMessage;
  13. LPTSTR pszRasEntryName;
  14. LPTSTR pszMultipartMIMEUrl;
  15. HRASCONN *phRasConn;
  16. PFNSTATUSCALLBACK pfnStatusCallback;
  17. HINSTANCE hInst;
  18. HWND hParentHwnd;
  19. LPTSTR pszDunFile;
  20. BOOL bSkipDial;
  21. RASDIALFUNC1 pfnRasDialFunc1;
  22. }DIALDLGDATA,*PDIALDLGDATA, FAR* LPDIALDLGDATA;
  23. typedef struct tagERRORDLGDATA
  24. {
  25. DWORD dwSize;
  26. LPTSTR pszMessage;
  27. LPTSTR pszRasEntryName;
  28. LPDWORD pdwCountryID;
  29. LPWORD pwStateID;
  30. BYTE bType;
  31. BYTE bMask;
  32. LPTSTR pszHelpFile;
  33. DWORD dwHelpID;
  34. HINSTANCE hInst;
  35. HWND hParentHwnd;
  36. DWORD dwPhonebook;
  37. LPTSTR pszDunFile;
  38. } ERRORDLGDATA, *PERRORDLGDATA, FAR* LPERRORDLGDATA;
  39. #define WM_RegisterHWND (WM_USER + 1000)
  40. // ############################################################################
  41. #ifdef WIN16
  42. extern "C" HRESULT WINAPI __export ICWGetRasEntry(LPRASENTRY *ppRasEntry, LPDWORD lpdwRasEntrySize, LPRASDEVINFO *ppDevInfo, LPDWORD lpdwDevInfoSize, LPTSTR pszEntryName);
  43. extern "C" HRESULT WINAPI __export DialingDownloadDialog(PDIALDLGDATA pDD);
  44. extern "C" HRESULT WINAPI __export DialingErrorDialog(PERRORDLGDATA pED);
  45. #else
  46. extern "C" HRESULT WINAPI ICWGetRasEntry(LPRASENTRY *ppRasEntry, LPDWORD lpdwRasEntrySize, LPRASDEVINFO *ppDevInfo, LPDWORD lpdwDevInfoSize, LPTSTR pszEntryName);
  47. extern "C" HRESULT WINAPI DialingDownloadDialog(PDIALDLGDATA pDD);
  48. extern "C" HRESULT WINAPI DialingErrorDialog(PERRORDLGDATA pED);
  49. #endif
  50. typedef HRESULT (WINAPI *PFNICWGetRasEntry)(LPRASENTRY, LPDWORD, LPRASDEVINFO, LPDWORD, LPTSTR);
  51. typedef HRESULT (WINAPI *PFNDDDlg)(PDIALDLGDATA);
  52. typedef HRESULT (WINAPI *PFNDEDlg)(PERRORDLGDATA);
  53. #endif // _ICWDIAL