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.

85 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: cncting.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // cncting.h : header file
  11. //
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CConnectData
  14. struct CConnectData;
  15. typedef void (*PCONNECTFUNC)(CConnectData *pData);
  16. struct CConnectData
  17. {
  18. PCONNECTFUNC m_pfnConnect;
  19. HWND m_hwndMsg;
  20. DWORD m_dwr;
  21. CString m_sName;
  22. RouterVersionInfo m_routerVersion;
  23. union
  24. {
  25. HKEY m_hkMachine;
  26. PSERVER_INFO_100 m_pSvInfo100;
  27. };
  28. DWORD m_dwSvInfoRead;
  29. };
  30. void ConnectToMachine(CConnectData* pParam);
  31. void ConnectToDomain(CConnectData* pParam);
  32. DWORD ValidateUserPermissions(LPCTSTR pszServer,
  33. RouterVersionInfo *pVersion,
  34. HKEY *phkeyMachine);
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CConnectingDlg dialog
  37. class CConnectingDlg : public CDialog
  38. {
  39. // Construction
  40. public:
  41. CConnectingDlg(CWnd* pParent = NULL); // standard constructor
  42. // Dialog Data
  43. PCONNECTFUNC m_pfnConnect;
  44. union
  45. {
  46. HKEY m_hkMachine;
  47. PSERVER_INFO_100 m_pSvInfo100;
  48. };
  49. DWORD m_dwSvInfoRead;
  50. BOOL m_bRouter;
  51. DWORD m_dwr;
  52. //{{AFX_DATA(CConnectingDlg)
  53. enum { IDD = IDD_CONNECTREG };
  54. CString m_sName;
  55. //}}AFX_DATA
  56. BOOL Connect(); // for connecting w/ no UI
  57. // Overrides
  58. // ClassWizard generated virtual function overrides
  59. //{{AFX_VIRTUAL(CConnectingDlg)
  60. protected:
  61. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  62. //}}AFX_VIRTUAL
  63. // Implementation
  64. protected:
  65. CWinThread *m_pThread;
  66. // Generated message map functions
  67. //{{AFX_MSG(CConnectingDlg)
  68. virtual BOOL OnInitDialog();
  69. //}}AFX_MSG
  70. LRESULT OnRequestComplete(WPARAM, LPARAM);
  71. DECLARE_MESSAGE_MAP()
  72. };