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.

69 lines
2.3 KiB

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