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.

116 lines
3.2 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. chkrgdlg.h
  7. WINS Check registered names dialog
  8. FILE HISTORY:
  9. */
  10. #if !defined _CHKRGDLG_H
  11. #define _CHKRGDLG_H
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. #include "dialog.h"
  16. #include <ipaddr.hpp>
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CCheckRegNames dialog
  19. class CCheckRegNames : public CBaseDialog
  20. {
  21. // Construction
  22. public:
  23. CCheckRegNames(CWnd* pParent = NULL); // standard constructor
  24. // Dialog Data
  25. //{{AFX_DATA(CCheckRegNames)
  26. enum { IDD = IDD_CHECK_REG_NAMES };
  27. CEdit m_editRecordNameForList;
  28. CButton m_buttonAddServer;
  29. CButton m_buttonRemoveServer;
  30. CButton m_buttonBrowseServer;
  31. CButton m_buttonNameremove;
  32. CButton m_buttonBrowseName;
  33. CButton m_buttonAddName;
  34. CListBox m_listServer;
  35. CListBox m_listName;
  36. CEdit m_editServer;
  37. CEdit m_editName;
  38. int m_nFileName;
  39. CString m_strName;
  40. CString m_strServer;
  41. int m_nFileServer;
  42. CString m_strRecNameForList;
  43. BOOL m_fVerifyWithPartners;
  44. //}}AFX_DATA
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(CCheckRegNames)
  48. protected:
  49. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. // Generated message map functions
  54. //{{AFX_MSG(CCheckRegNames)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnNameBrowse();
  57. afx_msg void OnServerBrowse();
  58. afx_msg void OnChangeEditName();
  59. afx_msg void OnChangeEditServer();
  60. afx_msg void OnSelchangeListName();
  61. afx_msg void OnSelchangeListServer();
  62. virtual void OnOK();
  63. afx_msg void OnNameAdd();
  64. afx_msg void OnNameRemove();
  65. afx_msg void OnServerAdd();
  66. afx_msg void OnServerRemove();
  67. afx_msg void OnRadioNameFile();
  68. afx_msg void OnRadioNameList();
  69. afx_msg void OnRadioServerFile();
  70. afx_msg void OnRadioServerList();
  71. afx_msg void OnChangeEditNameList();
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. afx_msg void OnChangeIpAddress();
  75. CWndIpAddress m_ipaServerIPAddress;
  76. public:
  77. CWinsNameArray m_strNameArray;
  78. CStringArray m_strServerArray;
  79. private:
  80. void EnableControls(int nNameOrServer, BOOL bEnable);
  81. void ParseFile(CString strFile, int nServerOrName);
  82. void SetControlState(int NameOrServer);
  83. void Add(int nServerOrName);
  84. void AddFileContent(CString & strContent, int nNameOrServer);
  85. BOOL CheckIfPresent(CString & strText, int nNameOrServer) ;
  86. BOOL CheckIfPresent(CWinsName & winsName, int nNameOrServer);
  87. BOOL CheckIfAdded(CString & strText, int nNameOrServer);
  88. BOOL CheckIfAdded(CWinsName winsName, int nNameOrServer);
  89. BOOL ParseName(CString & strNameIn, CWinsName & winsName, CString & strFormattedName);
  90. public:
  91. virtual DWORD * GetHelpMap() { return WinsGetHelpMap(CCheckRegNames::IDD);};//return NULL;}
  92. };
  93. //{{AFX_INSERT_LOCATION}}
  94. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  95. #endif // !defined _CHKRGDLG_H