Source code of Windows XP (NT5)
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.

67 lines
2.2 KiB

  1. // Import.h: interface for the CISPImport class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #ifndef _IMPORT_
  5. #define _IMPORT_
  6. #include "obcomglb.h"
  7. #if _MSC_VER >= 1000
  8. #pragma once
  9. #endif // _MSC_VER >= 1000
  10. #define IDS_DEFAULT_SCP 0
  11. #define IDS_INI_SCRIPT_DIR 1
  12. #define IDS_INI_SCRIPT_SHORTDIR 2
  13. #define MAXLONGLEN 80
  14. #define MAXNAME 80
  15. #define MAXIPADDRLEN 20
  16. #define SIZE_ReadBuf 0x00008000 // 32K buffer size
  17. #define AUTORUNSIGNUPWIZARDAPI "InetConfigClient"
  18. // BUGBUG: Does PFNAUTORUNSIGNUPWIZARD get called anywhere?
  19. typedef HRESULT (WINAPI *PFNAUTORUNSIGNUPWIZARD) (HWND hwndParent,
  20. LPCSTR lpszPhoneBook,
  21. LPCSTR lpszConnectoidName,
  22. LPRASENTRY lpRasEntry,
  23. LPCSTR lpszUsername,
  24. LPCSTR lpszPassword,
  25. LPCSTR lpszProfileName,
  26. LPINETCLIENTINFO lpINetClientInfo,
  27. DWORD dwfOptions,
  28. LPBOOL lpfNeedsRestart);
  29. #define DUN_NOPHONENUMBER L"000000000000"
  30. class CISPImport
  31. {
  32. public:
  33. CISPImport();
  34. virtual ~CISPImport();
  35. void set_hWndMain(HWND hWnd)
  36. {
  37. m_hWndMain = hWnd;
  38. };
  39. DWORD RnaValidateImportEntry (LPCWSTR szFileName);
  40. HRESULT ImportConnection (LPCWSTR szFileName, LPWSTR pszEntryName, LPWSTR pszSupportNumber, LPWSTR pszUserName, LPWSTR pszPassword, LPBOOL pfNeedsRestart);
  41. BOOL GetDeviceSelectedByUser (LPWSTR szKey, LPWSTR szBuf, DWORD dwSize);
  42. BOOL SetDeviceSelectedByUser (LPWSTR szKey, LPWSTR szBuf);
  43. BOOL DeleteUserDeviceSelection(LPWSTR szKey);
  44. DWORD ConfigRasEntryDevice( LPRASENTRY lpRasEntry );
  45. WCHAR m_szDeviceName[RAS_MaxDeviceName + 1]; //holds the user's modem choice when multiple
  46. WCHAR m_szDeviceType[RAS_MaxDeviceType + 1]; // modems are installed
  47. WCHAR m_szConnectoidName[RAS_MaxEntryName+1];
  48. HWND m_hWndMain;
  49. BOOL m_bIsISDNDevice;
  50. };
  51. #endif // !defined()