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.

78 lines
2.2 KiB

  1. //============================================================================
  2. // Copyright (C) Microsoft Corporation, 1996 - 1999
  3. //
  4. // File: portdlg.h
  5. //
  6. // History:
  7. // 09/21/96 Abolade Gbadegesin Created.
  8. //
  9. // Contains declarations for the port-status dialog.
  10. //============================================================================
  11. #ifndef _PORTDLG_H_
  12. #define _PORTDLG_H_
  13. //----------------------------------------------------------------------------
  14. // Class: CPortDlg
  15. //
  16. // Controls the Port-status dialog for DDMADMIN.
  17. //----------------------------------------------------------------------------
  18. class CPortDlg : public CBaseDialog {
  19. public:
  20. CPortDlg(
  21. LPCTSTR pszServer,
  22. HANDLE hServer,
  23. HANDLE hPort,
  24. ITFSNode* pPortsNode = NULL,
  25. CWnd* pParent = NULL);
  26. BOOL
  27. PortHasChanged(
  28. ITFSNode *pPortsNode,
  29. RAS_PORT_0 *pRP0);
  30. BOOL
  31. Refresh(
  32. BYTE* rp0Table,
  33. DWORD rp0Count,
  34. BYTE* rc0Table,
  35. DWORD rc0Count,
  36. HANDLE hRasHandle,
  37. BYTE * pRasmanPorts,
  38. DWORD rasmanCount,
  39. VOID* pParam = NULL );
  40. CComboBox m_comboPorts;
  41. BOOL m_bChanged;
  42. protected:
  43. // static DWORD m_dwHelpMap[];
  44. virtual VOID DoDataExchange(CDataExchange * pDX );
  45. virtual BOOL OnInitDialog( );
  46. afx_msg VOID OnHangUp( );
  47. afx_msg VOID OnReset( );
  48. afx_msg VOID OnSelendokPortList( );
  49. afx_msg VOID OnRefresh( );
  50. BOOL RefreshItem(
  51. HANDLE hPort,
  52. BOOL bDisconnected = FALSE );
  53. CString m_stServer;
  54. RAS_SERVER_HANDLE m_hServer;
  55. HANDLE m_hPort;
  56. SPITFSNode m_spPortsNode;
  57. DECLARE_MESSAGE_MAP()
  58. };
  59. #endif // _PORTDLG_H_