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.

124 lines
3.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. RClntPP.h
  7. This file contains all of the prototypes for the
  8. reserved client property page.
  9. FILE HISTORY:
  10. */
  11. #if !defined(AFX_RCLNTPP_H__A1A51387_AAB3_11D0_AB8B_00C04FC3357A__INCLUDED_)
  12. #define AFX_RCLNTPP_H__A1A51387_AAB3_11D0_AB8B_00C04FC3357A__INCLUDED_
  13. #if !defined _DNSPROP_H
  14. #include "dnsprop.h"
  15. #endif
  16. #if _MSC_VER >= 1000
  17. #pragma once
  18. #endif // _MSC_VER >= 1000
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CReservedClientPropGeneral dialog
  21. class CReservedClientPropGeneral : public CPropertyPageBase
  22. {
  23. DECLARE_DYNCREATE(CReservedClientPropGeneral)
  24. // Construction
  25. public:
  26. CReservedClientPropGeneral();
  27. ~CReservedClientPropGeneral();
  28. // Dialog Data
  29. //{{AFX_DATA(CReservedClientPropGeneral)
  30. enum { IDD = IDP_RESERVED_CLIENT_GENERAL };
  31. CEdit m_editComment;
  32. CEdit m_editName;
  33. CEdit m_editUID;
  34. CString m_strComment;
  35. CString m_strName;
  36. CString m_strUID;
  37. int m_nClientType;
  38. //}}AFX_DATA
  39. CWndIpAddress m_ipaClientIpAddress;
  40. DWORD m_dwClientAddress;
  41. CDhcpClient m_dhcpClient;
  42. BYTE m_bClientType;
  43. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  44. // Context Help Support
  45. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(CReservedClientPropGeneral::IDD); }
  46. // Overrides
  47. // ClassWizard generate virtual function overrides
  48. //{{AFX_VIRTUAL(CReservedClientPropGeneral)
  49. public:
  50. virtual BOOL OnApply();
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. // Generated message map functions
  57. //{{AFX_MSG(CReservedClientPropGeneral)
  58. afx_msg void OnChangeEditComment();
  59. afx_msg void OnChangeEditName();
  60. afx_msg void OnChangeEditUniqueIdentifier();
  61. virtual BOOL OnInitDialog();
  62. afx_msg void OnRadioTypeBootp();
  63. afx_msg void OnRadioTypeBoth();
  64. afx_msg void OnRadioTypeDhcp();
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. public:
  68. };
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  71. //}}AFX
  72. class CReservedClientProperties : public CPropertyPageHolderBase
  73. {
  74. friend class CReservedClientPropGeneral;
  75. public:
  76. CReservedClientProperties(ITFSNode * pNode,
  77. IComponentData * pComponentData,
  78. ITFSComponentData * pTFSCompData,
  79. LPCTSTR pszSheetName);
  80. virtual ~CReservedClientProperties();
  81. ITFSComponentData * GetTFSCompData()
  82. {
  83. if (m_spTFSCompData)
  84. m_spTFSCompData->AddRef();
  85. return m_spTFSCompData;
  86. }
  87. void SetVersion(LARGE_INTEGER & liVersion);
  88. void SetClientType(BYTE bClientType);
  89. void SetDnsRegistration(DWORD dnsRegOption, DHCP_OPTION_SCOPE_TYPE dhcpOptionType);
  90. public:
  91. CReservedClientPropGeneral m_pageGeneral;
  92. CDnsPropRegistration m_pageDns;
  93. protected:
  94. SPITFSComponentData m_spTFSCompData;
  95. LARGE_INTEGER m_liVersion;
  96. };
  97. #endif // !defined(AFX_RCLNTPP_H__A1A51387_AAB3_11D0_AB8B_00C04FC3357A__INCLUDED_)