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.

77 lines
2.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. AddRes.h
  7. Dialog to add a reservation
  8. FILE HISTORY:
  9. */
  10. #if !defined(AFX_ADDRES_H__7B0D5D16_B501_11D0_AB8E_00C04FC3357A__INCLUDED_)
  11. #define AFX_ADDRES_H__7B0D5D16_B501_11D0_AB8E_00C04FC3357A__INCLUDED_
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CAddReservation dialog
  17. class CAddReservation : public CBaseDialog
  18. {
  19. // Construction
  20. public:
  21. CAddReservation(ITFSNode * pNode,
  22. LARGE_INTEGER liVersion,
  23. CWnd* pParent = NULL); // standard constructor
  24. // Dialog Data
  25. //{{AFX_DATA(CAddReservation)
  26. enum { IDD = IDD_RESERVATION_NEW };
  27. CStatic m_staticClientType;
  28. CEdit m_editClientUID;
  29. CEdit m_editClientName;
  30. CEdit m_editClientComment;
  31. int m_nClientType;
  32. //}}AFX_DATA
  33. CWndIpAddress m_ipaAddress; // Reservation Address
  34. // Context Help Support
  35. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(CAddReservation::IDD); }
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CAddReservation)
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. void FillInSubnetId();
  45. LONG CreateClient(CDhcpClient * pClient);
  46. LONG UpdateClient(CDhcpClient * pClient);
  47. LONG BuildClient(CDhcpClient * pClient);
  48. // Generated message map functions
  49. //{{AFX_MSG(CAddReservation)
  50. virtual BOOL OnInitDialog();
  51. virtual void OnOK();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. SPITFSNode m_spScopeNode;
  55. CDhcpScope * m_pScopeObject;
  56. BOOL m_bChange; // changing existing entry or creating new
  57. LARGE_INTEGER m_liVersion; // version of the server we are talking to
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_ADDRES_H__7B0D5D16_B501_11D0_AB8E_00C04FC3357A__INCLUDED_)