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.

152 lines
3.8 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996-1997 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // NetIProp.h
  7. //
  8. // Abstract:
  9. // Definition of the network interface property sheet and pages.
  10. //
  11. // Author:
  12. // David Potter (davidp) June 9, 1997
  13. //
  14. // Implementation File:
  15. // NetIProp.cpp
  16. //
  17. // Revision History:
  18. //
  19. // Notes:
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. #ifndef _NETIPROP_H_
  23. #define _NETIPROP_H_
  24. /////////////////////////////////////////////////////////////////////////////
  25. // Include Files
  26. /////////////////////////////////////////////////////////////////////////////
  27. #ifndef _BASEPAGE_H_
  28. #include "BasePPag.h" // for CBasePropertyPage
  29. #endif
  30. #ifndef _BASESHT_H_
  31. #include "BasePSht.h" // for CBasePropertySheet
  32. #endif
  33. #ifndef _NETWORK_H_
  34. #include "NetIFace.h" // for CNetInterface
  35. #endif
  36. /////////////////////////////////////////////////////////////////////////////
  37. // Forward Class Declarations
  38. /////////////////////////////////////////////////////////////////////////////
  39. class CNetInterfaceGeneralPage;
  40. class CNetInterfacePropSheet;
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CNetInterfaceGeneralPage dialog
  43. /////////////////////////////////////////////////////////////////////////////
  44. class CNetInterfaceGeneralPage : public CBasePropertyPage
  45. {
  46. DECLARE_DYNCREATE(CNetInterfaceGeneralPage)
  47. // Construction
  48. public:
  49. CNetInterfaceGeneralPage();
  50. virtual BOOL BInit(IN OUT CBaseSheet * psht);
  51. // Dialog Data
  52. //{{AFX_DATA(CNetInterfaceGeneralPage)
  53. enum { IDD = IDD_PP_NETIFACE_GENERAL };
  54. CEdit m_editDesc;
  55. CString m_strNode;
  56. CString m_strNetwork;
  57. CString m_strDesc;
  58. CString m_strAdapter;
  59. CString m_strAddress;
  60. CString m_strName;
  61. CString m_strState;
  62. //}}AFX_DATA
  63. // Overrides
  64. // ClassWizard generate virtual function overrides
  65. //{{AFX_VIRTUAL(CNetInterfaceGeneralPage)
  66. public:
  67. virtual BOOL OnApply();
  68. protected:
  69. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  70. //}}AFX_VIRTUAL
  71. // Implementation
  72. protected:
  73. CNetInterfacePropSheet * PshtNetIFace(void) const { return (CNetInterfacePropSheet *) Psht(); }
  74. CNetInterface * PciNetIFace(void) const { return (CNetInterface *) Pci(); }
  75. // Generated message map functions
  76. //{{AFX_MSG(CNetInterfaceGeneralPage)
  77. virtual BOOL OnInitDialog();
  78. //}}AFX_MSG
  79. DECLARE_MESSAGE_MAP()
  80. }; //*** class CNetInterfaceGeneralPage
  81. /////////////////////////////////////////////////////////////////////////////
  82. // CNetInterfacePropSheet
  83. /////////////////////////////////////////////////////////////////////////////
  84. class CNetInterfacePropSheet : public CBasePropertySheet
  85. {
  86. DECLARE_DYNAMIC(CNetInterfacePropSheet)
  87. // Construction
  88. public:
  89. CNetInterfacePropSheet(
  90. IN OUT CWnd * pParentWnd = NULL,
  91. IN UINT iSelectPage = 0
  92. );
  93. virtual BOOL BInit(
  94. IN OUT CClusterItem * pciCluster,
  95. IN IIMG iimgIcon
  96. );
  97. // Attributes
  98. protected:
  99. CBasePropertyPage * m_rgpages[1];
  100. // Pages
  101. CNetInterfaceGeneralPage m_pageGeneral;
  102. CNetInterfaceGeneralPage & PageGeneral(void) { return m_pageGeneral; }
  103. public:
  104. CNetInterface * PciNetIFace(void) const { return (CNetInterface *) Pci(); }
  105. // Operations
  106. // Overrides
  107. protected:
  108. virtual CBasePropertyPage ** Ppages(void);
  109. virtual int Cpages(void);
  110. // ClassWizard generated virtual function overrides
  111. //{{AFX_VIRTUAL(CNetInterfacePropSheet)
  112. //}}AFX_VIRTUAL
  113. // Implementation
  114. protected:
  115. // Generated message map functions
  116. //{{AFX_MSG(CNetInterfacePropSheet)
  117. //}}AFX_MSG
  118. DECLARE_MESSAGE_MAP()
  119. }; //*** class CNetInterfacePropSheet
  120. /////////////////////////////////////////////////////////////////////////////
  121. #endif // _NETIPROP_H_